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