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