]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG/CaloTrackCorrBase/AliCaloTrackReader.h
avoid string comparisons; avoid passing TLorentzVectors; avoid declaring TLorentzVect...
[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;
b6dd6ad2 33class AliCentrality;
72ccdf15 34class AliESDtrackCuts;
d2ad4a1a 35//class 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
d6d84709 44//jets
45class AliAODJetEventBackground;
46
1c5acb87 47class AliCaloTrackReader : public TObject {
48
03190ad7 49public:
f3138ecf 50
7321d326 51 AliCaloTrackReader() ; // ctor
52 virtual ~AliCaloTrackReader() ; // virtual dtor
53 void DeletePointers();
cfaba834 54
55 //--------------------------------
56 // General methods
57 //--------------------------------
58
59 virtual void Init();
de0b770d 60
cfaba834 61 virtual void InitParameters();
de0b770d 62
cfaba834 63 virtual void Print(const Option_t * opt) const;
de0b770d 64
cfaba834 65 virtual void ResetLists();
1c5acb87 66
3c75ddf7 67 virtual Int_t GetDebug() const { return fDebug ; }
68 virtual void SetDebug(Int_t d) { fDebug = d ; }
cfaba834 69
70 enum inputDataType {kESD, kAOD, kMC};
3c75ddf7 71 virtual Int_t GetDataType() const { return fDataType ; }
72 virtual void SetDataType(Int_t data ) { fDataType = data ; }
1c5acb87 73
3c75ddf7 74 virtual Int_t GetEventNumber() const { return fEventNumber ; }
a79a2424 75
3c75ddf7 76 TString GetTaskName() const { return fTaskName ; }
77 void SetTaskName(TString name) { fTaskName = name ; }
cfaba834 78
cfaba834 79 //---------------------------------------
914b9fe7 80 // Input/output event setters and getters
cfaba834 81 //---------------------------------------
914b9fe7 82
8a2dbbff 83 virtual void SetInputEvent(AliVEvent* input) ;
84 virtual void SetOutputEvent(AliAODEvent* aod) { fOutputEvent = aod ; }
3c75ddf7 85 virtual void SetMC(AliMCEvent* const mc) { fMC = mc ; }
be518ab0 86 virtual void SetInputOutputMCEvent(AliVEvent* /*esd*/, AliAODEvent* /*aod*/, AliMCEvent* /*mc*/) { ; }
cfaba834 87
88 // Delta AODs
914b9fe7 89
3c75ddf7 90 virtual TList * GetAODBranchList() const { return fAODBranchList ; }
91 void SetDeltaAODFileName(TString name ) { fDeltaAODFileName = name ; }
92 TString GetDeltaAODFileName() const { return fDeltaAODFileName ; }
93 void SwitchOnWriteDeltaAOD() { fWriteOutputDeltaAOD = kTRUE ; }
94 void SwitchOffWriteDeltaAOD() { fWriteOutputDeltaAOD = kFALSE ; }
95 Bool_t WriteDeltaAODToFile() const { return fWriteOutputDeltaAOD ; }
cfaba834 96
97 //------------------------------------------------------------
914b9fe7 98 // Clusters/Tracks arrays filtering/filling methods and switchs
cfaba834 99 //------------------------------------------------------------
100
76dba0aa 101 // detector identificator enum, used here and in AliAnaCaloTrackBaseClass and derived classes
102 enum detector {kEMCAL = 0, kPHOS = 1, kCTS = 2, kDCAL = 3, kDCALPHOS = 4 };
103
914b9fe7 104 // Minimum pt setters and getters
105
3c75ddf7 106 Float_t GetEMCALPtMin() const { return fEMCALPtMin ; }
107 Float_t GetPHOSPtMin() const { return fPHOSPtMin ; }
108 Float_t GetCTSPtMin() const { return fCTSPtMin ; }
109 Float_t GetEMCALPtMax() const { return fEMCALPtMax ; }
110 Float_t GetPHOSPtMax() const { return fPHOSPtMax ; }
111 Float_t GetCTSPtMax() const { return fCTSPtMax ; }
a5fb4114 112
3c75ddf7 113 void SetEMCALPtMin(Float_t pt) { fEMCALPtMin = pt ; }
114 void SetPHOSPtMin (Float_t pt) { fPHOSPtMin = pt ; }
115 void SetCTSPtMin (Float_t pt) { fCTSPtMin = pt ; }
a5fb4114 116
3c75ddf7 117 void SetEMCALPtMax(Float_t pt) { fEMCALPtMax = pt ; }
118 void SetPHOSPtMax (Float_t pt) { fPHOSPtMax = pt ; }
119 void SetCTSPtMax (Float_t pt) { fCTSPtMax = pt ; }
a5fb4114 120
3c75ddf7 121 Float_t GetEMCALEMin() const { return GetEMCALPtMin() ; }
122 Float_t GetPHOSEMin() const { return GetPHOSPtMin() ; }
123 Float_t GetEMCALEMax() const { return GetEMCALPtMax() ; }
124 Float_t GetPHOSEMax() const { return GetPHOSPtMax() ; }
cfaba834 125
3c75ddf7 126 void SetEMCALEMin (Float_t e) { SetEMCALPtMin(e) ; }
127 void SetPHOSEMin (Float_t e) { SetPHOSPtMin (e) ; }
128 void SetEMCALEMax (Float_t e) { SetEMCALPtMax(e) ; }
129 void SetPHOSEMax (Float_t e) { SetPHOSPtMax (e) ; }
cfaba834 130
cc944149 131 // Track DCA cut
914b9fe7 132
8a2dbbff 133 Bool_t AcceptDCA(Float_t pt, Float_t dca);
689d9f15 134 Double_t GetTrackDCACut(Int_t i) const { if(i >= 0 && i < 3 ) return fTrackDCACut[i] ;
135 else return -999 ; }
136
137 void SetTrackDCACut(Int_t i, Float_t cut) { if(i >= 0 && i < 3 )
138 fTrackDCACut[i] = cut ; }
139
140 void SwitchOnUseTrackDCACut() { fUseTrackDCACut = kTRUE ; }
141 void SwitchOffUseTrackDCACut() { fUseTrackDCACut = kFALSE ; }
cc944149 142 Bool_t IsDCACutOn() const { return fUseTrackDCACut ; }
689d9f15 143
914b9fe7 144 // Time cut
ff440946 145
975b29fa 146 Double_t GetTrackTimeCutMin() const { return fTrackTimeCutMin ; }
147 Double_t GetTrackTimeCutMax() const { return fTrackTimeCutMax ; }
148
975b29fa 149 void SetTrackTimeCut(Double_t a, Double_t b) { fTrackTimeCutMin = a ;
150 fTrackTimeCutMax = b ; } // ns
151
9b1587f6 152 void SwitchOnUseTrackTimeCut() { fUseTrackTimeCut = kTRUE ; fAccessTrackTOF = kTRUE ; }
4b7f6e01 153 void SwitchOffUseTrackTimeCut() { fUseTrackTimeCut = kFALSE ; }
9b1587f6 154
155 void SwitchOnAccessTrackTimeCut() { fAccessTrackTOF = kTRUE ; }
156 void SwitchOffAccessTrackTimeCut() { fAccessTrackTOF = kFALSE ; }
157 Bool_t IsAccessToTrackTimeOn() const { return fAccessTrackTOF ; }
158
4b7f6e01 159
ff440946 160 Double_t GetEMCALTimeCutMin() const { return fEMCALTimeCutMin ; }
161 Double_t GetEMCALTimeCutMax() const { return fEMCALTimeCutMax ; }
d2655d46 162
8a2dbbff 163 Bool_t IsInTimeWindow(Double_t tof, Float_t energy) const ;
3c1a2e95 164
ff440946 165 void SetEMCALTimeCut(Double_t a, Double_t b) { fEMCALTimeCutMin = a ;
d2655d46 166 fEMCALTimeCutMax = b ; } // ns
ff440946 167
168 void SetEMCALParametrizedMinTimeCut(Int_t i, Float_t par) { fEMCALParamTimeCutMin[i] = par ; }
20c626da 169 void SetEMCALParametrizedMaxTimeCut(Int_t i, Float_t par) { fEMCALParamTimeCutMax[i] = par ; }
ff440946 170
4b7f6e01 171 void SwitchOnUseEMCALTimeCut() { fUseEMCALTimeCut = kTRUE ; }
172 void SwitchOffUseEMCALTimeCut() { fUseEMCALTimeCut = kFALSE ; }
173
ff440946 174 void SwitchOnUseParametrizedTimeCut() { fUseParamTimeCut = kTRUE ; }
175 void SwitchOffUseParametrizedTimeCut() { fUseParamTimeCut = kFALSE ; }
176
914b9fe7 177 // Fidutial cuts
178
a5fb4114 179 virtual AliFiducialCut * GetFiducialCut() {
180 if(!fFiducialCut) fFiducialCut = new AliFiducialCut();
3c75ddf7 181 return fFiducialCut ; }
8a2dbbff 182 virtual void SetFiducialCut(AliFiducialCut * fc) { fFiducialCut = fc ; }
3c75ddf7 183 virtual Bool_t IsFiducialCutOn() const { return fCheckFidCut ; }
184 virtual void SwitchOnFiducialCut() { fCheckFidCut = kTRUE ;
185 fFiducialCut = new AliFiducialCut() ; }
186 virtual void SwitchOffFiducialCut() { fCheckFidCut = kFALSE ; }
edff1a03 187
cfaba834 188 // Cluster/track/cells switchs
914b9fe7 189
3c75ddf7 190 Bool_t IsCTSSwitchedOn() const { return fFillCTS ; }
191 void SwitchOnCTS() { fFillCTS = kTRUE ; }
192 void SwitchOffCTS() { fFillCTS = kFALSE ; }
1c5acb87 193
3c75ddf7 194 Bool_t IsEMCALSwitchedOn() const { return fFillEMCAL ; }
195 void SwitchOnEMCAL() { fFillEMCAL = kTRUE ; }
196 void SwitchOffEMCAL() { fFillEMCAL = kFALSE ; }
1c5acb87 197
76dba0aa 198 Bool_t IsDCALSwitchedOn() const { return fFillDCAL ; }
199 void SwitchOnDCAL() { fFillDCAL = kTRUE ; }
200 void SwitchOffDCAL() { fFillDCAL = kFALSE ; }
201
3c75ddf7 202 Bool_t IsPHOSSwitchedOn() const { return fFillPHOS ; }
203 void SwitchOnPHOS() { fFillPHOS = kTRUE ; }
204 void SwitchOffPHOS() { fFillPHOS = kFALSE ; }
1c5acb87 205
3c75ddf7 206 Bool_t IsEMCALCellsSwitchedOn() const { return fFillEMCALCells ; }
207 void SwitchOnEMCALCells() { fFillEMCALCells = kTRUE ; }
208 void SwitchOffEMCALCells() { fFillEMCALCells = kFALSE ; }
1c5acb87 209
3c75ddf7 210 Bool_t IsPHOSCellsSwitchedOn() const { return fFillPHOSCells ; }
211 void SwitchOnPHOSCells() { fFillPHOSCells = kTRUE ; }
212 void SwitchOffPHOSCells() { fFillPHOSCells = kFALSE ; }
1c5acb87 213
3bfc4732 214 Bool_t AreClustersRecalculated() const { return fRecalculateClusters ; }
215 void SwitchOnClusterRecalculation() { fRecalculateClusters = kTRUE ; }
216 void SwitchOffClusterRecalculation() { fRecalculateClusters = kFALSE ; }
ac207ee4 217
218 void SwitchOnClusterELinearityCorrection() { fCorrectELinearity = kTRUE ; }
219 void SwitchOffClusterELinearityCorrection() { fCorrectELinearity = kFALSE ; }
220
3c75ddf7 221 Bool_t IsEmbeddedClusterSelectionOn() const { return fSelectEmbeddedClusters ; }
222 void SwitchOnEmbeddedClustersSelection() { fSelectEmbeddedClusters = kTRUE ; }
223 void SwitchOffEmbeddedClustersSelection() { fSelectEmbeddedClusters = kFALSE ; }
6060ed91 224
be518ab0 225 // Filling/ filtering / detector information access methods
914b9fe7 226
8a2dbbff 227 virtual Bool_t FillInputEvent(Int_t iEntry, const char *currentFileName) ;
a5fb4114 228 virtual void FillInputCTS() ;
229 virtual void FillInputEMCAL() ;
a463e551 230 virtual void FillInputEMCALAlgorithm(AliVCluster * clus, Int_t iclus) ;
a5fb4114 231 virtual void FillInputPHOS() ;
232 virtual void FillInputEMCALCells() ;
233 virtual void FillInputPHOSCells() ;
234 virtual void FillInputVZERO() ;
235
21812953 236 Int_t GetV0Signal(Int_t i) const { return fV0ADC[i] ; }
237 Int_t GetV0Multiplicity(Int_t i) const { return fV0Mul[i] ; }
a5fb4114 238
21812953 239 void SetEMCALClusterListName(TString &name) { fEMCALClustersListName = name ; }
240 TString GetEMCALClusterListName() const { return fEMCALClustersListName ; }
cfaba834 241
914b9fe7 242 // Arrays with clusters/track/cells access method
243
21812953 244 virtual TObjArray* GetCTSTracks() const { return fCTSTracks ; }
245 virtual TObjArray* GetEMCALClusters() const { return fEMCALClusters ; }
76dba0aa 246 virtual TObjArray* GetDCALClusters() const { return fDCALClusters ; }
21812953 247 virtual TObjArray* GetPHOSClusters() const { return fPHOSClusters ; }
248 virtual AliVCaloCells* GetEMCALCells() const { return fEMCALCells ; }
249 virtual AliVCaloCells* GetPHOSCells() const { return fPHOSCells ; }
997b261e 250
cfaba834 251 //-------------------------------------
252 // Event/track selection methods
253 //-------------------------------------
254
cd2e4ce6 255 void AcceptFastClusterEvents() { fAcceptFastCluster = kTRUE ; }
256 void RejectFastClusterEvents() { fAcceptFastCluster = kFALSE ; }
c5693f62 257 Bool_t IsFastClusterAccepted() const { return fAcceptFastCluster ; }
cd2e4ce6 258
b09080f1 259 Bool_t AcceptEventWithTriggerBit();
260 Bool_t RejectEventWithTriggerBit();
261 void SetAcceptEventsWithBit(UInt_t bit) { Int_t n = fAcceptEventsWithBit.GetSize();
262 fAcceptEventsWithBit.Set(n+1);
263 fAcceptEventsWithBit.AddAt(bit,n) ; }
264
265 void SetRejectEventsWithBit(UInt_t bit) { Int_t n = fRejectEventsWithBit.GetSize();
266 fRejectEventsWithBit.Set(n+1);
267 fRejectEventsWithBit.AddAt(bit,n) ; }
268
cd2e4ce6 269 void SwitchOnLEDEventsRemoval() { fRemoveLEDEvents = kTRUE ; }
afb3af8a 270 void SwitchOffLEDEventsRemoval() { fRemoveLEDEvents = kFALSE ; }
c5693f62 271 Bool_t IsLEDEventRemoved() const { return fRemoveLEDEvents ; }
a529ae05 272 Bool_t RejectLEDEvents();
273
a5fb4114 274 void SetFiredTriggerClassName(TString name ) { fFiredTriggerClassName = name ; }
275 TString GetFiredTriggerClassName() const { return fFiredTriggerClassName ; }
997b261e 276 TString GetFiredTriggerClasses() const { return GetInputEvent()->GetFiredTriggerClasses() ; }
cfaba834 277
20c626da 278
279 // Event selection when mixed event is used
280
21812953 281 UInt_t GetEventTriggerMask() const { return fEventTriggerMask ; }
d9bea110 282 void SetEventTriggerMask(UInt_t evtTrig = AliVEvent::kAny)
029dea5a 283 { fEventTriggerMask = evtTrig ; }
20c626da 284 UInt_t GetMixEventTriggerMask() const { return fMixEventTriggerMask ; }
285 void SetMixEventTriggerMask(UInt_t evtTrig = AliVEvent::kAnyINT)
286 { fMixEventTriggerMask = evtTrig ; }
d9bea110 287 Bool_t IsEventTriggerAtSEOn() const { return fEventTriggerAtSE ; }
288 void SwitchOnEventTriggerAtSE() { fEventTriggerAtSE = kTRUE ; }
289 void SwitchOffEventTriggerAtSE() { fEventTriggerAtSE = kFALSE ; }
290
20c626da 291 // EMCal Triggered events selection, studies
292
85c4406e 293 TArrayI GetTriggerPatches(Int_t tmin, Int_t tmax);
afb3af8a 294 void MatchTriggerCluster(TArrayI patches);
295
b62d68b3 296 Bool_t CheckEventTriggers();
297
93c2e459 298 Bool_t IsExoticEvent() const { return fIsExoticEvent ; }
299 Bool_t IsBadCellTriggerEvent() const { return fIsBadCellEvent ; }
300 Bool_t IsBadMaxCellTriggerEvent() const { return fIsBadMaxCellEvent ; }
301 Bool_t IsTriggerMatched() const { return fIsTriggerMatch ; }
302 Bool_t IsTriggerMatchedOpenCuts(Int_t i) const { return fIsTriggerMatchOpenCut[i]; }
85c4406e 303
93c2e459 304 Int_t GetTriggerClusterBC() const { return fTriggerClusterBC ; }
305 Int_t GetTriggerClusterIndex() const { return fTriggerClusterIndex ; }
306 Int_t GetTriggerClusterId() const { return fTriggerClusterId ; }
a529ae05 307
93c2e459 308 Float_t GetEventTriggerL0Threshold() const { return fTriggerL0EventThreshold ; }
309 void SetEventTriggerL0Threshold(Float_t tr) { fTriggerL0EventThreshold = tr ; }
310 Float_t GetEventTriggerL1Threshold() const { return fTriggerL1EventThreshold ; }
5737e185 311 void SetEventTriggerL1Threshold(Float_t tr) { fTriggerL1EventThreshold = tr ; fTriggerL1EventThresholdFix = kTRUE; }
9bf1c947 312
5737e185 313 void SetEventTriggerL1Bit(Int_t ega, Int_t eje) { fBitEGA = ega ; fBitEJE = eje; }
314
9bf1c947 315 void SetTriggerPatchTimeWindow(Int_t min, Int_t max) { fTriggerPatchTimeWindow[0] = min ;
316 fTriggerPatchTimeWindow[1] = max ; }
317
f232431b 318 Bool_t AreBadTriggerEventsRemoved() const { return fRemoveBadTriggerEvents ; }
afb3af8a 319 void SwitchOffBadTriggerEventsRemoval() { fRemoveBadTriggerEvents = kFALSE ; }
320 void SwitchOnBadTriggerEventsRemoval() { fRemoveBadTriggerEvents = kTRUE ; }
321
f232431b 322 Bool_t AreUnMatchedTriggerEventsRemoved()const { return fRemoveUnMatchedTriggers ; }
6288bcb7 323 void SwitchOffUnMatchedTriggerEventsRemoval(){ fRemoveUnMatchedTriggers = kFALSE ; }
324 void SwitchOnUnMatchedTriggerEventsRemoval() { fRemoveUnMatchedTriggers = kTRUE ; }
325
f232431b 326 Bool_t IsTriggerPatchMatchedToCluster() const { return fTriggerPatchClusterMatch ; }
afb3af8a 327 void SwitchOffTriggerPatchMatching() { fTriggerPatchClusterMatch = kFALSE ; }
328 void SwitchOnTriggerPatchMatching() { fTriggerPatchClusterMatch = kTRUE ; }
f232431b 329
330 Bool_t IsTriggerClusterTimeRecal() const { return fTriggerClusterTimeRecal ; }
6288bcb7 331 void SwitchOnTriggerClusterTimeRecal () { fTriggerClusterTimeRecal = kTRUE ; }
332 void SwitchOffTriggerClusterTimeRecal() { fTriggerClusterTimeRecal = kFALSE ; }
ac207ee4 333
d9bea110 334 void SetEventTriggerBit();
335 Bool_t IsEventMinimumBias() const { return fEventTrigMinBias ; }
336 Bool_t IsEventCentral() const { return fEventTrigCentral ; }
337 Bool_t IsEventSemiCentral() const { return fEventTrigSemiCentral ; }
338 Bool_t IsEventEMCALL0() const { return fEventTrigEMCALL0 ; }
339 Bool_t IsEventEMCALL1Gamma1() const { return fEventTrigEMCALL1Gamma1 ; }
340 Bool_t IsEventEMCALL1Gamma2() const { return fEventTrigEMCALL1Gamma2 ; }
341 Bool_t IsEventEMCALL1Jet1() const { return fEventTrigEMCALL1Jet1 ; }
342 Bool_t IsEventEMCALL1Jet2() const { return fEventTrigEMCALL1Jet2 ; }
343 Bool_t IsEventEMCALL1Gamma() const { return (fEventTrigEMCALL1Gamma1 || fEventTrigEMCALL1Gamma2) ; }
344 Bool_t IsEventEMCALL1Jet() const { return (fEventTrigEMCALL1Jet1 || fEventTrigEMCALL1Jet2 ) ; }
345 Bool_t IsEventEMCALL1() const { return (IsEventEMCALL1Gamma() || IsEventEMCALL1Jet() ) ; }
346
b83f0015 347 void SwitchOnEMCALEventRejectionWith2Thresholds() { fRejectEMCalTriggerEventsWith2Tresholds = kTRUE ; }
348 void SwitchOffEMCALEventRejectionWith2Thresholds() { fRejectEMCalTriggerEventsWith2Tresholds = kFALSE ; }
d9bea110 349
20c626da 350 // Other event rejections criteria
351
fc85781f 352 void SwitchOnPileUpEventRejection() { fDoPileUpEventRejection= kTRUE ; }
353 void SwitchOffPileUpEventRejection() { fDoPileUpEventRejection= kFALSE ; }
354 Bool_t IsPileUpEventRejectionDone() const { return fDoPileUpEventRejection ; }
cfaba834 355
a5fb4114 356 void SwitchOnV0ANDSelection() { fDoV0ANDEventSelection = kTRUE ; }
357 void SwitchOffV0ANDSelection() { fDoV0ANDEventSelection = kFALSE ; }
358 Bool_t IsV0ANDEventSelectionDone() const { return fDoV0ANDEventSelection ; }
20218aea 359
cc944149 360 void SwitchOnVertexBCEventSelection() { fDoVertexBCEventSelection = kTRUE ; }
361 void SwitchOffVertexBCEventSelection() { fDoVertexBCEventSelection = kFALSE ; }
362 Bool_t IsVertexBCEventSelectionDone() const { return fDoVertexBCEventSelection ; }
363
a5fb4114 364 void SwitchOnPrimaryVertexSelection() { fUseEventsWithPrimaryVertex = kTRUE ; }
365 void SwitchOffPrimaryVertexSelection() { fUseEventsWithPrimaryVertex = kFALSE ; }
366 Bool_t IsPrimaryVertexSelectionDone() const { return fUseEventsWithPrimaryVertex ; }
20218aea 367
2644ead9 368 void SwitchOnRejectNoTrackEvents() { fDoRejectNoTrackEvents = kTRUE ; }
369 void SwitchOffRejectNoTrackEvents() { fDoRejectNoTrackEvents = kFALSE ; }
370 Bool_t IsEventWithNoTrackRejectionDone() const { return fDoRejectNoTrackEvents ; }
371
d9bea110 372
914b9fe7 373 // Time Stamp
034e885b 374
b370e713 375 Double_t GetRunTimeStampMin() const { return fTimeStampRunMin ; }
376 Double_t GetRunTimeStampMax() const { return fTimeStampRunMax ; }
034e885b 377
b370e713 378 void SetRunTimeStamp(Double_t a, Double_t b) { fTimeStampRunMin = a ;
034e885b 379 fTimeStampRunMax = b ; } // seconds
380
381 Float_t GetEventTimeStampFractionMin() const { return fTimeStampEventFracMin ; }
382 Float_t GetEventTimeStampFractionMax() const { return fTimeStampEventFracMax ; }
383
384 void SetEventTimeStampFraction(Float_t a, Float_t b) { fTimeStampEventFracMin = a ;
385 fTimeStampEventFracMax = b ; }
386
387 void SwitchOnSelectEventTimeStamp() { fTimeStampEventSelect = kTRUE ; }
388 void SwitchOffSelectEventTimeStamp() { fTimeStampEventSelect = kFALSE ; }
389
b8d661af 390 Bool_t IsSelectEventTimeStampOn() {return fTimeStampEventSelect ; }
034e885b 391
20c626da 392 // Event tagging as pile-up
393
3c1a2e95 394 Bool_t IsPileUpFromSPD() const ;
395 Bool_t IsPileUpFromEMCal() const ;
396 Bool_t IsPileUpFromSPDAndEMCal() const ;
397 Bool_t IsPileUpFromSPDOrEMCal() const ;
398 Bool_t IsPileUpFromSPDAndNotEMCal() const ;
399 Bool_t IsPileUpFromEMCalAndNotSPD() const ;
400 Bool_t IsPileUpFromNotSPDAndNotEMCal() const ;
401
402 void SetPileUpParamForSPD (Int_t i, Double_t param)
f5500c7a 403 { fPileUpParamSPD[i] = param ; }
404 void SetPileUpParamForEMCal(Int_t param) { fNPileUpClustersCut = param ; }
4b75cb39 405
f5500c7a 406 Int_t GetNPileUpClusters() { return fNPileUpClusters ; }
407 Int_t GetNNonPileUpClusters() { return fNNonPileUpClusters ; }
975b29fa 408
409 Int_t GetEMCalEventBC(Int_t bc) const { if(bc >=0 && bc < 19) return fEMCalBCEvent [bc] ; else return 0 ; }
410 Int_t GetTrackEventBC(Int_t bc) const { if(bc >=0 && bc < 19) return fTrackBCEvent [bc] ; else return 0 ; }
411 Int_t GetEMCalEventBCcut(Int_t bc) const { if(bc >=0 && bc < 19) return fEMCalBCEventCut[bc] ; else return 0 ; }
412 Int_t GetTrackEventBCcut(Int_t bc) const { if(bc >=0 && bc < 19) return fTrackBCEventCut[bc] ; else return 0 ; }
413
414 void SetEMCalEventBC(Int_t bc) { if(bc >=0 && bc < 19) fEMCalBCEvent [bc] = 1 ; }
415 void SetTrackEventBC(Int_t bc) { if(bc >=0 && bc < 19) fTrackBCEvent [bc] = 1 ; }
416 void SetEMCalEventBCcut(Int_t bc) { if(bc >=0 && bc < 19) fEMCalBCEventCut[bc] = 1 ; }
417 void SetTrackEventBCcut(Int_t bc) { if(bc >=0 && bc < 19) fTrackBCEventCut[bc] = 1 ; }
3c1a2e95 418
c2a62a94 419 Int_t GetVertexBC(const AliVVertex * vtx);
420 Int_t GetVertexBC() const { return fVertexBC ; }
9b1587f6 421 void SwitchOnRecalculateVertexBC() { fRecalculateVertexBC = kTRUE ; fAccessTrackTOF = kTRUE ; }
c2a62a94 422 void SwitchOffRecalculateVertexBC() { fRecalculateVertexBC = kFALSE ; }
975b29fa 423
3a58eee6 424 // Track selection
914b9fe7 425
f5500c7a 426 ULong_t GetTrackStatus() const { return fTrackStatus ; }
72ccdf15 427 void SetTrackStatus(ULong_t bit) { fTrackStatus = bit ; }
d7601185 428
72ccdf15 429 virtual Bool_t SelectTrack(AliVTrack* , Double_t*) { return kFALSE ; } // See AOD/ESD reader
c5693f62 430
f5500c7a 431 void SwitchOnTrackHitSPDSelection() { fSelectSPDHitTracks = kTRUE ; }
432 void SwitchOffTrackHitSPDSelection() { fSelectSPDHitTracks = kFALSE ; }
433
434 Int_t GetTrackMultiplicity() const { return fTrackMult ; }
435 Float_t GetTrackMultiplicityEtaCut() const { return fTrackMultEtaCut ; }
436 void SetTrackMultiplicityEtaCut(Float_t eta) { fTrackMultEtaCut = eta ; }
c8fe2783 437
72ccdf15 438 // virtual for AODReader
439
440 virtual ULong_t GetTrackFilterMask() const { return 0 ; }
441 virtual void SetTrackFilterMask(ULong_t) { ; }
442
443 virtual ULong_t GetTrackFilterMaskComplementary() const { return 0 ; }
444 virtual void SetTrackFilterMaskComplementary(ULong_t) { ; }
445
446 virtual void SwitchOnAODHybridTrackSelection() { ; }
447 virtual void SwitchOffAODHybridTrackSelection() { ; }
448
449 virtual void SwitchOnAODPrimaryTrackSelection() { ; }
450 virtual void SwitchOffAODPrimaryTrackSelection() { ; }
451
452 virtual void SwitchOnAODTrackSharedClusterSelection() { ; }
453 virtual void SwitchOffAODTrackSharedClusterSelection(){ ; }
454
455 virtual void SetTPCSharedClusterFraction(Float_t) { ; }
456 virtual Float_t GetTPCSharedClusterFraction() const { return 0 ; }
457
458 // virtual for ESDReader
459
460 virtual AliESDtrackCuts* GetTrackCuts() const { return 0 ; }
461 virtual AliESDtrackCuts* GetTrackComplementaryCuts() const { return 0 ; }
462
463 virtual void SetTrackCuts(AliESDtrackCuts *) { ; }
464 virtual void SetTrackComplementaryCuts(AliESDtrackCuts *) { ; }
465
466 virtual void SwitchOnConstrainTrackToVertex() { ; }
467 virtual void SwitchOffConstrainTrackToVertex() { ; }
468
20c626da 469 // Calorimeter pure LED events selection
f5500c7a 470 void AnalyzeOnlyLED() { fAnaLED = kTRUE ; }
471 void AnalyzeOnlyPhysics() { fAnaLED = kFALSE ; }
a5fb4114 472
cfaba834 473 //-------------------------------
914b9fe7 474 // Vertex methods
cfaba834 475 //-------------------------------
914b9fe7 476
a5fb4114 477 virtual void GetVertex(Double_t v[3]) const ;
8a2dbbff 478 virtual Double_t* GetVertex(Int_t evtIndex) const { return fVertex[evtIndex] ; }
a5fb4114 479 virtual void GetVertex(Double_t vertex[3], const Int_t evtIndex) const ;
cfaba834 480 virtual void FillVertexArray();
4e66a438 481 virtual Bool_t CheckForPrimaryVertex() const { return kTRUE ; } // algorithm in ESD/AOD Readers
482 virtual Float_t GetZvertexCut() const { return fZvtxCut ; } // cut on vertex position
483 virtual void SetZvertexCut(Float_t zcut=10.) { fZvtxCut=zcut ; } // cut on vertex position
0b13c1f9 484
05d0d05d 485 //--------------------------
72542aba 486 // Centrality / Event Plane
05d0d05d 487 //--------------------------
914b9fe7 488
489 virtual AliCentrality* GetCentrality() const { if(fDataType!=kMC) return fInputEvent->GetCentrality() ;
ee893147 490 else return 0x0 ; }
a5fb4114 491 virtual void SetCentralityClass(TString name) { fCentralityClass = name ; }
492 virtual void SetCentralityOpt(Int_t opt) { fCentralityOpt = opt ; }
493 virtual TString GetCentralityClass() const { return fCentralityClass ; }
494 virtual Int_t GetCentralityOpt() const { return fCentralityOpt ; }
495 virtual Int_t GetEventCentrality() const ;
496 virtual void SetCentralityBin(Int_t min, Int_t max) //Set the centrality bin to select the event. If used, then need to get percentile
497 { fCentralityBin[0]=min; fCentralityBin[1]=max;
498 if(min>=0 && max > 0) fCentralityOpt = 100 ; }
499 virtual Float_t GetCentralityBin(Int_t i) const { if(i < 0 || i > 1) return 0 ;
500 else return fCentralityBin[i] ; }
501
ee893147 502 virtual AliEventplane* GetEventPlane() const { if(fDataType!=kMC) return fInputEvent->GetEventplane() ;
503 else return 0x0 ; }
9929c80b 504 virtual Double_t GetEventPlaneAngle() const ;
3c75ddf7 505 virtual void SetEventPlaneMethod(TString m) { fEventPlaneMethod = m ; }
506 virtual TString GetEventPlaneMethod() const { return fEventPlaneMethod ; }
72542aba 507
39364a52 508 //--------------------
509 // Mixing
510 //--------------------
511
d783becb 512 Int_t GetLastCaloMixedEvent() const { return fLastMixedCaloEvent ; }
39364a52 513 Int_t GetLastTracksMixedEvent () const { return fLastMixedTracksEvent ; }
514
20c626da 515 TList * GetListWithMixedEventsForCalo (Int_t bi) const { if(fListMixedCaloEvents) return fListMixedCaloEvents [bi] ; else return 0 ; }
516 TList * GetListWithMixedEventsForTracks(Int_t bi) const { if(fListMixedTracksEvents) return fListMixedTracksEvents[bi] ; else return 0 ; }
39364a52 517
d783becb 518 Bool_t ListWithMixedEventsForCaloExists() const { if(fListMixedCaloEvents) return kTRUE ;
519 else return kFALSE ; }
39364a52 520
d783becb 521 Bool_t ListWithMixedEventsForTracksExists() const { if(fListMixedTracksEvents) return kTRUE ;
522 else return kFALSE ; }
39364a52 523
d783becb 524 void SetLastCaloMixedEvent (Int_t e) { fLastMixedCaloEvent = e ; }
525 void SetLastTracksMixedEvent(Int_t e) { fLastMixedTracksEvent = e ; }
39364a52 526
d783becb 527 void SetListWithMixedEventsForCalo (TList ** l) {
528 if(fListMixedCaloEvents) printf("AliCaloTrackReader::SetListWithMixedEventsForCalo() - Track Mixing event list already set, nothing done\n");
529 else fListMixedCaloEvents = l ; }
39364a52 530
d783becb 531 void SetListWithMixedEventsForTracks(TList ** l) {
532 if(fListMixedTracksEvents) printf("AliCaloTrackReader::SetListWithMixedEventsForTracks() - Calorimeter Mixing event list already set, nothing done\n");
39364a52 533 else fListMixedTracksEvents = l ; }
534
cfaba834 535 //-------------------------------------
536 // Other methods
537 //-------------------------------------
914b9fe7 538
3c75ddf7 539 AliCalorimeterUtils * GetCaloUtils() const { return fCaloUtils ; }
540 void SetCaloUtils(AliCalorimeterUtils * caloutils) { fCaloUtils = caloutils ; }
48c37e02 541
a5fb4114 542 virtual Double_t GetBField() const { return fInputEvent->GetMagneticField() ; }
cfaba834 543
544 //------------------------------------------------
545 // MC analysis specific methods
546 //-------------------------------------------------
547
914b9fe7 548 // Kinematics and galice.root available
549
a5fb4114 550 virtual AliStack* GetStack() const ;
551 virtual AliHeader* GetHeader() const ;
552 virtual AliGenEventHeader* GetGenEventHeader() const ;
cfaba834 553
914b9fe7 554 // Filtered kinematics in AOD
555
2644ead9 556 virtual TClonesArray* GetAODMCParticles() const ;
557 virtual AliAODMCHeader* GetAODMCHeader () const ;
2644ead9 558
3c75ddf7 559 virtual AliVEvent* GetInputEvent() const { return fInputEvent ; }
560 virtual AliVEvent* GetOriginalInputEvent() const { return 0x0 ; }
561 virtual AliAODEvent* GetOutputEvent() const { return fOutputEvent ; }
562 virtual AliMCEvent* GetMC() const { return fMC ; }
563 virtual AliMixedEvent* GetMixedEvent() const { return fMixedEvent ; }
564 virtual Int_t GetNMixedEvent() const { return fNMixedEvent ; }
a5fb4114 565
3c75ddf7 566 void SwitchOnStack() { fReadStack = kTRUE ; }
567 void SwitchOffStack() { fReadStack = kFALSE ; }
568 void SwitchOnAODMCParticles() { fReadAODMCParticles = kTRUE ; }
569 void SwitchOffAODMCParticles() { fReadAODMCParticles = kFALSE ; }
570 Bool_t ReadStack() const { return fReadStack ; }
571 Bool_t ReadAODMCParticles() const { return fReadAODMCParticles ; }
cfaba834 572
914b9fe7 573 void RemapMCLabelForAODs(Int_t &label);
574
575 // Select generated events, depending on comparison of pT hard and jets
43cd6c94 576
a5fb4114 577 virtual Bool_t ComparePtHardAndJetPt() ;
578 virtual Bool_t IsPtHardAndJetPtComparisonSet() const { return fComparePtHardAndJetPt ; }
579 virtual void SetPtHardAndJetPtComparison(Bool_t compare) { fComparePtHardAndJetPt = compare ; }
580 virtual Float_t GetPtHardAndJetFactor() const { return fPtHardAndJetPtFactor ; }
581 virtual void SetPtHardAndJetPtFactor(Float_t factor) { fPtHardAndJetPtFactor = factor ; }
eb3e2665 582
dbb3de7b 583 virtual Bool_t ComparePtHardAndClusterPt() ;
584 virtual Bool_t IsPtHardAndClusterPtComparisonSet() const { return fComparePtHardAndClusterPt ; }
585 virtual void SetPtHardAndClusterPtComparison(Bool_t compare) { fComparePtHardAndClusterPt = compare ; }
586 virtual Float_t GetPtHardAndClusterFactor() const { return fPtHardAndClusterPtFactor ; }
587 virtual void SetPtHardAndClusterPtFactor(Float_t factor) { fPtHardAndClusterPtFactor = factor ; }
588
a463e551 589 virtual Bool_t IsHIJINGLabel(Int_t label);
667a3592 590 void SetGeneratorMinMaxParticles();
43cd6c94 591 void SwitchOnAcceptOnlyHIJINGLabels() { fAcceptOnlyHIJINGLabels = kTRUE ; }
592 void SwitchOffAcceptOnlyHIJINGLabels() { fAcceptOnlyHIJINGLabels = kFALSE ; }
667a3592 593 Bool_t AcceptOnlyHIJINGLabels() const { return fAcceptOnlyHIJINGLabels ; }
dbb3de7b 594
914b9fe7 595 // MC reader methods, declared there to allow compilation, they are only used in the MC reader
0ae57829 596
a5fb4114 597 virtual void AddNeutralParticlesArray(TArrayI & /*array*/) { ; }
598 virtual void AddChargedParticlesArray(TArrayI & /*array*/) { ; }
599 virtual void AddStatusArray(TArrayI & /*array*/) { ; }
600
601 virtual void SwitchOnPi0Decay() { ; }
602 virtual void SwitchOffPi0Decay() { ; }
603 virtual void SwitchOnStatusSelection() { ; }
604 virtual void SwitchOffStatusSelection() { ; }
605 virtual void SwitchOnOverlapCheck() { ; }
606 virtual void SwitchOffOverlapCheck() { ; }
607 virtual void SwitchOnOnlyGeneratorParticles() { ; }
608 virtual void SwitchOffOnlyGeneratorParticles() { ; }
be518ab0 609
a5fb4114 610 virtual void SetEMCALOverlapAngle(Float_t /*angle*/) { ; }
611 virtual void SetPHOSOverlapAngle(Float_t /*angle*/) { ; }
af7b3903 612
43cd6c94 613 //-------------
614 // Jets
615 //-------------
616 Bool_t IsNonStandardJetsSwitchedOn() const { return fFillInputNonStandardJetBranch ; }
617 void SwitchOnNonStandardJets() { fFillInputNonStandardJetBranch = kTRUE ; }
618 void SwitchOffNonStandardJets() { fFillInputNonStandardJetBranch = kFALSE ; }
619
d6d84709 620 Bool_t IsBackgroundJetsSwitchedOn() const { return fFillInputBackgroundJetBranch ; }
621 void SwitchOnBackgroundJets() { fFillInputBackgroundJetBranch = kTRUE ; }
622 void SwitchOffBackgroundJets() { fFillInputBackgroundJetBranch = kFALSE ; }
623
43cd6c94 624 virtual void FillInputNonStandardJets() ;
625 virtual TClonesArray* GetNonStandardJets() const { return fNonStandardJets ; }
626 virtual void SetInputNonStandardJetBranchName(TString name) { fInputNonStandardJetBranchName = name ; }
627 virtual TString GetInputNonStandardJetBranchName() { return fInputNonStandardJetBranchName ; }
0ae57829 628
d6d84709 629 virtual void FillInputBackgroundJets() ;
630 virtual AliAODJetEventBackground* GetBackgroundJets() const { return fBackgroundJets ; }
631 virtual void SetInputBackgroundJetBranchName(TString name) { fInputBackgroundJetBranchName = name ; }
632 virtual TString GetInputBackgroundJetBranchName() { return fInputBackgroundJetBranchName ; }
633
1c5acb87 634 protected:
d9bea110 635 Int_t fEventNumber; // Event number
636 Int_t fDataType ; // Select MC:Kinematics, Data:ESD/AOD, MCData:Both
637 Int_t fDebug; // Debugging level
638 AliFiducialCut * fFiducialCut; // Acceptance cuts
639 Bool_t fCheckFidCut ; // Do analysis for clusters in defined region
640
641 Bool_t fComparePtHardAndJetPt; // In MonteCarlo, jet events, reject fake events with wrong jet energy.
642 Float_t fPtHardAndJetPtFactor; // Factor between ptHard and jet pT to reject/accept event.
643
644 Bool_t fComparePtHardAndClusterPt; // In MonteCarlo, jet events, reject events with too large cluster energy
645 Float_t fPtHardAndClusterPtFactor; // Factor between ptHard and cluster pT to reject/accept event.
646
647 Float_t fCTSPtMin; // pT Threshold on charged particles
648 Float_t fEMCALPtMin; // pT Threshold on emcal clusters
649 Float_t fPHOSPtMin; // pT Threshold on phos clusters
650 Float_t fCTSPtMax; // pT Threshold on charged particles
651 Float_t fEMCALPtMax; // pT Threshold on emcal clusters
652 Float_t fPHOSPtMax; // pT Threshold on phos clusters
653 Bool_t fUseEMCALTimeCut; // Do time cut selection
654 Bool_t fUseParamTimeCut; // Use simple or parametrized time cut
655 Bool_t fUseTrackTimeCut; // Do time cut selection
9b1587f6 656 Bool_t fAccessTrackTOF; // Access the track TOF, in case of problems when accessing GetTOFBunchCrossing
d9bea110 657 Double_t fEMCALTimeCutMin; // Remove clusters/cells with time smaller than this value, in ns
658 Double_t fEMCALTimeCutMax; // Remove clusters/cells with time larger than this value, in ns
659 Float_t fEMCALParamTimeCutMin[4]; // Remove clusters/cells with time smaller than parametrized value, in ns
660 Double_t fEMCALParamTimeCutMax[4]; // Remove clusters/cells with time larger than parametrized value, in ns
661 Double_t fTrackTimeCutMin; // Remove tracks with time smaller than this value, in ns
662 Double_t fTrackTimeCutMax; // Remove tracks with time larger than this value, in ns
663 Bool_t fUseTrackDCACut; // Do DCA selection
664 Double_t fTrackDCACut[3]; // Remove tracks with DCA larger than cut, parameters of function stored here
665
666 TList * fAODBranchList ; //-> List with AOD branches created and needed in analysis
667 TObjArray * fCTSTracks ; //-> temporal array with tracks
668 TObjArray * fEMCALClusters ; //-> temporal array with EMCAL CaloClusters
76dba0aa 669 TObjArray * fDCALClusters ; //-> temporal array with DCAL CaloClusters, not needed in the normal case, use just EMCal array with DCal limits
d9bea110 670 TObjArray * fPHOSClusters ; //-> temporal array with PHOS CaloClusters
671 AliVCaloCells * fEMCALCells ; //! temporal array with EMCAL CaloCells
672 AliVCaloCells * fPHOSCells ; //! temporal array with PHOS CaloCells
673
674 AliVEvent * fInputEvent; //! pointer to esd or aod input
675 AliAODEvent * fOutputEvent; //! pointer to aod output
676 AliMCEvent * fMC; //! Monte Carlo Event Handler
677
678 Bool_t fFillCTS; // use data from CTS
679 Bool_t fFillEMCAL; // use data from EMCAL
76dba0aa 680 Bool_t fFillDCAL; // use data from DCAL, not needed in the normal case, use just EMCal array with DCal limits
d9bea110 681 Bool_t fFillPHOS; // use data from PHOS
682 Bool_t fFillEMCALCells; // use data from EMCAL
683 Bool_t fFillPHOSCells; // use data from PHOS
684 Bool_t fRecalculateClusters; // Correct clusters, recalculate them if recalibration parameters is given
ac207ee4 685 Bool_t fCorrectELinearity; // Correct cluster linearity, always on
d9bea110 686 Bool_t fSelectEmbeddedClusters; // Use only simulated clusters that come from embedding.
687
688 ULong_t fTrackStatus ; // Track selection bit, select tracks refitted in TPC, ITS ...
d9bea110 689 Bool_t fSelectSPDHitTracks ; // Ensure that track hits SPD layers
690 Int_t fTrackMult ; // Track multiplicity
691 Float_t fTrackMultEtaCut ; // Track multiplicity eta cut
72ccdf15 692
d9bea110 693 Bool_t fReadStack ; // Access kine information from stack
694 Bool_t fReadAODMCParticles ; // Access kine information from filtered AOD MC particles
591cc579 695
d9bea110 696 TString fDeltaAODFileName ; // Delta AOD file name
697 TString fFiredTriggerClassName; // Name of trigger event type used to do the analysis
698
699 // Trigger bit
700 UInt_t fEventTriggerMask ; // select this triggerered event
701 UInt_t fMixEventTriggerMask ; // select this triggerered event for mixing, tipically kMB or kAnyINT
702 Bool_t fEventTriggerAtSE; // select triggered event at SE base task or here
703
704 Bool_t fEventTrigMinBias ; // Event is min bias on its name, it should correspond to AliVEvent::kMB, AliVEvent::kAnyInt
705 Bool_t fEventTrigCentral ; // Event is AliVEvent::kCentral on its name, it should correspond to PbPb
706 Bool_t fEventTrigSemiCentral ; // Event is AliVEvent::kSemiCentral on its name, it should correspond to PbPb
707 Bool_t fEventTrigEMCALL0 ; // Event is EMCal L0 on its name, it should correspond to AliVEvent::kEMC7, AliVEvent::kEMC1
708 Bool_t fEventTrigEMCALL1Gamma1 ; // Event is L1-Gamma, threshold 1 on its name, it should correspond kEMCEGA
709 Bool_t fEventTrigEMCALL1Gamma2 ; // Event is L1-Gamma, threshold 2 on its name, it should correspond kEMCEGA
710 Bool_t fEventTrigEMCALL1Jet1 ; // Event is L1-Gamma, threshold 1 on its name, it should correspond kEMCEGA
711 Bool_t fEventTrigEMCALL1Jet2 ; // Event is L1-Gamma, threshold 2 on its name, it should correspond kEMCEGA
712
713 Int_t fBitEGA; // Trigger bit on VCaloTrigger for EGA
714 Int_t fBitEJE; // Trigger bit on VCaloTrigger for EJE
715
716 Bool_t fAnaLED; // Analyze LED data only.
c1ac3823 717
d9bea110 718 TString fTaskName; // Name of task that executes the analysis
765d44e7 719
d9bea110 720 AliCalorimeterUtils * fCaloUtils ; // Pointer to CalorimeterUtils
c8fe2783 721
d9bea110 722 AliMixedEvent * fMixedEvent ; //! mixed event object. This class is not the owner
723 Int_t fNMixedEvent ; // number of events in mixed event buffer
724 Double_t ** fVertex ; //! vertex array 3 dim for each mixed event buffer
c8fe2783 725
d9bea110 726 TList ** fListMixedTracksEvents ; //! Container for tracks stored for different events, used in case of own mixing, set in analysis class
727 TList ** fListMixedCaloEvents; //! Container for photon stored for different events, used in case of own mixing, set in analysis class
728 Int_t fLastMixedTracksEvent ; // Temporary container with the last event added to the mixing list for tracks
729 Int_t fLastMixedCaloEvent ; // Temporary container with the last event added to the mixing list for photons
39364a52 730
d9bea110 731 Bool_t fWriteOutputDeltaAOD; // Write the created delta AOD objects into file
f37fa8d2 732
d9bea110 733 Int_t fV0ADC[2] ; // Integrated V0 signal
734 Int_t fV0Mul[2] ; // Integrated V0 Multiplicity
798a9b04 735
d9bea110 736 TString fEMCALClustersListName; // Alternative list of clusters produced elsewhere and not from InputEvent
cd2e4ce6 737
738 // Event selection
739 Float_t fZvtxCut ; // Cut on vertex position
740 Bool_t fAcceptFastCluster; // Accept events from fast cluster, exclude these events for LHC11a
741 Bool_t fRemoveLEDEvents; // Remove events where LED was wrongly firing - EMCAL LHC11a
9bf1c947 742
afb3af8a 743 Bool_t fRemoveBadTriggerEvents; // Remove triggered events because trigger was exotic, bad, or out of BC
744 Bool_t fTriggerPatchClusterMatch; // Search for the trigger patch and check if associated cluster was the trigger
9bf1c947 745 Int_t fTriggerPatchTimeWindow[2]; // Trigger patch selection window
5737e185 746
93c2e459 747 Float_t fTriggerL0EventThreshold; // L0 Threshold to look for triggered events, set outside
748 Float_t fTriggerL1EventThreshold; // L1 Threshold to look for triggered events, set in data
5737e185 749 Bool_t fTriggerL1EventThresholdFix; // L1 Threshold is fix and set outside
750
afb3af8a 751 Int_t fTriggerClusterBC; // Event triggered by a cluster in BC -5 0 to 5
752 Int_t fTriggerClusterIndex; // Index in clusters array of trigger cluster
753 Int_t fTriggerClusterId; // Id of trigger cluster (cluster->GetID())
754 Bool_t fIsExoticEvent; // Exotic trigger event flag
1035a8d9 755 Bool_t fIsBadCellEvent; // Bad cell triggered event flag, any cell in cluster is bad
756 Bool_t fIsBadMaxCellEvent; // Bad cell triggered event flag, only max energy cell is bad
85c4406e 757 Bool_t fIsTriggerMatch; // Could match the event to a trigger patch?
758 Bool_t fIsTriggerMatchOpenCut[3]; // Could not match the event to a trigger patch?, retry opening cuts
ac207ee4 759 Bool_t fTriggerClusterTimeRecal; // In case cluster already calibrated, do not try to recalibrate even if recalib on in RecoUtils.
6288bcb7 760 Bool_t fRemoveUnMatchedTriggers; // Analyze events where trigger patch and cluster where found or not
761
9bf1c947 762
fc85781f 763 Bool_t fDoPileUpEventRejection; // Select pile-up events by SPD
764 Bool_t fDoV0ANDEventSelection; // Select events depending on V0AND
cc944149 765 Bool_t fDoVertexBCEventSelection; // Select events with vertex on BC=0 or -100
2644ead9 766 Bool_t fDoRejectNoTrackEvents; // Reject events with no selected tracks in event
20218aea 767 Bool_t fUseEventsWithPrimaryVertex ; // Select events with primary vertex
d2ad4a1a 768 //AliTriggerAnalysis* fTriggerAnalysis; // Access to trigger selection algorithm for V0AND calculation
034e885b 769
770 Bool_t fTimeStampEventSelect; // Select events within a fraction of data taking time
771 Float_t fTimeStampEventFracMin; // Minimum value of time stamp fraction event
772 Float_t fTimeStampEventFracMax; // Maximum value of time stamp fraction event
b370e713 773 Double_t fTimeStampRunMin; // Minimum value of time stamp in run
774 Double_t fTimeStampRunMax; // Maximum value of time stamp in run
034e885b 775
3c1a2e95 776 Double_t fPileUpParamSPD[5]; // Parameters to pass to method IsPileupFromSPD: Int_t minContributors,
4b75cb39 777 // Double_t minZdist,
778 // Double_t nSigmaZdist,
779 // Double_t nSigmaDiamXY,
780 // Double_t nSigmaDiamZ)
034e885b 781
3c1a2e95 782 // Pile-up in EMCal
783 Int_t fNPileUpClusters; // Number of clusters with time avobe 20 ns
784 Int_t fNNonPileUpClusters; // Number of clusters with time below 20 ns
785 Int_t fNPileUpClustersCut; // Cut to select event as pile-up
975b29fa 786 Int_t fEMCalBCEvent[19]; // Fill one entry per event if there is a cluster in a given BC
787 Int_t fEMCalBCEventCut[19]; // Fill one entry per event if there is a cluster in a given BC, depend on cluster E, acceptance cut
788 Int_t fTrackBCEvent[19]; // Fill one entry per event if there is a track in a given BC
789 Int_t fTrackBCEventCut[19]; // Fill one entry per event if there is a track in a given BC, depend on track pT, acceptance cut
cc944149 790 Int_t fVertexBC; // Vertex BC
791 Bool_t fRecalculateVertexBC; // Recalculate vertex BC from tracks pointing to vertex
792
72542aba 793 //Centrality/Event plane
d9bea110 794 TString fCentralityClass; // Name of selected centrality class
795 Int_t fCentralityOpt; // Option for the returned value of the centrality, possible options 5, 10, 100
796 Int_t fCentralityBin[2]; // Minimum and maximum value of the centrality for the analysis
797 TString fEventPlaneMethod; // Name of event plane method, by default "Q"
de0b770d 798
43cd6c94 799 Bool_t fAcceptOnlyHIJINGLabels; // Select clusters or tracks that where generated by HIJING, reject other generators in case of cocktail
667a3592 800 Int_t fNMCProducedMin; // In case of cocktail, select particles in the list with label from this value
801 Int_t fNMCProducedMax; // In case of cocktail, select particles in the list with label up to this value
802
43cd6c94 803 // jets
43cd6c94 804 Bool_t fFillInputNonStandardJetBranch; // Flag to use data from non standard jets
805 TClonesArray * fNonStandardJets; //! temporal array with jets
806 TString fInputNonStandardJetBranchName; // Name of non standard jet branch
d6d84709 807 Bool_t fFillInputBackgroundJetBranch; // Flag to use data from background jets
808 AliAODJetEventBackground * fBackgroundJets; //! background jets
809 TString fInputBackgroundJetBranchName; // Name of background jet branch
810
b09080f1 811 TArrayI fAcceptEventsWithBit; // Accept events if trigger bit is on
812 TArrayI fRejectEventsWithBit; // Reject events if trigger bit is on
813
b83f0015 814 Bool_t fRejectEMCalTriggerEventsWith2Tresholds; // Reject events EG2 also triggered by EG1 or EJ2 also triggered by EJ1
815
76dba0aa 816 TLorentzVector fMomentum; //! Temporal TLorentzVector container, avoid declaration of TLorentzVectors per event
817
0de1814a 818 AliCaloTrackReader( const AliCaloTrackReader & r) ; // cpy ctor
819 AliCaloTrackReader & operator = (const AliCaloTrackReader & r) ; // cpy assignment
f3138ecf 820
edff1a03 821 ClassDef(AliCaloTrackReader,68)
f3138ecf 822
1c5acb87 823} ;
824
825
826#endif //ALICALOTRACKREADER_H
827
828
829