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