CbmRoot
Loading...
Searching...
No Matches
PairAnalysisHF.h
Go to the documentation of this file.
1#ifndef PAIRANALYSISHF_H
2#define PAIRANALYSISHF_H
3
4/* Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7//#############################################################
8//# #
9//# Class PairAnalysisHF #
10//# #
11//# Authors: #
12//# Julian Book, Uni-Frankfurt / Julian.Book@cern.ch #
13//# #
14//#############################################################
15
16#include <TBits.h>
17#include <THnBase.h>
18#include <TNamed.h>
19#include <TObjArray.h>
20
21#include "PairAnalysisHistos.h"
23
24class PairAnalysisHF : public PairAnalysisHistos {
25public:
26 enum class Max
27 {
28 kMaxCuts = 20
29 };
30
32 PairAnalysisHF(const char* name, const char* title);
33
34 virtual ~PairAnalysisHF();
35
36 void Init();
37 Int_t GetNumberOfBins() const;
38 const TObjArray* GetHistArray() const { return &fArrDielHistos; }
39
40 // functions to define the grid
41 void AddCutVariable(PairAnalysisVarManager::ValueTypes type, TVectorD* binLimits, Bool_t leg = kFALSE);
42
43 // functions to fill objects
44 Int_t FindCell(const Double_t* values);
45 void FillClass(const char* histClass, const Double_t* values);
46 // TODO: check, remove, implement
47 void Fill(Int_t pairIndex, const PairAnalysisPair* particle);
48 void Fill(Int_t label1, Int_t label2, Int_t nSignal);
49 void Fill(Int_t Index, Double_t* const valuesPair, Double_t* const valuesLeg1, Double_t* const valuesLeg2);
50
51 // functions to get and draw histograms
52 void ReadFromFile(const char* file = "histos.root", const char* task = "", const char* config = "");
53
54private:
55 TBits* fUsedVars; // list of used variables
56
57 TObjArray fArrDielHistos; //-> array of papahistos
58 TObjArray* fSignalsMC;
59
60 static const Int_t fMaxCuts = 20;
61 UShort_t fVarCuts[fMaxCuts]; // cut variables
62 TBits* fVarCutType; // array to store leg booleans
63 // Bool_t fVarCutType[kMaxCuts]; // array to store leg booleans
64 TObjArray fAxes; // Axis descriptions of the cut binning
65
68
69 ClassDef(PairAnalysisHF, 1) // Histogram matrix
70};
71
72
73#endif
const TObjArray * GetHistArray() const
Int_t GetNumberOfBins() const
static const Int_t fMaxCuts
array of MC signals to be stupapad
PairAnalysisHF & operator=(const PairAnalysisHF &c)
void Fill(Int_t pairIndex, const PairAnalysisPair *particle)
PairAnalysisHF(const PairAnalysisHF &c)
TObjArray fArrDielHistos
UShort_t fVarCuts[fMaxCuts]
void ReadFromFile(const char *file="histos.root", const char *task="", const char *config="")
TObjArray * fSignalsMC
virtual ~PairAnalysisHF()
Int_t FindCell(const Double_t *values)
void FillClass(const char *histClass, const Double_t *values)
void AddCutVariable(PairAnalysisVarManager::ValueTypes type, TVectorD *binLimits, Bool_t leg=kFALSE)