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