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