]>
Commit | Line | Data |
---|---|---|
b2a297fa | 1 | #ifndef ALIDIELECTRONCF_H |
2 | #define ALIDIELECTRONCF_H | |
3 | /* Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | //############################################################# | |
7 | //# # | |
8 | //# Class AliDielectronCF # | |
9 | //# Dielectron Correction Framework Manager # | |
10 | //# # | |
11 | //# Authors: # | |
12 | //# Anton Andronic, GSI / A.Andronic@gsi.de # | |
13 | //# Ionut C. Arsene, GSI / I.C.Arsene@gsi.de # | |
14 | //# Julian Book, Uni Ffm / Julian.Book@cern.ch # | |
15 | //# Frederick Kramer, Uni Ffm, / Frederick.Kramer@cern.ch # | |
16 | //# Magnus Mager, CERN / Magnus.Mager@cern.ch # | |
17 | //# WooJin J. Park, GSI / W.J.Park@gsi.de # | |
18 | //# Jens Wiechula, Uni HD / Jens.Wiechula@cern.ch # | |
19 | //# # | |
20 | //############################################################# | |
21 | ||
22 | ||
23 | ||
24 | #include <TNamed.h> | |
61d106d3 | 25 | #include <TVectorDfwd.h> |
b2a297fa | 26 | #include "AliDielectronVarManager.h" |
27 | ||
28 | class AliAnalysisCuts; | |
29 | class AliAnalysisFilter; | |
30 | class AliCFContainer; | |
6551594b | 31 | class AliDielectronPair; |
61d106d3 | 32 | class TObjArray; |
b2a297fa | 33 | |
34 | class AliDielectronCF : public TNamed { | |
35 | public: | |
36 | enum {kNmaxAddSteps=50}; | |
37 | ||
38 | AliDielectronCF(); | |
39 | AliDielectronCF(const char* name, const char* title); | |
40 | virtual ~AliDielectronCF(); | |
41 | ||
e123f993 | 42 | void SetStepForMCtruth(Bool_t steps=kTRUE) { fStepForMCtruth=steps; } |
43 | void SetStepForNoCutsMCmotherPid(Bool_t steps=kTRUE) { fStepForNoCutsMCmotherPid=steps; } | |
44 | void SetStepForAfterAllCuts(Bool_t steps=kTRUE) { fStepForAfterAllCuts=steps; } | |
45 | void SetStepsForEachCut(Bool_t steps=kTRUE) { fStepsForEachCut=steps; } | |
46 | void SetStepsForCutsIncreasing(Bool_t steps=kTRUE) { fStepsForCutsIncreasing=steps; } | |
572b0139 | 47 | void SetStepsForSignal(Bool_t steps=kTRUE) { fStepsForSignal=steps; } |
48 | void SetStepsForBackground(Bool_t steps=kTRUE) { fStepsForBackground=steps; } | |
b2a297fa | 49 | |
50 | void SetPdgMother(Int_t pdg) { fPdgMother=pdg; } | |
51 | ||
52 | void AddStepMask(UInt_t mask) { fStepMasks[fNStepMasks++]=mask; } | |
53 | ||
3505bfad | 54 | void AddVariable(AliDielectronVarManager::ValueTypes type, Int_t nbins, |
55 | Double_t min, Double_t max, Bool_t leg=kFALSE, Bool_t log=kFALSE); | |
56 | void AddVariable(AliDielectronVarManager::ValueTypes type, const char* binLimitStr, Bool_t leg=kFALSE); | |
57 | void AddVariable(AliDielectronVarManager::ValueTypes type, TVectorD *binLimits, Bool_t leg=kFALSE); | |
61d106d3 | 58 | |
b2a297fa | 59 | void InitialiseContainer(const AliAnalysisFilter& filter); |
60 | ||
6551594b | 61 | // void Fill(UInt_t mask, const TObject *particle); |
62 | void Fill(UInt_t mask, const AliDielectronPair *particle); | |
b2a297fa | 63 | void FillMC(const TObject *particle); |
64 | ||
65 | AliCFContainer* GetContainer() const { return fCfContainer; } | |
66 | ||
6551594b | 67 | private: |
b2a297fa | 68 | UInt_t fVariables[AliDielectronVarManager::kNMaxValues]; //configured variables |
6551594b | 69 | UInt_t fVariablesLeg[AliDielectronVarManager::kNMaxValues]; //configured variables for the legs |
b2a297fa | 70 | |
71 | Int_t fNSteps; // number of selection steps | |
6551594b | 72 | |
b2a297fa | 73 | Int_t fNVars; // number of variables |
3505bfad | 74 | TObjArray *fVarBinLimits; // array of bin limits |
75 | ||
76 | Int_t fNVarsLeg; // number of variables for the legs | |
77 | TObjArray *fVarBinLimitsLeg; // array of bin limits of the legs | |
6551594b | 78 | |
79 | Int_t fNCuts; // Number of cuts in the filter concerned | |
b2a297fa | 80 | |
572b0139 | 81 | Double_t *fValues; //! Value array for filling the container |
6551594b | 82 | |
e123f993 | 83 | Bool_t fStepForMCtruth; //create a step for the MC truth |
84 | Bool_t fStepForNoCutsMCmotherPid; //create a step for before cuts, but with MC truth of the mother | |
85 | Bool_t fStepForAfterAllCuts; //create a step for before cuts, but with MC truth of the mother | |
86 | Bool_t fStepsForEachCut; //create steps for each cut? | |
87 | Bool_t fStepsForCutsIncreasing; //create steps for increasing cut combinatons? | |
88 | //e.g. cut1&cut2, cut1&cut2&cut3 ... | |
572b0139 | 89 | Bool_t fStepsForSignal; //steps for pure signal |
90 | Bool_t fStepsForBackground; //steps for pure background | |
91 | ||
b2a297fa | 92 | UInt_t fStepMasks[kNmaxAddSteps]; //steps for additional cut combinatons |
93 | UInt_t fNStepMasks; //number of configured step masks | |
94 | ||
95 | Int_t fPdgMother; //Pdg code of MCtruth validation | |
96 | AliCFContainer* fCfContainer; //the CF container | |
572b0139 | 97 | |
98 | Bool_t fHasMC; //if MC info is available | |
99 | Int_t fNAddSteps; //number of additional MC related steps per cut step | |
3505bfad | 100 | |
101 | TVectorD* MakeLogBinning(Int_t nbinsX, Double_t xmin, Double_t xmax) const; | |
102 | TVectorD* MakeLinBinning(Int_t nbinsX, Double_t xmin, Double_t xmax) const; | |
b2a297fa | 103 | |
104 | AliDielectronCF(const AliDielectronCF &c); | |
105 | AliDielectronCF &operator=(const AliDielectronCF &c); | |
106 | ||
3505bfad | 107 | ClassDef(AliDielectronCF,4) //Dielectron Correction Framework handler |
b2a297fa | 108 | }; |
109 | ||
110 | #endif |