]>
Commit | Line | Data |
---|---|---|
5e2cf960 | 1 | #ifndef ALIDIELECTRONHF_H |
2 | #define ALIDIELECTRONHF_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 AliDielectronHF # | |
10 | //# # | |
11 | //# Authors: # | |
12 | //# Julian Book, Uni-Frankfurt / Julian.Book@cern.ch # | |
13 | //# # | |
14 | //############################################################# | |
15 | ||
16 | #include <TNamed.h> | |
17 | #include <TObjArray.h> | |
18 | ||
19 | #include "AliDielectronVarManager.h" | |
d4619886 | 20 | #include "AliDielectronHistos.h" |
5e2cf960 | 21 | |
5e2cf960 | 22 | class AliDielectronHF : public TNamed { |
23 | public: | |
187de573 | 24 | enum { kMaxCuts=20 }; |
5e2cf960 | 25 | enum EBinType { |
26 | kStdBin=0, | |
27 | kBinToMax, | |
28 | kBinFromMin, | |
29 | kSymBin | |
30 | }; | |
31 | enum EPairType { | |
d4619886 | 32 | kOSonly=0, kOSandLS, kOSandROT, kOSandMIX, kAll, kMConly |
5e2cf960 | 33 | }; |
34 | ||
35 | AliDielectronHF(); | |
36 | AliDielectronHF(const char*name, const char* title); | |
37 | ||
38 | virtual ~AliDielectronHF(); | |
443a091c | 39 | |
40 | void Init(); | |
41 | void SetSignalsMC(TObjArray* array) {fSignalsMC = array;} | |
4d7704c5 | 42 | void SetStepForMCGenerated(Bool_t switcher=kTRUE) {fStepGenerated = switcher;} |
5e2cf960 | 43 | void SetPairTypes(EPairType ptype=kOSonly) { fPairType=ptype; } |
5e2cf960 | 44 | |
8d42b5b9 | 45 | // functions to add 1-dimensional objects |
46 | void UserProfile(const char* histClass, UInt_t valTypeP, | |
d4619886 | 47 | const TVectorD * const binsX, UInt_t valTypeX, TString option="", |
48 | UInt_t valTypeW=AliDielectronHistos::kNoWeights); | |
8d42b5b9 | 49 | void UserHistogram(const char* histClass, |
d4619886 | 50 | const TVectorD * const binsX, UInt_t valTypeX, UInt_t valTypeW=AliDielectronHistos::kNoWeights) |
51 | { UserProfile(histClass,AliDielectronHistos::kNoProfile,binsX,valTypeX,"",valTypeW); } | |
8d42b5b9 | 52 | |
53 | // functions to add 2-dimensional objects | |
54 | void UserProfile(const char* histClass, UInt_t valTypeP, | |
55 | const TVectorD * const binsX, const TVectorD * const binsY, | |
d4619886 | 56 | UInt_t valTypeX, UInt_t valTypeY, TString option="", UInt_t valTypeW=AliDielectronHistos::kNoWeights); |
8d42b5b9 | 57 | void UserHistogram(const char* histClass, |
58 | const TVectorD * const binsX, const TVectorD * const binsY, | |
d4619886 | 59 | UInt_t valTypeX, UInt_t valTypeY, UInt_t valTypeW=AliDielectronHistos::kNoWeights) |
60 | { UserProfile(histClass,AliDielectronHistos::kNoProfile,binsX,binsY,valTypeX,valTypeY,"",valTypeW); } | |
8d42b5b9 | 61 | |
62 | // functions to add 3-dimensional objects | |
63 | void UserProfile(const char* histClass, UInt_t valTypeP, | |
64 | const TVectorD * const binsX, const TVectorD * const binsY, const TVectorD * const binsZ, | |
d4619886 | 65 | UInt_t valTypeX, UInt_t valTypeY, UInt_t valTypeZ, TString option="", |
66 | UInt_t valTypeW=AliDielectronHistos::kNoWeights); | |
8d42b5b9 | 67 | void UserHistogram(const char* histClass, |
68 | const TVectorD * const binsX, const TVectorD * const binsY, const TVectorD * const binsZ, | |
d4619886 | 69 | UInt_t valTypeX, UInt_t valTypeY, UInt_t valTypeZ, UInt_t valTypeW=AliDielectronHistos::kNoWeights) |
70 | { UserProfile(histClass,AliDielectronHistos::kNoProfile,binsX,binsY,binsZ,valTypeX,valTypeY,valTypeZ,"",valTypeW); } | |
8d42b5b9 | 71 | |
72 | ||
73 | // functions to define the grid | |
5e2cf960 | 74 | void AddCutVariable(AliDielectronVarManager::ValueTypes type, Int_t nbins, |
75 | Double_t min, Double_t max, Bool_t log=kFALSE, Bool_t leg=kFALSE, EBinType btype=kStdBin); | |
76 | void AddCutVariable(AliDielectronVarManager::ValueTypes type, | |
77 | const char* binLimitStr, Bool_t leg=kFALSE, EBinType btype=kStdBin); | |
78 | void AddCutVariable(AliDielectronVarManager::ValueTypes type, | |
79 | TVectorD * binLimits, Bool_t leg=kFALSE, EBinType btype=kStdBin); | |
80 | ||
443a091c | 81 | void Fill(Int_t pairIndex, const AliDielectronPair *particle); |
82 | void Fill(Int_t label1, Int_t label2, Int_t nSignal); | |
83 | void Fill(Int_t Index, Double_t * const valuesPair, Double_t * const valuesLeg1, Double_t * const valuesLeg2); | |
84 | ||
5e2cf960 | 85 | Bool_t IsPairTypeSelected(Int_t itype); |
443a091c | 86 | |
5e2cf960 | 87 | Int_t GetNumberOfBins() const; |
5e2cf960 | 88 | const TObjArray * GetHistArray() const { return &fArrPairType; } |
4d7704c5 | 89 | Bool_t GetStepForMCGenerated() const { return fStepGenerated; } |
443a091c | 90 | |
5e2cf960 | 91 | private: |
92 | TObjArray fArrPairType; //-> array of pair types | |
93 | EPairType fPairType; // which pair combinations to include | |
443a091c | 94 | TObjArray* fSignalsMC; //! array of MC signals to be studied |
5e2cf960 | 95 | |
96 | UShort_t fVarCuts[kMaxCuts]; // cut variables | |
97 | Bool_t fVarCutType[kMaxCuts]; // array to store leg booleans | |
98 | TObjArray fAxes; // Axis descriptions of the cut binning | |
99 | UShort_t fBinType[kMaxCuts]; // binning type of the axes | |
100 | ||
d4619886 | 101 | Bool_t fHasMC; // is mc array |
4d7704c5 | 102 | Bool_t fStepGenerated; // switcher for generated particles |
5e2cf960 | 103 | |
8d42b5b9 | 104 | TObjArray fRefObj; // reference object |
35363fb9 | 105 | |
5e2cf960 | 106 | AliDielectronHF(const AliDielectronHF &c); |
107 | AliDielectronHF &operator=(const AliDielectronHF &c); | |
108 | ||
109 | ||
8d42b5b9 | 110 | ClassDef(AliDielectronHF,3) // Dielectron HF |
5e2cf960 | 111 | }; |
112 | ||
113 | ||
114 | ||
115 | #endif |