]>
Commit | Line | Data |
---|---|---|
1c5acb87 | 1 | #ifndef ALICALOTRACKREADER_H |
2 | #define ALICALOTRACKREADER_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
1c5acb87 | 5 | |
6 | //_________________________________________________________________________ | |
7 | // Base class for reading data: MonteCarlo, ESD or AOD, of PHOS EMCAL and | |
8 | // Central Barrel Tracking detectors. | |
9 | // Not all MC particles/tracks/clusters are kept, some kinematical restrictions are done. | |
591cc579 | 10 | // Mother class of : AliCaloTrackESDReader: Fills ESD data in 3 TObjArrays (PHOS, EMCAL, CTS) |
743aa53a | 11 | // : AliCaloTrackMCReader : Fills Kinematics data in 3 TObjArrays (PHOS, EMCAL, CTS) |
12 | // : AliCaloTrackAODReader: Fills AOD data in 3 TObjArrays (PHOS, EMCAL, CTS) | |
1c5acb87 | 13 | // -- Author: Gustavo Conesa (INFN-LNF) |
743aa53a | 14 | ////////////////////////////////////////////////////////////////////////////// |
1c5acb87 | 15 | |
16 | // --- ROOT system --- | |
49b53920 | 17 | #include <TObject.h> |
18 | #include <TString.h> | |
cfaba834 | 19 | class TObjArray ; |
591cc579 | 20 | class TTree ; |
f3138ecf | 21 | class TArrayI ; |
1c5acb87 | 22 | |
23 | //--- ANALYSIS system --- | |
0de1814a | 24 | #include "AliVEvent.h" |
c5693f62 | 25 | class AliVCaloCells; |
26 | class AliStack; | |
27 | class AliHeader; | |
28 | class AliGenEventHeader; | |
8dacfd76 | 29 | class AliAODEvent; |
477d6cee | 30 | class AliMCEvent; |
c8fe2783 | 31 | class AliMixedEvent; |
591cc579 | 32 | class AliAODMCHeader; |
c5693f62 | 33 | class AliESDtrackCuts; |
b6dd6ad2 | 34 | class AliCentrality; |
48c37e02 | 35 | class AliTriggerAnalysis; |
72542aba | 36 | class AliEventplane; |
f3138ecf | 37 | class AliVCluster; |
1c5acb87 | 38 | |
0de1814a | 39 | // --- CaloTrackCorr / EMCAL --- |
cfaba834 | 40 | #include "AliFiducialCut.h" |
0de1814a | 41 | class AliEMCALRecoUtils; |
c5693f62 | 42 | class AliCalorimeterUtils; |
cfaba834 | 43 | |
1c5acb87 | 44 | class AliCaloTrackReader : public TObject { |
45 | ||
03190ad7 | 46 | public: |
f3138ecf | 47 | |
48 | AliCaloTrackReader() ; // ctor | |
49 | virtual ~AliCaloTrackReader() ; // virtual dtor | |
cfaba834 | 50 | |
51 | //-------------------------------- | |
52 | // General methods | |
53 | //-------------------------------- | |
54 | ||
55 | virtual void Init(); | |
de0b770d | 56 | |
cfaba834 | 57 | virtual void InitParameters(); |
de0b770d | 58 | |
cfaba834 | 59 | virtual void Print(const Option_t * opt) const; |
de0b770d | 60 | |
cfaba834 | 61 | virtual void ResetLists(); |
1c5acb87 | 62 | |
3c75ddf7 | 63 | virtual Int_t GetDebug() const { return fDebug ; } |
64 | virtual void SetDebug(Int_t d) { fDebug = d ; } | |
cfaba834 | 65 | |
66 | enum inputDataType {kESD, kAOD, kMC}; | |
3c75ddf7 | 67 | virtual Int_t GetDataType() const { return fDataType ; } |
68 | virtual void SetDataType(Int_t data ) { fDataType = data ; } | |
1c5acb87 | 69 | |
3c75ddf7 | 70 | virtual Int_t GetEventNumber() const { return fEventNumber ; } |
a79a2424 | 71 | |
3c75ddf7 | 72 | TString GetTaskName() const { return fTaskName ; } |
73 | void SetTaskName(TString name) { fTaskName = name ; } | |
cfaba834 | 74 | |
cfaba834 | 75 | //--------------------------------------- |
76 | //Input/output event setters and getters | |
77 | //--------------------------------------- | |
78 | virtual void SetInputEvent(AliVEvent* const input) ; | |
3c75ddf7 | 79 | virtual void SetOutputEvent(AliAODEvent* const aod) { fOutputEvent = aod ; } |
80 | virtual void SetMC(AliMCEvent* const mc) { fMC = mc ; } | |
be518ab0 | 81 | virtual void SetInputOutputMCEvent(AliVEvent* /*esd*/, AliAODEvent* /*aod*/, AliMCEvent* /*mc*/) { ; } |
cfaba834 | 82 | |
83 | // Delta AODs | |
3c75ddf7 | 84 | virtual TList * GetAODBranchList() const { return fAODBranchList ; } |
85 | void SetDeltaAODFileName(TString name ) { fDeltaAODFileName = name ; } | |
86 | TString GetDeltaAODFileName() const { return fDeltaAODFileName ; } | |
87 | void SwitchOnWriteDeltaAOD() { fWriteOutputDeltaAOD = kTRUE ; } | |
88 | void SwitchOffWriteDeltaAOD() { fWriteOutputDeltaAOD = kFALSE ; } | |
89 | Bool_t WriteDeltaAODToFile() const { return fWriteOutputDeltaAOD ; } | |
cfaba834 | 90 | |
91 | //------------------------------------------------------------ | |
92 | //Clusters/Tracks arrays filtering/filling methods and switchs | |
93 | //------------------------------------------------------------ | |
94 | ||
95 | //Minimum pt setters and getters | |
3c75ddf7 | 96 | Float_t GetEMCALPtMin() const { return fEMCALPtMin ; } |
97 | Float_t GetPHOSPtMin() const { return fPHOSPtMin ; } | |
98 | Float_t GetCTSPtMin() const { return fCTSPtMin ; } | |
99 | Float_t GetEMCALPtMax() const { return fEMCALPtMax ; } | |
100 | Float_t GetPHOSPtMax() const { return fPHOSPtMax ; } | |
101 | Float_t GetCTSPtMax() const { return fCTSPtMax ; } | |
a5fb4114 | 102 | |
3c75ddf7 | 103 | void SetEMCALPtMin(Float_t pt) { fEMCALPtMin = pt ; } |
104 | void SetPHOSPtMin (Float_t pt) { fPHOSPtMin = pt ; } | |
105 | void SetCTSPtMin (Float_t pt) { fCTSPtMin = pt ; } | |
a5fb4114 | 106 | |
3c75ddf7 | 107 | void SetEMCALPtMax(Float_t pt) { fEMCALPtMax = pt ; } |
108 | void SetPHOSPtMax (Float_t pt) { fPHOSPtMax = pt ; } | |
109 | void SetCTSPtMax (Float_t pt) { fCTSPtMax = pt ; } | |
a5fb4114 | 110 | |
3c75ddf7 | 111 | Float_t GetEMCALEMin() const { return GetEMCALPtMin() ; } |
112 | Float_t GetPHOSEMin() const { return GetPHOSPtMin() ; } | |
113 | Float_t GetEMCALEMax() const { return GetEMCALPtMax() ; } | |
114 | Float_t GetPHOSEMax() const { return GetPHOSPtMax() ; } | |
cfaba834 | 115 | |
3c75ddf7 | 116 | void SetEMCALEMin (Float_t e) { SetEMCALPtMin(e) ; } |
117 | void SetPHOSEMin (Float_t e) { SetPHOSPtMin (e) ; } | |
118 | void SetEMCALEMax (Float_t e) { SetEMCALPtMax(e) ; } | |
119 | void SetPHOSEMax (Float_t e) { SetPHOSPtMax (e) ; } | |
cfaba834 | 120 | |
d783becb | 121 | Double_t GetEMCALTimeCutMin() const { return fEMCALTimeCutMin ; } |
122 | Double_t GetEMCALTimeCutMax() const { return fEMCALTimeCutMax ; } | |
d2655d46 | 123 | |
124 | void SetEMCALTimeCut(Double_t a, Double_t b) { fEMCALTimeCutMin = a; | |
125 | fEMCALTimeCutMax = b ; } // ns | |
cfaba834 | 126 | // Fidutial cuts |
a5fb4114 | 127 | virtual AliFiducialCut * GetFiducialCut() { |
128 | if(!fFiducialCut) fFiducialCut = new AliFiducialCut(); | |
3c75ddf7 | 129 | return fFiducialCut ; } |
130 | virtual void SetFiducialCut(AliFiducialCut * const fc) { fFiducialCut = fc ; } | |
131 | virtual Bool_t IsFiducialCutOn() const { return fCheckFidCut ; } | |
132 | virtual void SwitchOnFiducialCut() { fCheckFidCut = kTRUE ; | |
133 | fFiducialCut = new AliFiducialCut() ; } | |
134 | virtual void SwitchOffFiducialCut() { fCheckFidCut = kFALSE ; } | |
1c5acb87 | 135 | |
cfaba834 | 136 | // Cluster origin |
a5fb4114 | 137 | Bool_t IsEMCALCluster(AliVCluster *clus) const; |
138 | Bool_t IsPHOSCluster (AliVCluster *clus) const; | |
cfaba834 | 139 | //Patch for cluster origin for Old AODs implementation |
3c75ddf7 | 140 | void SwitchOnOldAODs() { fOldAOD = kTRUE ; } |
141 | void SwitchOffOldAODs() { fOldAOD = kFALSE ; } | |
f37fa8d2 | 142 | |
cfaba834 | 143 | // Cluster/track/cells switchs |
3c75ddf7 | 144 | Bool_t IsCTSSwitchedOn() const { return fFillCTS ; } |
145 | void SwitchOnCTS() { fFillCTS = kTRUE ; } | |
146 | void SwitchOffCTS() { fFillCTS = kFALSE ; } | |
1c5acb87 | 147 | |
3c75ddf7 | 148 | Bool_t IsEMCALSwitchedOn() const { return fFillEMCAL ; } |
149 | void SwitchOnEMCAL() { fFillEMCAL = kTRUE ; } | |
150 | void SwitchOffEMCAL() { fFillEMCAL = kFALSE ; } | |
1c5acb87 | 151 | |
3c75ddf7 | 152 | Bool_t IsPHOSSwitchedOn() const { return fFillPHOS ; } |
153 | void SwitchOnPHOS() { fFillPHOS = kTRUE ; } | |
154 | void SwitchOffPHOS() { fFillPHOS = kFALSE ; } | |
1c5acb87 | 155 | |
3c75ddf7 | 156 | Bool_t IsEMCALCellsSwitchedOn() const { return fFillEMCALCells ; } |
157 | void SwitchOnEMCALCells() { fFillEMCALCells = kTRUE ; } | |
158 | void SwitchOffEMCALCells() { fFillEMCALCells = kFALSE ; } | |
1c5acb87 | 159 | |
3c75ddf7 | 160 | Bool_t IsPHOSCellsSwitchedOn() const { return fFillPHOSCells ; } |
161 | void SwitchOnPHOSCells() { fFillPHOSCells = kTRUE ; } | |
162 | void SwitchOffPHOSCells() { fFillPHOSCells = kFALSE ; } | |
1c5acb87 | 163 | |
3bfc4732 | 164 | Bool_t AreClustersRecalculated() const { return fRecalculateClusters ; } |
165 | void SwitchOnClusterRecalculation() { fRecalculateClusters = kTRUE ; } | |
166 | void SwitchOffClusterRecalculation() { fRecalculateClusters = kFALSE ; } | |
167 | ||
3c75ddf7 | 168 | Bool_t IsEmbeddedClusterSelectionOn() const { return fSelectEmbeddedClusters ; } |
169 | void SwitchOnEmbeddedClustersSelection() { fSelectEmbeddedClusters = kTRUE ; } | |
170 | void SwitchOffEmbeddedClustersSelection() { fSelectEmbeddedClusters = kFALSE ; } | |
6060ed91 | 171 | |
be518ab0 | 172 | // Filling/ filtering / detector information access methods |
a5fb4114 | 173 | virtual Bool_t FillInputEvent(const Int_t iEntry, const char *currentFileName) ; |
174 | virtual void FillInputCTS() ; | |
175 | virtual void FillInputEMCAL() ; | |
176 | virtual void FillInputEMCALAlgorithm(AliVCluster * clus, const Int_t iclus) ; | |
177 | virtual void FillInputPHOS() ; | |
178 | virtual void FillInputEMCALCells() ; | |
179 | virtual void FillInputPHOSCells() ; | |
180 | virtual void FillInputVZERO() ; | |
181 | ||
21812953 | 182 | Int_t GetV0Signal(Int_t i) const { return fV0ADC[i] ; } |
183 | Int_t GetV0Multiplicity(Int_t i) const { return fV0Mul[i] ; } | |
a5fb4114 | 184 | |
21812953 | 185 | void SetEMCALClusterListName(TString &name) { fEMCALClustersListName = name ; } |
186 | TString GetEMCALClusterListName() const { return fEMCALClustersListName ; } | |
cfaba834 | 187 | |
be518ab0 | 188 | // Arrayes with clusters/track/cells access method |
21812953 | 189 | virtual TObjArray* GetCTSTracks() const { return fCTSTracks ; } |
190 | virtual TObjArray* GetEMCALClusters() const { return fEMCALClusters ; } | |
191 | virtual TObjArray* GetPHOSClusters() const { return fPHOSClusters ; } | |
192 | virtual AliVCaloCells* GetEMCALCells() const { return fEMCALCells ; } | |
193 | virtual AliVCaloCells* GetPHOSCells() const { return fPHOSCells ; } | |
cfaba834 | 194 | |
195 | //------------------------------------- | |
196 | // Event/track selection methods | |
197 | //------------------------------------- | |
198 | ||
cd2e4ce6 | 199 | void AcceptFastClusterEvents() { fAcceptFastCluster = kTRUE ; } |
200 | void RejectFastClusterEvents() { fAcceptFastCluster = kFALSE ; } | |
c5693f62 | 201 | Bool_t IsFastClusterAccepted() const { return fAcceptFastCluster ; } |
cd2e4ce6 | 202 | |
203 | void SwitchOnLEDEventsRemoval() { fRemoveLEDEvents = kTRUE ; } | |
204 | void SwitchOffLEDEventsRemoval() { fRemoveLEDEvents = kFALSE ; } | |
c5693f62 | 205 | Bool_t IsLEDEventRemoved() const { return fRemoveLEDEvents ; } |
cd2e4ce6 | 206 | |
a5fb4114 | 207 | void SetFiredTriggerClassName(TString name ) { fFiredTriggerClassName = name ; } |
208 | TString GetFiredTriggerClassName() const { return fFiredTriggerClassName ; } | |
43074325 | 209 | TString GetFiredTriggerClasses() ; |
cfaba834 | 210 | |
21812953 | 211 | UInt_t GetEventTriggerMask() const { return fEventTriggerMask ; } |
029dea5a | 212 | void SetEventTriggerMaks(UInt_t evtTrig = AliVEvent::kAny) |
213 | { fEventTriggerMask = evtTrig ; } | |
790dea42 | 214 | |
215 | UInt_t GetMixEventTriggerMask() const { return fMixEventTriggerMask ; } | |
216 | void SetMixEventTriggerMaks(UInt_t evtTrig = AliVEvent::kAnyINT) | |
217 | { fMixEventTriggerMask = evtTrig ; } | |
218 | ||
029dea5a | 219 | |
21812953 | 220 | Bool_t IsEventTriggerAtSEOn() const { return fEventTriggerAtSE ; } |
221 | void SwitchOnEventTriggerAtSE() { fEventTriggerAtSE = kTRUE ; } | |
222 | void SwitchOffEventTriggerAtSE() { fEventTriggerAtSE = kFALSE ; } | |
029dea5a | 223 | |
cd2e4ce6 | 224 | void SwitchOnEventSelection() { fDoEventSelection = kTRUE ; } |
225 | void SwitchOffEventSelection() { fDoEventSelection = kFALSE ; } | |
a5fb4114 | 226 | Bool_t IsEventSelectionDone() const { return fDoEventSelection ; } |
cfaba834 | 227 | |
a5fb4114 | 228 | void SwitchOnV0ANDSelection() { fDoV0ANDEventSelection = kTRUE ; } |
229 | void SwitchOffV0ANDSelection() { fDoV0ANDEventSelection = kFALSE ; } | |
230 | Bool_t IsV0ANDEventSelectionDone() const { return fDoV0ANDEventSelection ; } | |
20218aea | 231 | |
a5fb4114 | 232 | void SwitchOnPrimaryVertexSelection() { fUseEventsWithPrimaryVertex = kTRUE ; } |
233 | void SwitchOffPrimaryVertexSelection() { fUseEventsWithPrimaryVertex = kFALSE ; } | |
234 | Bool_t IsPrimaryVertexSelectionDone() const { return fUseEventsWithPrimaryVertex ; } | |
20218aea | 235 | |
64c78c5f | 236 | Bool_t IsPileUpFromSPD() const ; |
4b75cb39 | 237 | void SetPileUpParam(Int_t i, Double_t param) { fPileUpParam[i] = param ; } |
238 | ||
3a58eee6 | 239 | // Track selection |
743aa53a | 240 | ULong_t GetTrackStatus() const { return fTrackStatus ; } |
241 | void SetTrackStatus(ULong_t bit) { fTrackStatus = bit ; } | |
a5fb4114 | 242 | |
743aa53a | 243 | ULong_t GetTrackFilterMask() const {return fTrackFilterMask ; } |
244 | void SetTrackFilterMask(ULong_t bit) { fTrackFilterMask = bit ; } | |
3a58eee6 | 245 | |
743aa53a | 246 | AliESDtrackCuts* GetTrackCuts() const { return fESDtrackCuts ; } |
c5693f62 | 247 | void SetTrackCuts(AliESDtrackCuts * cuts) ; |
21812953 | 248 | |
a9b8c1d0 | 249 | void SwitchOnConstrainTrackToVertex() { fConstrainTrack = kTRUE ; } |
250 | void SwitchOffConstrainTrackToVertex() { fConstrainTrack = kFALSE ; } | |
251 | ||
21812953 | 252 | void SwitchOnAODHybridTrackSelection() { fSelectHybridTracks = kTRUE ; } |
253 | void SwitchOffAODHybridTrackSelection() { fSelectHybridTracks = kFALSE ; } | |
c5693f62 | 254 | |
743aa53a | 255 | Int_t GetTrackMultiplicity() const { return fTrackMult ; } |
256 | Float_t GetTrackMultiplicityEtaCut() const { return fTrackMultEtaCut ; } | |
257 | void SetTrackMultiplicityEtaCut(Float_t eta) { fTrackMultEtaCut = eta ; } | |
c8fe2783 | 258 | |
a5fb4114 | 259 | // Calorimeter specific and patches |
743aa53a | 260 | void AnalyzeOnlyLED() { fAnaLED = kTRUE ; } |
261 | void AnalyzeOnlyPhysics() { fAnaLED = kFALSE ; } | |
a5fb4114 | 262 | |
743aa53a | 263 | void SwitchOnCaloFilterPatch() { fCaloFilterPatch = kTRUE ; |
264 | fFillCTS = kFALSE ; } | |
265 | void SwitchOffCaloFilterPatch() { fCaloFilterPatch = kFALSE ; } | |
a5fb4114 | 266 | Bool_t IsCaloFilterPatchOn() const { |
267 | if(fDataType == kAOD) { return fCaloFilterPatch ; } | |
743aa53a | 268 | else { return kFALSE ; } } |
cfaba834 | 269 | |
270 | //------------------------------- | |
48c37e02 | 271 | //Vertex methods |
cfaba834 | 272 | //------------------------------- |
a5fb4114 | 273 | virtual void GetVertex(Double_t v[3]) const ; |
274 | virtual Double_t* GetVertex(const Int_t evtIndex) const { return fVertex[evtIndex] ; } | |
275 | virtual void GetVertex(Double_t vertex[3], const Int_t evtIndex) const ; | |
cfaba834 | 276 | virtual void FillVertexArray(); |
277 | virtual Bool_t CheckForPrimaryVertex(); | |
a5fb4114 | 278 | virtual Float_t GetZvertexCut() const { return fZvtxCut ; } //cut on vertex position |
279 | virtual void SetZvertexCut(Float_t zcut=10.) { fZvtxCut=zcut ; } //cut on vertex position | |
0b13c1f9 | 280 | |
05d0d05d | 281 | //-------------------------- |
72542aba | 282 | // Centrality / Event Plane |
05d0d05d | 283 | //-------------------------- |
ee893147 | 284 | virtual AliCentrality* GetCentrality() const { if(fDataType!=kMC) return fInputEvent->GetCentrality() ; |
285 | else return 0x0 ; } | |
a5fb4114 | 286 | virtual void SetCentralityClass(TString name) { fCentralityClass = name ; } |
287 | virtual void SetCentralityOpt(Int_t opt) { fCentralityOpt = opt ; } | |
288 | virtual TString GetCentralityClass() const { return fCentralityClass ; } | |
289 | virtual Int_t GetCentralityOpt() const { return fCentralityOpt ; } | |
290 | virtual Int_t GetEventCentrality() const ; | |
291 | virtual void SetCentralityBin(Int_t min, Int_t max) //Set the centrality bin to select the event. If used, then need to get percentile | |
292 | { fCentralityBin[0]=min; fCentralityBin[1]=max; | |
293 | if(min>=0 && max > 0) fCentralityOpt = 100 ; } | |
294 | virtual Float_t GetCentralityBin(Int_t i) const { if(i < 0 || i > 1) return 0 ; | |
295 | else return fCentralityBin[i] ; } | |
296 | ||
ee893147 | 297 | virtual AliEventplane* GetEventPlane() const { if(fDataType!=kMC) return fInputEvent->GetEventplane() ; |
298 | else return 0x0 ; } | |
9929c80b | 299 | virtual Double_t GetEventPlaneAngle() const ; |
3c75ddf7 | 300 | virtual void SetEventPlaneMethod(TString m) { fEventPlaneMethod = m ; } |
301 | virtual TString GetEventPlaneMethod() const { return fEventPlaneMethod ; } | |
72542aba | 302 | |
39364a52 | 303 | //-------------------- |
304 | // Mixing | |
305 | //-------------------- | |
306 | ||
d783becb | 307 | Int_t GetLastCaloMixedEvent() const { return fLastMixedCaloEvent ; } |
39364a52 | 308 | Int_t GetLastTracksMixedEvent () const { return fLastMixedTracksEvent ; } |
309 | ||
50551817 | 310 | TList * GetListWithMixedEventsForCalo (Int_t bi) const { if(fListMixedCaloEvents) return fListMixedCaloEvents[bi] ; else return 0 ; } |
311 | TList * GetListWithMixedEventsForTracks(Int_t bi) const { if(fListMixedTracksEvents) return fListMixedTracksEvents [bi] ; else return 0 ; } | |
39364a52 | 312 | |
d783becb | 313 | Bool_t ListWithMixedEventsForCaloExists() const { if(fListMixedCaloEvents) return kTRUE ; |
314 | else return kFALSE ; } | |
39364a52 | 315 | |
d783becb | 316 | Bool_t ListWithMixedEventsForTracksExists() const { if(fListMixedTracksEvents) return kTRUE ; |
317 | else return kFALSE ; } | |
39364a52 | 318 | |
d783becb | 319 | void SetLastCaloMixedEvent (Int_t e) { fLastMixedCaloEvent = e ; } |
320 | void SetLastTracksMixedEvent(Int_t e) { fLastMixedTracksEvent = e ; } | |
39364a52 | 321 | |
d783becb | 322 | void SetListWithMixedEventsForCalo (TList ** l) { |
323 | if(fListMixedCaloEvents) printf("AliCaloTrackReader::SetListWithMixedEventsForCalo() - Track Mixing event list already set, nothing done\n"); | |
324 | else fListMixedCaloEvents = l ; } | |
39364a52 | 325 | |
d783becb | 326 | void SetListWithMixedEventsForTracks(TList ** l) { |
327 | if(fListMixedTracksEvents) printf("AliCaloTrackReader::SetListWithMixedEventsForTracks() - Calorimeter Mixing event list already set, nothing done\n"); | |
39364a52 | 328 | else fListMixedTracksEvents = l ; } |
329 | ||
cfaba834 | 330 | //------------------------------------- |
331 | // Other methods | |
332 | //------------------------------------- | |
3c75ddf7 | 333 | AliCalorimeterUtils * GetCaloUtils() const { return fCaloUtils ; } |
334 | void SetCaloUtils(AliCalorimeterUtils * caloutils) { fCaloUtils = caloutils ; } | |
48c37e02 | 335 | |
a5fb4114 | 336 | virtual Double_t GetBField() const { return fInputEvent->GetMagneticField() ; } |
cfaba834 | 337 | |
de0b770d | 338 | void SetImportGeometryFromFile(Bool_t import, |
55d66f31 | 339 | TString path = "") { |
de0b770d | 340 | fImportGeometryFromFile = import ; |
341 | fImportGeometryFilePath = path ; } | |
342 | ||
cfaba834 | 343 | //------------------------------------------------ |
344 | // MC analysis specific methods | |
345 | //------------------------------------------------- | |
346 | ||
347 | //Kinematics and galice.root available | |
a5fb4114 | 348 | virtual AliStack* GetStack() const ; |
349 | virtual AliHeader* GetHeader() const ; | |
350 | virtual AliGenEventHeader* GetGenEventHeader() const ; | |
cfaba834 | 351 | |
352 | //Filtered kinematics in AOD | |
353 | virtual TClonesArray* GetAODMCParticles(Int_t input = 0) const ; | |
a20fbb55 | 354 | virtual AliAODMCHeader* GetAODMCHeader() const ; |
cfaba834 | 355 | |
3c75ddf7 | 356 | virtual AliVEvent* GetInputEvent() const { return fInputEvent ; } |
357 | virtual AliVEvent* GetOriginalInputEvent() const { return 0x0 ; } | |
358 | virtual AliAODEvent* GetOutputEvent() const { return fOutputEvent ; } | |
359 | virtual AliMCEvent* GetMC() const { return fMC ; } | |
360 | virtual AliMixedEvent* GetMixedEvent() const { return fMixedEvent ; } | |
361 | virtual Int_t GetNMixedEvent() const { return fNMixedEvent ; } | |
a5fb4114 | 362 | |
3c75ddf7 | 363 | void SwitchOnStack() { fReadStack = kTRUE ; } |
364 | void SwitchOffStack() { fReadStack = kFALSE ; } | |
365 | void SwitchOnAODMCParticles() { fReadAODMCParticles = kTRUE ; } | |
366 | void SwitchOffAODMCParticles() { fReadAODMCParticles = kFALSE ; } | |
367 | Bool_t ReadStack() const { return fReadStack ; } | |
368 | Bool_t ReadAODMCParticles() const { return fReadAODMCParticles ; } | |
cfaba834 | 369 | |
370 | //Select generated events, depending on comparison of pT hard and jets. | |
a5fb4114 | 371 | virtual Bool_t ComparePtHardAndJetPt() ; |
372 | virtual Bool_t IsPtHardAndJetPtComparisonSet() const { return fComparePtHardAndJetPt ; } | |
373 | virtual void SetPtHardAndJetPtComparison(Bool_t compare) { fComparePtHardAndJetPt = compare ; } | |
374 | virtual Float_t GetPtHardAndJetFactor() const { return fPtHardAndJetPtFactor ; } | |
375 | virtual void SetPtHardAndJetPtFactor(Float_t factor) { fPtHardAndJetPtFactor = factor ; } | |
eb3e2665 | 376 | |
dbb3de7b | 377 | virtual Bool_t ComparePtHardAndClusterPt() ; |
378 | virtual Bool_t IsPtHardAndClusterPtComparisonSet() const { return fComparePtHardAndClusterPt ; } | |
379 | virtual void SetPtHardAndClusterPtComparison(Bool_t compare) { fComparePtHardAndClusterPt = compare ; } | |
380 | virtual Float_t GetPtHardAndClusterFactor() const { return fPtHardAndClusterPtFactor ; } | |
381 | virtual void SetPtHardAndClusterPtFactor(Float_t factor) { fPtHardAndClusterPtFactor = factor ; } | |
382 | ||
383 | ||
cfaba834 | 384 | //MC reader methods, declared there to allow compilation, they are only used in the MC reader: |
0ae57829 | 385 | |
a5fb4114 | 386 | virtual void AddNeutralParticlesArray(TArrayI & /*array*/) { ; } |
387 | virtual void AddChargedParticlesArray(TArrayI & /*array*/) { ; } | |
388 | virtual void AddStatusArray(TArrayI & /*array*/) { ; } | |
389 | ||
390 | virtual void SwitchOnPi0Decay() { ; } | |
391 | virtual void SwitchOffPi0Decay() { ; } | |
392 | virtual void SwitchOnStatusSelection() { ; } | |
393 | virtual void SwitchOffStatusSelection() { ; } | |
394 | virtual void SwitchOnOverlapCheck() { ; } | |
395 | virtual void SwitchOffOverlapCheck() { ; } | |
396 | virtual void SwitchOnOnlyGeneratorParticles() { ; } | |
397 | virtual void SwitchOffOnlyGeneratorParticles() { ; } | |
be518ab0 | 398 | |
a5fb4114 | 399 | virtual void SetEMCALOverlapAngle(Float_t /*angle*/) { ; } |
400 | virtual void SetPHOSOverlapAngle(Float_t /*angle*/) { ; } | |
af7b3903 | 401 | |
0ae57829 | 402 | |
1c5acb87 | 403 | protected: |
21812953 | 404 | Int_t fEventNumber; // Event number |
405 | Int_t fDataType ; // Select MC:Kinematics, Data:ESD/AOD, MCData:Both | |
406 | Int_t fDebug; // Debugging level | |
407 | AliFiducialCut * fFiducialCut; //! Acceptance cuts | |
408 | Bool_t fCheckFidCut ; // Do analysis for clusters in defined region | |
decca433 | 409 | |
591cc579 | 410 | Bool_t fComparePtHardAndJetPt; // In MonteCarlo, jet events, reject fake events with wrong jet energy. |
411 | Float_t fPtHardAndJetPtFactor; // Factor between ptHard and jet pT to reject/accept event. | |
412 | ||
dbb3de7b | 413 | Bool_t fComparePtHardAndClusterPt; // In MonteCarlo, jet events, reject events with too large cluster energy |
414 | Float_t fPtHardAndClusterPtFactor; // Factor between ptHard and cluster pT to reject/accept event. | |
415 | ||
21812953 | 416 | Float_t fCTSPtMin; // pT Threshold on charged particles |
417 | Float_t fEMCALPtMin; // pT Threshold on emcal clusters | |
418 | Float_t fPHOSPtMin; // pT Threshold on phos clusters | |
419 | Float_t fCTSPtMax; // pT Threshold on charged particles | |
420 | Float_t fEMCALPtMax; // pT Threshold on emcal clusters | |
421 | Float_t fPHOSPtMax; // pT Threshold on phos clusters | |
422 | Double_t fEMCALTimeCutMin; // Remove clusters/cells with time smaller than this value, in ns | |
423 | Double_t fEMCALTimeCutMax; // Remove clusters/cells with time larger than this value, in ns | |
424 | ||
425 | TList * fAODBranchList ; //-> List with AOD branches created and needed in analysis | |
426 | TObjArray * fCTSTracks ; //-> temporal array with tracks | |
427 | TObjArray * fEMCALClusters ; //-> temporal array with EMCAL CaloClusters | |
428 | TObjArray * fPHOSClusters ; //-> temporal array with PHOS CaloClusters | |
429 | AliVCaloCells * fEMCALCells ; //! temporal array with EMCAL CaloCells | |
430 | AliVCaloCells * fPHOSCells ; //! temporal array with PHOS CaloCells | |
431 | ||
432 | AliVEvent * fInputEvent; //! pointer to esd or aod input | |
433 | AliAODEvent * fOutputEvent; //! pointer to aod output | |
434 | AliMCEvent * fMC; //! Monte Carlo Event Handler | |
435 | ||
436 | Bool_t fFillCTS; // use data from CTS | |
437 | Bool_t fFillEMCAL; // use data from EMCAL | |
438 | Bool_t fFillPHOS; // use data from PHOS | |
439 | Bool_t fFillEMCALCells; // use data from EMCAL | |
440 | Bool_t fFillPHOSCells; // use data from PHOS | |
3bfc4732 | 441 | Bool_t fRecalculateClusters; // Correct clusters, recalculate them if recalibration parameters is given |
442 | Bool_t fSelectEmbeddedClusters; // Use only simulated clusters that come from embedding. | |
48c37e02 | 443 | |
21812953 | 444 | ULong_t fTrackStatus ; // Track selection bit, select tracks refitted in TPC, ITS ... |
445 | ULong_t fTrackFilterMask ; // Track selection bit, for AODs (any difference with track status?) | |
446 | AliESDtrackCuts *fESDtrackCuts ; // Track cut | |
a9b8c1d0 | 447 | Bool_t fConstrainTrack ; // Constrain Track to vertex |
21812953 | 448 | Bool_t fSelectHybridTracks ; // Select CTS tracks of type hybrid (only for AODs) |
449 | Int_t fTrackMult ; // Track multiplicity | |
450 | Float_t fTrackMultEtaCut ; // Track multiplicity eta cut | |
451 | Bool_t fReadStack ; // Access kine information from stack | |
452 | Bool_t fReadAODMCParticles ; // Access kine information from filtered AOD MC particles | |
591cc579 | 453 | |
21812953 | 454 | TString fDeltaAODFileName ; // Delta AOD file name |
455 | TString fFiredTriggerClassName; // Name of trigger event type used to do the analysis | |
afabc52f | 456 | |
21812953 | 457 | UInt_t fEventTriggerMask ; // select this triggerered event |
790dea42 | 458 | UInt_t fMixEventTriggerMask ; // select this triggerered event for mixing, tipically kMB or kAnyINT |
21812953 | 459 | Bool_t fEventTriggerAtSE; // select triggered event at SE base task or here |
029dea5a | 460 | |
21812953 | 461 | Bool_t fAnaLED; // Analyze LED data only. |
c1ac3823 | 462 | |
21812953 | 463 | TString fTaskName; // Name of task that executes the analysis |
765d44e7 | 464 | |
21812953 | 465 | AliCalorimeterUtils * fCaloUtils ; // Pointer to CalorimeterUtils |
c8fe2783 | 466 | |
21812953 | 467 | AliMixedEvent * fMixedEvent ; //! mixed event object. This class is not the owner |
468 | Int_t fNMixedEvent ; // number of events in mixed event buffer | |
469 | Double_t ** fVertex ; //! vertex array 3 dim for each mixed event buffer | |
c8fe2783 | 470 | |
39364a52 | 471 | TList ** fListMixedTracksEvents ; //! Container for tracks stored for different events, used in case of own mixing, set in analysis class |
d783becb | 472 | TList ** fListMixedCaloEvents; //! Container for photon stored for different events, used in case of own mixing, set in analysis class |
39364a52 | 473 | Int_t fLastMixedTracksEvent ; // Temporary container with the last event added to the mixing list for tracks |
d783becb | 474 | Int_t fLastMixedCaloEvent ; // Temporary container with the last event added to the mixing list for photons |
39364a52 | 475 | |
21812953 | 476 | Bool_t fWriteOutputDeltaAOD; // Write the created delta AOD objects into file |
477 | Bool_t fOldAOD; // Old AODs, before revision 4.20 | |
f37fa8d2 | 478 | |
21812953 | 479 | Int_t fV0ADC[2] ; // Integrated V0 signal |
480 | Int_t fV0Mul[2] ; // Integrated V0 Multiplicity | |
798a9b04 | 481 | |
21812953 | 482 | Bool_t fCaloFilterPatch; // CaloFilter patch |
483 | TString fEMCALClustersListName; // Alternative list of clusters produced elsewhere and not from InputEvent | |
cd2e4ce6 | 484 | |
485 | // Event selection | |
486 | Float_t fZvtxCut ; // Cut on vertex position | |
487 | Bool_t fAcceptFastCluster; // Accept events from fast cluster, exclude these events for LHC11a | |
488 | Bool_t fRemoveLEDEvents; // Remove events where LED was wrongly firing - EMCAL LHC11a | |
20218aea | 489 | Bool_t fDoEventSelection; // Select events depending on V0, pileup, vertex well reconstructed, at least 1 track ... |
490 | Bool_t fDoV0ANDEventSelection; // Select events depending on V0, fDoEventSelection should be on | |
491 | Bool_t fUseEventsWithPrimaryVertex ; // Select events with primary vertex | |
492 | AliTriggerAnalysis* fTriggerAnalysis; // Access to trigger selection algorithm for V0AND calculation | |
4b75cb39 | 493 | Double_t fPileUpParam[5]; // Parameters to pass to method IsPileupFromSPD: Int_t minContributors, |
494 | // Double_t minZdist, | |
495 | // Double_t nSigmaZdist, | |
496 | // Double_t nSigmaDiamXY, | |
497 | // Double_t nSigmaDiamZ) | |
72542aba | 498 | //Centrality/Event plane |
21812953 | 499 | TString fCentralityClass; // Name of selected centrality class |
500 | Int_t fCentralityOpt; // Option for the returned value of the centrality, possible options 5, 10, 100 | |
501 | Int_t fCentralityBin[2]; // Minimum and maximum value of the centrality for the analysis | |
502 | TString fEventPlaneMethod; // Name of event plane method, by default "Q" | |
32fd29fe | 503 | |
de0b770d | 504 | Bool_t fImportGeometryFromFile; // Import geometry settings in geometry.root file |
505 | TString fImportGeometryFilePath; // path fo geometry.root file | |
506 | ||
0de1814a | 507 | AliCaloTrackReader( const AliCaloTrackReader & r) ; // cpy ctor |
508 | AliCaloTrackReader & operator = (const AliCaloTrackReader & r) ; // cpy assignment | |
f3138ecf | 509 | |
4b75cb39 | 510 | ClassDef(AliCaloTrackReader,44) |
f3138ecf | 511 | |
1c5acb87 | 512 | } ; |
513 | ||
514 | ||
515 | #endif //ALICALOTRACKREADER_H | |
516 | ||
517 | ||
518 |