AliPhysics  0e0bd91 (0e0bd91)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
AliCaloTrackReader.h
Go to the documentation of this file.
1 #ifndef ALICALOTRACKREADER_H
2 #define ALICALOTRACKREADER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 //_________________________________________________________________________
23 //_________________________________________________________________________
24 
25 // --- ROOT system ---
26 #include <TObject.h>
27 #include <TString.h>
28 class TObjArray ;
29 class TTree ;
30 class TArrayI ;
31 #include <TRandom3.h>
32 
33 //--- ANALYSIS system ---
34 #include "AliVEvent.h"
35 class AliVCaloCells;
36 class AliStack;
37 class AliHeader;
38 class AliGenEventHeader;
39 class AliAODEvent;
40 class AliMCEvent;
41 class AliMixedEvent;
42 class AliAODMCHeader;
43 class AliCentrality;
44 class AliMultSelection;
45 class AliESDtrackCuts;
46 //class AliTriggerAnalysis;
47 class AliEventplane;
48 class AliVCluster;
49 
50 // --- CaloTrackCorr / EMCAL ---
51 #include "AliFiducialCut.h"
53 #include "AliAnaWeights.h"
54 
55 // Jets
56 class AliAODJetEventBackground;
57 
58 class AliCaloTrackReader : public TObject {
59 
60 public:
61 
62  AliCaloTrackReader() ; // ctor
63  virtual ~AliCaloTrackReader() ; // virtual dtor
64  void DeletePointers();
65 
66  //--------------------------------
67  // General methods
68  //--------------------------------
69 
70  virtual void Init();
71 
72  virtual void InitParameters();
73 
74  virtual void Print(const Option_t * opt) const;
75 
76  virtual void ResetLists();
77 
78  virtual Int_t GetDebug() const { return fDebug ; }
79  virtual void SetDebug(Int_t d) { fDebug = d ; }
80 
82  virtual Int_t GetDataType() const { return fDataType ; }
83  virtual void SetDataType(Int_t data ) { fDataType = data ; }
84 
85  virtual Int_t GetEventNumber() const { return fEventNumber ; }
86 
87  TString GetTaskName() const { return fTaskName ; }
88  void SetTaskName(TString name) { fTaskName = name ; }
89 
90  //---------------------------------------
91  // Input/output event setters and getters
92  //---------------------------------------
93 
94  virtual void SetInputEvent(AliVEvent* input) ;
95  virtual void SetOutputEvent(AliAODEvent* aod) { fOutputEvent = aod ; }
96  virtual void SetMC(AliMCEvent* const mc) { fMC = mc ; }
97  virtual void SetInputOutputMCEvent(AliVEvent* /*esd*/, AliAODEvent* /*aod*/, AliMCEvent* /*mc*/) { ; }
98 
99  // Delta AODs
100 
101  virtual TList * GetAODBranchList() const { return fAODBranchList ; }
102  void SetDeltaAODFileName(TString name ) { fDeltaAODFileName = name ; }
103  TString GetDeltaAODFileName() const { return fDeltaAODFileName ; }
106  Bool_t WriteDeltaAODToFile() const { return fWriteOutputDeltaAOD ; }
107 
108  //------------------------------------------------------------
109  // Clusters/Tracks arrays filtering/filling methods and switchs
110  //------------------------------------------------------------
111 
112  // detector identificator enum, used here and in AliAnaCaloTrackBaseClass and derived classes
116 
117  // Minimum pt setters and getters
118 
119  Float_t GetEMCALPtMin() const { return fEMCALPtMin ; }
120  Float_t GetPHOSPtMin() const { return fPHOSPtMin ; }
121  Float_t GetCTSPtMin() const { return fCTSPtMin ; }
122  Float_t GetEMCALPtMax() const { return fEMCALPtMax ; }
123  Float_t GetPHOSPtMax() const { return fPHOSPtMax ; }
124  Float_t GetCTSPtMax() const { return fCTSPtMax ; }
125 
126  void SetEMCALPtMin(Float_t pt) { fEMCALPtMin = pt ; }
127  void SetPHOSPtMin (Float_t pt) { fPHOSPtMin = pt ; }
128  void SetCTSPtMin (Float_t pt) { fCTSPtMin = pt ; }
129 
130  void SetEMCALPtMax(Float_t pt) { fEMCALPtMax = pt ; }
131  void SetPHOSPtMax (Float_t pt) { fPHOSPtMax = pt ; }
132  void SetCTSPtMax (Float_t pt) { fCTSPtMax = pt ; }
133 
134  Float_t GetEMCALEMin() const { return GetEMCALPtMin() ; }
135  Float_t GetPHOSEMin() const { return GetPHOSPtMin() ; }
136  Float_t GetEMCALEMax() const { return GetEMCALPtMax() ; }
137  Float_t GetPHOSEMax() const { return GetPHOSPtMax() ; }
138 
139  void SetEMCALEMin (Float_t e) { SetEMCALPtMin(e) ; }
140  void SetPHOSEMin (Float_t e) { SetPHOSPtMin (e) ; }
141  void SetEMCALEMax (Float_t e) { SetEMCALPtMax(e) ; }
142  void SetPHOSEMax (Float_t e) { SetPHOSPtMax (e) ; }
143 
144  // Track DCA cut
145 
146  Bool_t AcceptDCA(Float_t pt, Float_t dca);
147  Double_t GetTrackDCACut(Int_t i) const { if(i >= 0 && i < 3 ) return fTrackDCACut[i] ;
148  else return -999 ; }
149 
150  void SetTrackDCACut(Int_t i, Float_t cut) { if(i >= 0 && i < 3 )
151  fTrackDCACut[i] = cut ; }
152 
155  Bool_t IsDCACutOn() const { return fUseTrackDCACut ; }
156 
157  // Time cut
158 
159  Double_t GetTrackTimeCutMin() const { return fTrackTimeCutMin ; }
160  Double_t GetTrackTimeCutMax() const { return fTrackTimeCutMax ; }
161 
162  void SetTrackTimeCut(Double_t a, Double_t b) { fTrackTimeCutMin = a ;
163  fTrackTimeCutMax = b ; } // ns
164 
167 
170  Bool_t IsAccessToTrackTimeOn() const { return fAccessTrackTOF ; }
171 
172 
173  Double_t GetEMCALTimeCutMin() const { return fEMCALTimeCutMin ; }
174  Double_t GetEMCALTimeCutMax() const { return fEMCALTimeCutMax ; }
175 
176  Bool_t IsInTimeWindow(Double_t tof, Float_t energy) const ;
177 
178  void SetEMCALTimeCut(Double_t a, Double_t b) { fEMCALTimeCutMin = a ;
179  fEMCALTimeCutMax = b ; } // ns
180 
181  void SetEMCALParametrizedMinTimeCut(Int_t i, Float_t par) { fEMCALParamTimeCutMin[i] = par ; }
182  void SetEMCALParametrizedMaxTimeCut(Int_t i, Float_t par) { fEMCALParamTimeCutMax[i] = par ; }
183 
186 
189 
190  // Fidutial cuts
191 
194  return fFiducialCut ; }
195  virtual void SetFiducialCut(AliFiducialCut * fc) { fFiducialCut = fc ; }
196  virtual Bool_t IsFiducialCutOn() const { return fCheckFidCut ; }
197  virtual void SwitchOnFiducialCut() { fCheckFidCut = kTRUE ;
198  fFiducialCut = new AliFiducialCut() ; }
199  virtual void SwitchOffFiducialCut() { fCheckFidCut = kFALSE ; }
200 
201  // Cluster/track/cells switchs
202 
203  Bool_t IsCTSSwitchedOn() const { return fFillCTS ; }
204  void SwitchOnCTS() { fFillCTS = kTRUE ; }
205  void SwitchOffCTS() { fFillCTS = kFALSE ; }
206 
207  Bool_t IsEMCALSwitchedOn() const { return fFillEMCAL ; }
208  void SwitchOnEMCAL() { fFillEMCAL = kTRUE ; }
209  void SwitchOffEMCAL() { fFillEMCAL = kFALSE ; }
210 
211  Bool_t IsDCALSwitchedOn() const { return fFillDCAL ; }
212  void SwitchOnDCAL() { fFillDCAL = kTRUE ; }
213  void SwitchOffDCAL() { fFillDCAL = kFALSE ; }
214 
215  Bool_t IsPHOSSwitchedOn() const { return fFillPHOS ; }
216  void SwitchOnPHOS() { fFillPHOS = kTRUE ; }
217  void SwitchOffPHOS() { fFillPHOS = kFALSE ; }
218 
219  Bool_t IsEMCALCellsSwitchedOn() const { return fFillEMCALCells ; }
220  void SwitchOnEMCALCells() { fFillEMCALCells = kTRUE ; }
221  void SwitchOffEMCALCells() { fFillEMCALCells = kFALSE ; }
222 
223  Bool_t IsPHOSCellsSwitchedOn() const { return fFillPHOSCells ; }
224  void SwitchOnPHOSCells() { fFillPHOSCells = kTRUE ; }
225  void SwitchOffPHOSCells() { fFillPHOSCells = kFALSE ; }
226 
227  Bool_t AreClustersRecalculated() const { return fRecalculateClusters ; }
230 
233 
234  Bool_t IsShowerShapeSmeared() const { return fSmearShowerShape ; }
237 
239 
243 
244  // Filling/ filtering / detector information access methods
245 
246  virtual Bool_t FillInputEvent(Int_t iEntry, const char *currentFileName) ;
247  virtual void FillInputCTS() ;
248  virtual void FillInputEMCAL() ;
249  virtual void FillInputEMCALAlgorithm(AliVCluster * clus, Int_t iclus) ;
250  virtual void FillInputPHOS() ;
251  virtual void FillInputEMCALCells() ;
252  virtual void FillInputPHOSCells() ;
253  virtual void FillInputVZERO() ;
254 
255  Int_t GetV0Signal(Int_t i) const { return fV0ADC[i] ; }
256  Int_t GetV0Multiplicity(Int_t i) const { return fV0Mul[i] ; }
257 
258  void SetEMCALClusterListName(TString &name) { fEMCALClustersListName = name ; }
259  TString GetEMCALClusterListName() const { return fEMCALClustersListName ; }
260 
261  // Arrays with clusters/track/cells access method
262 
263  virtual TObjArray* GetCTSTracks() const { return fCTSTracks ; }
264  virtual TObjArray* GetEMCALClusters() const { return fEMCALClusters ; }
265  virtual TObjArray* GetDCALClusters() const { return fDCALClusters ; }
266  virtual TObjArray* GetPHOSClusters() const { return fPHOSClusters ; }
267  virtual AliVCaloCells* GetEMCALCells() const { return fEMCALCells ; }
268  virtual AliVCaloCells* GetPHOSCells() const { return fPHOSCells ; }
269 
270  //-------------------------------------
271  // Event/track selection methods
272  //-------------------------------------
273 
276  Bool_t IsFastClusterAccepted() const { return fAcceptFastCluster ; }
277 
278  Bool_t AcceptEventWithTriggerBit();
279  Bool_t RejectEventWithTriggerBit();
280  void SetAcceptEventsWithBit(UInt_t bit) { Int_t n = fAcceptEventsWithBit.GetSize();
281  fAcceptEventsWithBit.Set(n+1);
282  fAcceptEventsWithBit.AddAt(bit,n) ; }
283 
284  void SetRejectEventsWithBit(UInt_t bit) { Int_t n = fRejectEventsWithBit.GetSize();
285  fRejectEventsWithBit.Set(n+1);
286  fRejectEventsWithBit.AddAt(bit,n) ; }
287 
290  Bool_t IsLEDEventRemoved() const { return fRemoveLEDEvents ; }
291  Bool_t RejectLEDEvents();
292 
293  void SetFiredTriggerClassName(TString name ) { fFiredTriggerClassName = name ; }
295  TString GetFiredTriggerClasses() const { return GetInputEvent()->GetFiredTriggerClasses() ; }
296 
297 
298  // Event selection when mixed event is used
299 
300  UInt_t GetEventTriggerMask() const { return fEventTriggerMask ; }
301  void SetEventTriggerMask(UInt_t evtTrig = AliVEvent::kAny)
302  { fEventTriggerMask = evtTrig ; }
303  UInt_t GetMixEventTriggerMask() const { return fMixEventTriggerMask ; }
304  void SetMixEventTriggerMask(UInt_t evtTrig = AliVEvent::kAnyINT)
305  { fMixEventTriggerMask = evtTrig ; }
306  Bool_t IsEventTriggerAtSEOn() const { return fEventTriggerAtSE ; }
309 
310  // EMCal Triggered events selection, studies
311 
312  TArrayI GetTriggerPatches(Int_t tmin, Int_t tmax);
313  void MatchTriggerCluster(TArrayI patches);
315 
316  Bool_t CheckEventTriggers();
317 
318  Bool_t IsExoticEvent() const { return fIsExoticEvent ; }
319  Bool_t IsBadCellTriggerEvent() const { return fIsBadCellEvent ; }
320  Bool_t IsBadMaxCellTriggerEvent() const { return fIsBadMaxCellEvent ; }
321  Bool_t IsTriggerMatched() const { return fIsTriggerMatch ; }
322  Bool_t IsTriggerMatchedOpenCuts(Int_t i) const { return fIsTriggerMatchOpenCut[i]; }
323 
324  Int_t GetTriggerClusterBC() const { return fTriggerClusterBC ; }
325  Int_t GetTriggerClusterIndex() const { return fTriggerClusterIndex ; }
326  Int_t GetTriggerClusterId() const { return fTriggerClusterId ; }
327 
332 
333  void SetEventTriggerL1Bit(Int_t ega, Int_t eje) { fBitEGA = ega ; fBitEJE = eje; }
334 
335  void SetTriggerPatchTimeWindow(Int_t min, Int_t max) { fTriggerPatchTimeWindow[0] = min ;
336  fTriggerPatchTimeWindow[1] = max ; }
337 
341 
345 
349 
353 
354  void SetEventTriggerBit();
355  Bool_t IsEventMinimumBias() const { return fEventTrigMinBias ; }
356  Bool_t IsEventCentral() const { return fEventTrigCentral ; }
357  Bool_t IsEventSemiCentral() const { return fEventTrigSemiCentral ; }
358  Bool_t IsEventEMCALL0() const { return fEventTrigEMCALL0 ; }
359  Bool_t IsEventEMCALL1Gamma1() const { return fEventTrigEMCALL1Gamma1 ; }
360  Bool_t IsEventEMCALL1Gamma2() const { return fEventTrigEMCALL1Gamma2 ; }
361  Bool_t IsEventEMCALL1Jet1() const { return fEventTrigEMCALL1Jet1 ; }
362  Bool_t IsEventEMCALL1Jet2() const { return fEventTrigEMCALL1Jet2 ; }
365  Bool_t IsEventEMCALL1() const { return (IsEventEMCALL1Gamma() || IsEventEMCALL1Jet() ) ; }
366 
369 
370  // Other event rejections criteria
371 
375 
379 
383 
387 
391 
392  // Time Stamp
393 
394  Double_t GetRunTimeStampMin() const { return fTimeStampRunMin ; }
395  Double_t GetRunTimeStampMax() const { return fTimeStampRunMax ; }
396 
397  void SetRunTimeStamp(Double_t a, Double_t b) { fTimeStampRunMin = a ;
398  fTimeStampRunMax = b ; } // seconds
399 
402 
403  void SetEventTimeStampFraction(Float_t a, Float_t b) { fTimeStampEventFracMin = a ;
404  fTimeStampEventFracMax = b ; }
405 
408 
410 
411  // Event tagging as pile-up
412 
413  Bool_t IsPileUpFromSPD() const ;
414  Bool_t IsPileUpFromEMCal() const ;
415  Bool_t IsPileUpFromSPDAndEMCal() const ;
416  Bool_t IsPileUpFromSPDOrEMCal() const ;
417  Bool_t IsPileUpFromSPDAndNotEMCal() const ;
418  Bool_t IsPileUpFromEMCalAndNotSPD() const ;
419  Bool_t IsPileUpFromNotSPDAndNotEMCal() const ;
420 
421  void SetPileUpParamForSPD (Int_t i, Double_t param)
422  { fPileUpParamSPD[i] = param ; }
423  void SetPileUpParamForEMCal(Int_t param) { fNPileUpClustersCut = param ; }
424 
427 
428  Int_t GetEMCalEventBC(Int_t bc) const { if(bc >=0 && bc < 19) return fEMCalBCEvent [bc] ; else return 0 ; }
429  Int_t GetTrackEventBC(Int_t bc) const { if(bc >=0 && bc < 19) return fTrackBCEvent [bc] ; else return 0 ; }
430  Int_t GetEMCalEventBCcut(Int_t bc) const { if(bc >=0 && bc < 19) return fEMCalBCEventCut[bc] ; else return 0 ; }
431  Int_t GetTrackEventBCcut(Int_t bc) const { if(bc >=0 && bc < 19) return fTrackBCEventCut[bc] ; else return 0 ; }
432 
433  void SetEMCalEventBC(Int_t bc) { if(bc >=0 && bc < 19) fEMCalBCEvent [bc] = 1 ; }
434  void SetTrackEventBC(Int_t bc) { if(bc >=0 && bc < 19) fTrackBCEvent [bc] = 1 ; }
435  void SetEMCalEventBCcut(Int_t bc) { if(bc >=0 && bc < 19) fEMCalBCEventCut[bc] = 1 ; }
436  void SetTrackEventBCcut(Int_t bc) { if(bc >=0 && bc < 19) fTrackBCEventCut[bc] = 1 ; }
437 
438  Int_t GetVertexBC(const AliVVertex * vtx);
439  Int_t GetVertexBC() const { return fVertexBC ; }
442 
443  // Track selection
444 
445  ULong_t GetTrackStatus() const { return fTrackStatus ; }
446  void SetTrackStatus(ULong_t bit) { fTrackStatus = bit ; }
447 
448  virtual Bool_t SelectTrack(AliVTrack* , Double_t*) { return kFALSE ; } // See AOD/ESD reader
449 
452 
453  Int_t GetTrackMultiplicity() const { return fTrackMult ; }
454  Float_t GetTrackMultiplicityEtaCut() const { return fTrackMultEtaCut ; }
455  void SetTrackMultiplicityEtaCut(Float_t eta) { fTrackMultEtaCut = eta ; }
456 
457  // Virtual for AliCaloTrackAODReader
458 
459  virtual ULong_t GetTrackFilterMask() const { return 0 ; }
460  virtual void SetTrackFilterMask(ULong_t) { ; }
461 
462  virtual ULong_t GetTrackFilterMaskComplementary() const { return 0 ; }
463  virtual void SetTrackFilterMaskComplementary(ULong_t) { ; }
464 
465  virtual void SwitchOnAODHybridTrackSelection() { ; }
466  virtual void SwitchOffAODHybridTrackSelection() { ; }
467 
468  virtual void SwitchOnAODPrimaryTrackSelection() { ; }
470 
473 
474  virtual void SetTPCSharedClusterFraction(Float_t) { ; }
475  virtual Float_t GetTPCSharedClusterFraction() const { return 0 ; }
476 
477  // Virtual for AliCaloTrackESDReader
478 
479  virtual AliESDtrackCuts* GetTrackCuts() const { return 0 ; }
480  virtual AliESDtrackCuts* GetTrackComplementaryCuts() const { return 0 ; }
481 
482  virtual void SetTrackCuts(AliESDtrackCuts *) { ; }
483  virtual void SetTrackComplementaryCuts(AliESDtrackCuts *) { ; }
484 
485  virtual void SwitchOnConstrainTrackToVertex() { ; }
486  virtual void SwitchOffConstrainTrackToVertex() { ; }
487 
488  // Events species selection
489 
492  void AnalyzeOnlyEventsOfType(Int_t specie) { fEventType = specie ; }
493 
494  //-------------------------------
495  // Vertex methods
496  //-------------------------------
497 
498  virtual void GetVertex(Double_t v[3]) const ;
499  virtual Double_t* GetVertex(Int_t evtIndex) const { return fVertex[evtIndex] ; }
500  virtual void GetVertex(Double_t vertex[3], const Int_t evtIndex) const ;
501  virtual void FillVertexArray();
502  virtual Bool_t CheckForPrimaryVertex() const { return kTRUE ; } // algorithm in ESD/AOD Readers
503  virtual Float_t GetZvertexCut() const { return fZvtxCut ; } // cut on vertex position
504  virtual void SetZvertexCut(Float_t zcut=10.) { fZvtxCut=zcut ; } // cut on vertex position
505 
506  //--------------------------
507  // Centrality / Event Plane
508  //--------------------------
509 
510  virtual AliCentrality* GetCentrality() const {
511  if(fDataType!=kMC) return fInputEvent->GetCentrality() ;
512  else return 0x0 ; }
513 
514  virtual AliMultSelection* GetMultSelCen() const {
515  if(fDataType!=kMC) return (AliMultSelection * ) fInputEvent->FindListObject("MultSelection") ;
516  else return 0x0 ; }
517 
518  virtual void SwitchOnAliCentrality () { fUseAliCentrality = kTRUE ; }
519  virtual void SwitchOffAliCentrality() { fUseAliCentrality = kFALSE ; }
520 
521  virtual void SetCentralityClass(TString name) { fCentralityClass = name ; }
522  virtual void SetCentralityOpt(Int_t opt) { fCentralityOpt = opt ; }
523  virtual TString GetCentralityClass() const { return fCentralityClass ; }
524  virtual Int_t GetCentralityOpt() const { return fCentralityOpt ; }
525  virtual Int_t GetEventCentrality() const ;
526  virtual void SetCentralityBin(Int_t min, Int_t max) //Set the centrality bin to select the event. If used, then need to get percentile
527  { fCentralityBin[0]=min; fCentralityBin[1]=max;
528  if(min>=0 && max > 0) fCentralityOpt = 100 ; }
529  virtual Float_t GetCentralityBin(Int_t i) const { if(i < 0 || i > 1) return 0 ;
530  else return fCentralityBin[i] ; }
531 
532  virtual AliEventplane* GetEventPlane() const { if(fDataType!=kMC) return fInputEvent->GetEventplane() ;
533  else return 0x0 ; }
534  virtual Double_t GetEventPlaneAngle() const ;
535  virtual void SetEventPlaneMethod(TString m) { fEventPlaneMethod = m ; }
536  virtual TString GetEventPlaneMethod() const { return fEventPlaneMethod ; }
537 
538  //--------------------
539  // Mixing
540  //--------------------
541 
542  Int_t GetLastCaloMixedEvent() const { return fLastMixedCaloEvent ; }
543  Int_t GetLastTracksMixedEvent () const { return fLastMixedTracksEvent ; }
544 
545  TList * GetListWithMixedEventsForCalo (Int_t bi) const { if(fListMixedCaloEvents) return fListMixedCaloEvents [bi] ; else return 0 ; }
546  TList * GetListWithMixedEventsForTracks(Int_t bi) const { if(fListMixedTracksEvents) return fListMixedTracksEvents[bi] ; else return 0 ; }
547 
548  Bool_t ListWithMixedEventsForCaloExists() const { if(fListMixedCaloEvents) return kTRUE ;
549  else return kFALSE ; }
550 
551  Bool_t ListWithMixedEventsForTracksExists() const { if(fListMixedTracksEvents) return kTRUE ;
552  else return kFALSE ; }
553 
556 
557  void SetListWithMixedEventsForCalo (TList ** l) {
558  if(fListMixedCaloEvents) printf("AliCaloTrackReader::SetListWithMixedEventsForCalo() - Track Mixing event list already set, nothing done\n");
559  else fListMixedCaloEvents = l ; }
560 
562  if(fListMixedTracksEvents) printf("AliCaloTrackReader::SetListWithMixedEventsForTracks() - Calorimeter Mixing event list already set, nothing done\n");
563  else fListMixedTracksEvents = l ; }
564 
565  //-------------------------------------
566  // Other methods
567  //-------------------------------------
568 
571  { fCaloUtils = caloutils ; }
572 
573  Double_t GetEventWeight() const { return fEventWeight ; }
575  return fWeightUtils ; }
576 
577  virtual Double_t GetBField() const { return fInputEvent->GetMagneticField() ; }
578 
580  Float_t GetPhi (Float_t phi) const { if ( phi < 0 ) phi += TMath::TwoPi() ; return phi ; }
581 
582  Float_t DegToRad(Float_t deg) const { deg *= TMath::DegToRad(); return deg ; }
583 
584  Float_t RadToDeg(Float_t rad) const { rad *= TMath::RadToDeg(); return rad ; }
585 
586 
587  //------------------------------------------------
588  // MC analysis specific methods
589  //-------------------------------------------------
590 
591  // Kinematics and galice.root available
592 
593  virtual AliStack* GetStack() const ;
594  virtual AliHeader* GetHeader() const ;
595  virtual AliGenEventHeader* GetGenEventHeader() const ;
596 
597  // Filtered kinematics in AOD
598 
599  virtual TClonesArray* GetAODMCParticles() const ;
600  virtual AliAODMCHeader* GetAODMCHeader () const ;
601 
602  virtual AliVEvent* GetInputEvent() const { return fInputEvent ; }
603  virtual AliVEvent* GetOriginalInputEvent() const { return 0x0 ; }
604  virtual AliAODEvent* GetOutputEvent() const { return fOutputEvent ; }
605  virtual AliMCEvent* GetMC() const { return fMC ; }
606  virtual AliMixedEvent* GetMixedEvent() const { return fMixedEvent ; }
607  virtual Int_t GetNMixedEvent() const { return fNMixedEvent ; }
608 
609  void SwitchOnStack() { fReadStack = kTRUE ; }
610  void SwitchOffStack() { fReadStack = kFALSE ; }
613  Bool_t ReadStack() const { return fReadStack ; }
614  Bool_t ReadAODMCParticles() const { return fReadAODMCParticles ; }
615 
616  void RemapMCLabelForAODs(Int_t &label);
617 
618  // Select generated events, depending on comparison of pT hard and jets
619 
620  virtual Bool_t ComparePtHardAndJetPt() ;
621  virtual Bool_t IsPtHardAndJetPtComparisonSet() const { return fComparePtHardAndJetPt ; }
622  virtual void SetPtHardAndJetPtComparison(Bool_t compare) { fComparePtHardAndJetPt = compare ; }
623  virtual Float_t GetPtHardAndJetFactor() const { return fPtHardAndJetPtFactor ; }
624  virtual void SetPtHardAndJetPtFactor(Float_t factor) { fPtHardAndJetPtFactor = factor ; }
625 
626  virtual Bool_t ComparePtHardAndClusterPt() ;
628  virtual void SetPtHardAndClusterPtComparison(Bool_t compare) { fComparePtHardAndClusterPt = compare ; }
629  virtual Float_t GetPtHardAndClusterFactor() const { return fPtHardAndClusterPtFactor ; }
630  virtual void SetPtHardAndClusterPtFactor(Float_t factor) { fPtHardAndClusterPtFactor = factor ; }
631 
632  virtual Bool_t IsHIJINGLabel(Int_t label);
637 
638  // MC reader methods, declared there to allow compilation, they are only used in the MC reader
639 
640  virtual void AddNeutralParticlesArray(TArrayI & /*array*/) { ; }
641  virtual void AddChargedParticlesArray(TArrayI & /*array*/) { ; }
642  virtual void AddStatusArray(TArrayI & /*array*/) { ; }
643 
644  virtual void SwitchOnPi0Decay() { ; }
645  virtual void SwitchOffPi0Decay() { ; }
646  virtual void SwitchOnStatusSelection() { ; }
647  virtual void SwitchOffStatusSelection() { ; }
648  virtual void SwitchOnOverlapCheck() { ; }
649  virtual void SwitchOffOverlapCheck() { ; }
650  virtual void SwitchOnOnlyGeneratorParticles() { ; }
651  virtual void SwitchOffOnlyGeneratorParticles() { ; }
652 
653  virtual void SetEMCALOverlapAngle(Float_t /*angle*/) { ; }
654  virtual void SetPHOSOverlapAngle(Float_t /*angle*/) { ; }
655 
656  //-------------
657  // Jets
658  //-------------
659 
663 
667 
668  virtual void FillInputNonStandardJets() ;
669  virtual TClonesArray* GetNonStandardJets() const { return fNonStandardJets ; }
670  virtual void SetInputNonStandardJetBranchName(TString name) { fInputNonStandardJetBranchName = name ; }
672 
673  virtual void FillInputBackgroundJets() ;
674  virtual AliAODJetEventBackground* GetBackgroundJets() const { return fBackgroundJets ; }
675  virtual void SetInputBackgroundJetBranchName(TString name) { fInputBackgroundJetBranchName = name ; }
677 
678  protected:
679 
680  Int_t fEventNumber;
681  Int_t fDataType ;
682  Int_t fDebug;
684  Bool_t fCheckFidCut ;
685 
688 
691 
692  Float_t fCTSPtMin;
693  Float_t fEMCALPtMin;
694  Float_t fPHOSPtMin;
695  Float_t fCTSPtMax;
696  Float_t fEMCALPtMax;
697  Float_t fPHOSPtMax;
702  Double_t fEMCALTimeCutMin;
703  Double_t fEMCALTimeCutMax;
705  Double_t fEMCALParamTimeCutMax[4];
706  Double_t fTrackTimeCutMin;
707  Double_t fTrackTimeCutMax;
709  Double_t fTrackDCACut[3];
710 
712  TList * fAODBranchList ; //->
713 
715  TObjArray * fCTSTracks ; //->
716 
718  TObjArray * fEMCALClusters ; //->
719 
721  TObjArray * fDCALClusters ; //->
722 
724  TObjArray * fPHOSClusters ; //->
725 
726  AliVCaloCells * fEMCALCells ;
727  AliVCaloCells * fPHOSCells ;
728 
729  AliVEvent * fInputEvent;
730  AliAODEvent * fOutputEvent;
731  AliMCEvent * fMC;
732 
733  Bool_t fFillCTS;
734  Bool_t fFillEMCAL;
735  Bool_t fFillDCAL;
736  Bool_t fFillPHOS;
738  Bool_t fFillPHOSCells;
742 
745  TRandom3 fRandom ;
746 
747  ULong_t fTrackStatus ;
749  Int_t fTrackMult ;
750  Float_t fTrackMultEtaCut ;
751 
752  Bool_t fReadStack ;
754 
755  TString fDeltaAODFileName ;
757 
758  // Trigger bit
762 
771 
772  Int_t fBitEGA;
773  Int_t fBitEJE;
774 
775  Int_t fEventType;
776 
777  TString fTaskName;
778 
780 
782  Double_t fEventWeight ;
783 
784  AliMixedEvent * fMixedEvent ;
785  Int_t fNMixedEvent ;
786  Double_t ** fVertex ;
787 
792 
794 
795  Int_t fV0ADC[2] ;
796  Int_t fV0Mul[2] ;
797 
799 
800  // Event selection
801 
802  Float_t fZvtxCut ;
805 
809 
813 
817  Bool_t fIsExoticEvent;
824 
825 
831 //AliTriggerAnalysis* fTriggerAnalysis; ///< Access to trigger selection algorithm for V0AND calculation.
832 
836  Double_t fTimeStampRunMin;
837  Double_t fTimeStampRunMax;
838 
841  Double_t fPileUpParamSPD[5];
842 
843  // Pile-up in EMCal
844 
848  Int_t fEMCalBCEvent[19];
849  Int_t fEMCalBCEventCut[19];
850  Int_t fTrackBCEvent[19];
851  Int_t fTrackBCEventCut[19];
852  Int_t fVertexBC;
854 
855  // Centrality/Event plane
859  Int_t fCentralityBin[2];
861 
865 
866  // Jets
868  TClonesArray * fNonStandardJets;
871  AliAODJetEventBackground * fBackgroundJets;
873 
876 
878 
879  TLorentzVector fMomentum;
880 
883 
886 
888  ClassDef(AliCaloTrackReader,72) ;
890 
891 } ;
892 
893 #endif //ALICALOTRACKREADER_H
894 
895 
896 
Bool_t IsPileUpFromSPD() const
virtual Int_t GetDebug() const
virtual Float_t GetZvertexCut() const
Bool_t IsBadMaxCellTriggerEvent() const
Double_t fEventWeight
Weight assigned to the event when filling histograms.
Bool_t fUseTrackDCACut
Do DCA selection.
virtual void SwitchOnAODTrackSharedClusterSelection()
virtual void SetDebug(Int_t d)
TString GetTaskName() const
virtual void SwitchOffConstrainTrackToVertex()
void SetLastCaloMixedEvent(Int_t e)
TArrayI GetTriggerPatches(Int_t tmin, Int_t tmax)
virtual void FillInputVZERO()
virtual AliMCEvent * GetMC() const
Int_t fV0ADC[2]
Integrated V0 signal.
Bool_t fComparePtHardAndClusterPt
In MonteCarlo, jet events, reject events with too large cluster energy.
AliAnaWeights * fWeightUtils
Pointer to AliAnaWeights.
void SetShowerShapeSmearWidth(Float_t w)
AliCalorimeterUtils * GetCaloUtils() const
Float_t fTimeStampEventFracMin
Minimum value of time stamp fraction event.
void AnalyzeOnlyEventsOfType(Int_t specie)
Bool_t fReadAODMCParticles
Access kine information from filtered AOD MC particles.
virtual void FillInputNonStandardJets()
Double_t fEMCALTimeCutMax
Remove clusters/cells with time larger than this value, in ns.
virtual void SetInputBackgroundJetBranchName(TString name)
void SetEMCALPtMax(Float_t pt)
Int_t fBitEJE
Trigger bit on VCaloTrigger for EJE.
void SwitchOffUnMatchedTriggerEventsRemoval()
TList * GetListWithMixedEventsForTracks(Int_t bi) const
TLorentzVector fMomentum
! Temporal TLorentzVector container, avoid declaration of TLorentzVectors per event.
Double_t fTimeStampRunMin
Minimum value of time stamp in run.
Bool_t fDoPileUpEventRejection
Select pile-up events by SPD.
virtual TClonesArray * GetNonStandardJets() const
Bool_t fAcceptOnlyHIJINGLabels
Select clusters or tracks that where generated by HIJING, reject other generators in case of cocktail...
TObjArray * fPHOSClusters
Temporal array with PHOS CaloClusters.
Double_t fTrackDCACut[3]
Remove tracks with DCA larger than cut, parameters of function stored here.
virtual void SwitchOnStatusSelection()
Bool_t fUseEventsWithPrimaryVertex
Select events with primary vertex.
virtual void SwitchOnFiducialCut()
virtual AliVCaloCells * GetPHOSCells() const
Bool_t fIsBadCellEvent
Bad cell triggered event flag, any cell in cluster is bad.
Bool_t fEventTrigEMCALL1Gamma1
Event is L1-Gamma, threshold 1 on its name, it should correspond kEMCEGA.
virtual void AddStatusArray(TArrayI &)
virtual AliHeader * GetHeader() const
virtual void SwitchOffPi0Decay()
Bool_t IsEventEMCALL1Jet1() const
void SetTriggerPatchTimeWindow(Int_t min, Int_t max)
void SetPHOSPtMax(Float_t pt)
Bool_t IsEventEMCALL1Gamma1() const
virtual void SwitchOnAODHybridTrackSelection()
void SwitchOnEMCALEventRejectionWith2Thresholds()
virtual void SetCentralityBin(Int_t min, Int_t max)
void SetPHOSPtMin(Float_t pt)
Bool_t AreBadTriggerEventsRemoved() const
Float_t GetEventTimeStampFractionMax() const
Bool_t ReadAODMCParticles() const
void SetEMCALParametrizedMinTimeCut(Int_t i, Float_t par)
virtual Double_t GetBField() const
virtual void SetMC(AliMCEvent *const mc)
virtual void SetPHOSOverlapAngle(Float_t)
TString fEventPlaneMethod
Name of event plane method, by default "Q".
Int_t fTrackBCEventCut[19]
Fill one entry per event if there is a track in a given BC, depend on track pT, acceptance cut...
void SwitchOffClusterELinearityCorrection()
virtual TObjArray * GetEMCALClusters() const
void SetCTSPtMax(Float_t pt)
Bool_t fDoVertexBCEventSelection
Select events with vertex on BC=0 or -100.
Float_t GetCTSPtMax() const
virtual void SetInputOutputMCEvent(AliVEvent *, AliAODEvent *, AliMCEvent *)
Bool_t WriteDeltaAODToFile() const
void SetListWithMixedEventsForTracks(TList **l)
TList * GetListWithMixedEventsForCalo(Int_t bi) const
AliMixedEvent * fMixedEvent
! Mixed event object. This class is not the owner.
virtual AliVEvent * GetInputEvent() const
virtual void SwitchOnOnlyGeneratorParticles()
Bool_t IsPileUpFromSPDAndNotEMCal() const
Check if event is from pile-up determined by SPD and not by EMCal.
Bool_t IsEventEMCALL1() const
Bool_t IsTriggerPatchMatchedToCluster() const
Float_t fPtHardAndClusterPtFactor
Factor between ptHard and cluster pT to reject/accept event.
Bool_t fAcceptFastCluster
Accept events from fast cluster, exclude these events for LHC11a.
virtual void SetTrackComplementaryCuts(AliESDtrackCuts *)
Double_t fTrackTimeCutMin
Remove tracks with time smaller than this value, in ns.
Bool_t IsPrimaryVertexSelectionDone() const
Int_t GetV0Signal(Int_t i) const
Bool_t fSmearShowerShape
Smear shower shape (use in MC).
void SetTrackDCACut(Int_t i, Float_t cut)
AliVEvent * fInputEvent
! pointer to esd or aod input.
Bool_t IsEventSemiCentral() const
Calculate the weight to the event to be applied when filling histograms.
Definition: AliAnaWeights.h:31
virtual void SetInputEvent(AliVEvent *input)
void SetPileUpParamForEMCal(Int_t param)
Double_t fTrackTimeCutMax
Remove tracks with time larger than this value, in ns.
virtual void AddNeutralParticlesArray(TArrayI &)
Int_t fTriggerClusterBC
Event triggered by a cluster in BC -5 0 to 5.
virtual AliMultSelection * GetMultSelCen() const
TString fEMCALClustersListName
Alternative list of clusters produced elsewhere and not from InputEvent.
ULong_t GetTrackStatus() const
Double_t GetRunTimeStampMin() const
Bool_t fWriteOutputDeltaAOD
Write the created delta AOD objects into file.
TString GetFiredTriggerClassName() const
Int_t fV0Mul[2]
Integrated V0 Multiplicity.
Float_t fEMCALPtMin
pT Threshold on emcal clusters.
Bool_t fTriggerClusterTimeRecal
In case cluster already calibrated, do not try to recalibrate even if recalib on in AliEMCALRecoUtils...
Double_t ** fVertex
! Vertex array 3 dim for each mixed event buffer.
Bool_t IsEventWithNoTrackRejectionDone() const
void SetPHOSEMax(Float_t e)
UInt_t fEventTriggerMask
Select this triggerered event.
void SetEMCALEMin(Float_t e)
virtual Int_t GetEventCentrality() const
Double_t GetEMCALTimeCutMax() const
virtual Bool_t IsHIJINGLabel(Int_t label)
virtual AliGenEventHeader * GetGenEventHeader() const
virtual void SetTPCSharedClusterFraction(Float_t)
virtual AliCentrality * GetCentrality() const
AliVCaloCells * fPHOSCells
! Temporal array with PHOS AliVCaloCells.
Bool_t IsEventEMCALL1Gamma2() const
virtual AliMixedEvent * GetMixedEvent() const
Bool_t fFillInputBackgroundJetBranch
Flag to use data from background jets.
void SetTrackEventBC(Int_t bc)
virtual Bool_t ComparePtHardAndClusterPt()
TList * fAODBranchList
List with AOD branches created and needed in analysis.
virtual void SwitchOffStatusSelection()
Bool_t IsTriggerMatchedOpenCuts(Int_t i) const
void RemapMCLabelForAODs(Int_t &label)
Float_t GetEMCALEMin() const
Bool_t fEventTrigSemiCentral
Event is AliVEvent::kSemiCentral on its name, it should correspond to PbPb.
TRandom3 fRandom
! Random generator.
Bool_t AcceptDCA(Float_t pt, Float_t dca)
Bool_t IsPileUpFromNotSPDAndNotEMCal() const
Check if event not from pile-up determined neither by SPD nor by EMCal.
virtual Float_t GetPtHardAndJetFactor() const
Bool_t fFillCTS
Use data from CTS.
virtual void SetTrackFilterMaskComplementary(ULong_t)
virtual void InitParameters()
Initialize the parameters with default.
Float_t GetEMCALEMax() const
virtual void GetVertex(Double_t v[3]) const
virtual void SetPtHardAndJetPtComparison(Bool_t compare)
void SwitchOnEmbeddedClustersSelection()
Bool_t IsTriggerClusterTimeRecal() const
virtual void SwitchOffOverlapCheck()
virtual Bool_t FillInputEvent(Int_t iEntry, const char *currentFileName)
Bool_t IsBackgroundJetsSwitchedOn() const
Float_t fPHOSPtMin
pT Threshold on phos clusters.
Bool_t fSelectEmbeddedClusters
Use only simulated clusters that come from embedding.
Bool_t fEventTrigMinBias
Event is min bias on its name, it should correspond to AliVEvent::kMB, AliVEvent::kAnyInt.
Float_t fEMCALParamTimeCutMin[4]
Remove clusters/cells with time smaller than parametrized value, in ns.
Int_t fEventNumber
Event number.
TString fTaskName
Name of task that executes the analysis.
void SetCTSPtMin(Float_t pt)
Bool_t fRemoveBadTriggerEvents
Remove triggered events because trigger was exotic, bad, or out of BC.
Bool_t IsPileUpFromSPDOrEMCal() const
Check if event is from pile-up determined by SPD or EMCal.
Bool_t IsPileUpFromEMCalAndNotSPD() const
Check if event is from pile-up determined by EMCal, not by SPD.
Bool_t fEventTrigEMCALL1Gamma2
Event is L1-Gamma, threshold 2 on its name, it should correspond kEMCEGA.
virtual Float_t GetCentralityBin(Int_t i) const
void SetEventTriggerMask(UInt_t evtTrig=AliVEvent::kAny)
Double_t GetRunTimeStampMax() const
Bool_t fEventTrigEMCALL1Jet1
Event is L1-Gamma, threshold 1 on its name, it should correspond kEMCEGA.
void SetEMCALParametrizedMaxTimeCut(Int_t i, Float_t par)
virtual Int_t GetEventNumber() const
Bool_t fFillEMCALCells
Use data from EMCAL.
void SwitchOffVertexBCEventSelection()
virtual void SetPtHardAndClusterPtFactor(Float_t factor)
Int_t fTriggerClusterId
Id of trigger cluster (cluster->GetID()).
Float_t fCTSPtMax
pT Threshold on charged particles.
void SetTaskName(TString name)
Double_t fEMCALParamTimeCutMax[4]
Remove clusters/cells with time larger than parametrized value, in ns.
virtual void FillInputEMCALCells()
Connects the array with EMCAL cells and the pointer.
Bool_t fFillPHOSCells
Use data from PHOS.
virtual AliVCaloCells * GetEMCALCells() const
Bool_t fRemoveLEDEvents
Remove events where LED was wrongly firing - EMCAL LHC11a.
virtual Float_t GetPtHardAndClusterFactor() const
virtual ULong_t GetTrackFilterMaskComplementary() const
Bool_t IsDCACutOn() const
void SetListWithMixedEventsForCalo(TList **l)
virtual AliFiducialCut * GetFiducialCut()
virtual void SetCentralityOpt(Int_t opt)
Bool_t fIsBadMaxCellEvent
Bad cell triggered event flag, only max energy cell is bad.
Bool_t fSelectSPDHitTracks
Ensure that track hits SPD layers.
Float_t GetEventTriggerL0Threshold() const
TString fFiredTriggerClassName
Name of trigger event type used to do the analysis.
Float_t GetPHOSEMin() const
virtual TClonesArray * GetAODMCParticles() const
TString GetFiredTriggerClasses() const
Bool_t ReadStack() const
virtual void SwitchOffAODPrimaryTrackSelection()
TObjArray * fEMCALClusters
Temporal array with EMCAL CaloClusters.
Bool_t IsEventEMCALL1Jet() const
Float_t GetPHOSEMax() const
Float_t fPHOSPtMax
pT Threshold on phos clusters.
virtual TList * GetAODBranchList() const
Bool_t fAccessTrackTOF
Access the track TOF, in case of problems when accessing GetTOFBunchCrossing.
virtual TString GetInputNonStandardJetBranchName()
void SetTrackStatus(ULong_t bit)
Bool_t IsTriggerMatched() const
Bool_t IsPileUpEventRejectionDone() const
virtual Bool_t CheckForPrimaryVertex() const
Int_t fEMCalBCEvent[19]
Fill one entry per event if there is a cluster in a given BC.
virtual void SetOutputEvent(AliAODEvent *aod)
TString fInputBackgroundJetBranchName
Name of background jet branch.
void SetLastTracksMixedEvent(Int_t e)
virtual AliEventplane * GetEventPlane() const
Bool_t fEventTriggerAtSE
Select triggered event at SE base task or here.
Bool_t IsLEDEventRemoved() const
Float_t fEMCALPtMax
pT Threshold on emcal clusters.
Int_t fEventType
Set the event species: 7 physics, 0 MC, 8 LED (not useful now)
virtual Bool_t ComparePtHardAndJetPt()
Bool_t IsEventCentral() const
virtual Int_t GetCentralityOpt() const
virtual AliAODEvent * GetOutputEvent() const
Bool_t fEventTrigCentral
Event is AliVEvent::kCentral on its name, it should correspond to PbPb.
void SwitchOnTriggerClusterTimeRecal()
Bool_t IsPHOSSwitchedOn() const
Float_t fTrackMultEtaCut
Track multiplicity eta cut.
void SwitchOnUnMatchedTriggerEventsRemoval()
virtual void SetPtHardAndClusterPtComparison(Bool_t compare)
Bool_t IsFastClusterAccepted() const
AliCalorimeterUtils * fCaloUtils
Pointer to AliCalorimeterUtils.
Int_t fCentralityBin[2]
Minimum and maximum value of the centrality for the analysis.
void SwitchOffTriggerClusterTimeRecal()
virtual void FillInputPHOSCells()
Connects the array with PHOS cells and the pointer.
void SetAcceptEventsWithBit(UInt_t bit)
Base class for event, clusters and tracks filtering and preparation for the analysis.
void SwitchOffBadTriggerEventsRemoval()
TObjArray * fDCALClusters
Temporal array with DCAL CaloClusters, not needed in the normal case, use just EMCal array with DCal ...
void SetEMCALClusterListName(TString &name)
Int_t GetTriggerClusterBC() const
Bool_t fUseTrackTimeCut
Do time cut selection.
AliCaloTrackReader & operator=(const AliCaloTrackReader &r)
Assignment operator not implemented.
virtual TString GetEventPlaneMethod() const
Double_t GetEventWeight() const
void SetEventTriggerL1Threshold(Float_t tr)
UInt_t GetEventTriggerMask() const
TArrayI fAcceptEventsWithBit
Accept events if trigger bit is on.
virtual void SwitchOffAODTrackSharedClusterSelection()
void SetEventTriggerL1Bit(Int_t ega, Int_t eje)
void SetTrackMultiplicityEtaCut(Float_t eta)
Int_t fLastMixedTracksEvent
Temporary container with the last event added to the mixing list for tracks.
virtual Float_t GetTPCSharedClusterFraction() const
Int_t GetLastTracksMixedEvent() const
virtual void Print(const Option_t *opt) const
Print some relevant parameters set for the analysis.
void MatchTriggerCluster(TArrayI patches)
Bool_t fTimeStampEventSelect
Select events within a fraction of data taking time.
Double_t fTimeStampRunMax
Maximum value of time stamp in run.
TList ** fListMixedTracksEvents
! Container for tracks stored for different events, used in case of own mixing, set in analysis class...
Double_t fEMCALTimeCutMin
Remove clusters/cells with time smaller than this value, in ns.
virtual void SetTrackFilterMask(ULong_t)
Bool_t fEventTrigEMCALL1Jet2
Event is L1-Gamma, threshold 2 on its name, it should correspond kEMCEGA.
void SetEMCalEventBCcut(Int_t bc)
virtual TString GetInputBackgroundJetBranchName()
Int_t fNPileUpClustersCut
Cut to select event as pile-up.
virtual Bool_t IsPtHardAndClusterPtComparisonSet() const
Int_t fDebug
Debugging level.
Bool_t IsEMCALSwitchedOn() const
Bool_t fCheckFidCut
Do analysis for clusters in defined region.
virtual ~AliCaloTrackReader()
Destructor.
Double_t GetTrackTimeCutMin() const
Bool_t fEventTrigEMCALL0
Event is EMCal L0 on its name, it should correspond to AliVEvent::kEMC7, AliVEvent::kEMC1.
virtual void SwitchOnPi0Decay()
Int_t GetV0Multiplicity(Int_t i) const
void SwitchOffAcceptOnlyHIJINGLabels()
Int_t fTrackBCEvent[19]
Fill one entry per event if there is a track in a given BC.
Bool_t AreUnMatchedTriggerEventsRemoved() const
virtual void SetZvertexCut(Float_t zcut=10.)
virtual TObjArray * GetPHOSClusters() const
Int_t GetEMCalEventBC(Int_t bc) const
virtual void FillInputEMCALAlgorithm(AliVCluster *clus, Int_t iclus)
Bool_t fComparePtHardAndJetPt
In MonteCarlo, jet events, reject fake events with wrong jet energy.
void SetRunTimeStamp(Double_t a, Double_t b)
Int_t fNNonPileUpClusters
Number of clusters with time below 20 ns.
virtual Double_t * GetVertex(Int_t evtIndex) const
Int_t fNMixedEvent
Number of events in mixed event buffer.
Int_t GetTriggerClusterIndex() const
Bool_t IsPHOSCellsSwitchedOn() const
Int_t fCentralityOpt
Option for the returned value of the centrality, possible options 5, 10, 100.
Float_t fZvtxCut
Cut on vertex position.
energy
Double_t GetEMCALTimeCutMin() const
AliCaloTrackReader()
Constructor. Initialize parameters.
virtual void SwitchOnAliCentrality()
Bool_t fTriggerPatchClusterMatch
Search for the trigger patch and check if associated cluster was the trigger.
virtual void SetEMCALOverlapAngle(Float_t)
TList ** fListMixedCaloEvents
! Container for photon stored for different events, used in case of own mixing, set in analysis class...
Bool_t fUseParamTimeCut
Use simple or parametrized time cut.
virtual void SetPtHardAndJetPtFactor(Float_t factor)
AliFiducialCut * fFiducialCut
Acceptance cuts.
Bool_t fRejectEMCalTriggerEventsWith2Tresholds
Reject events EG2 also triggered by EG1 or EJ2 also triggered by EJ1.
void SetCaloUtils(AliCalorimeterUtils *caloutils)
virtual void SetEventPlaneMethod(TString m)
Bool_t IsAccessToTrackTimeOn() const
virtual AliESDtrackCuts * GetTrackComplementaryCuts() const
virtual TString GetCentralityClass() const
Bool_t AreClustersRecalculated() const
virtual void FillInputEMCAL()
Bool_t fFillEMCAL
Use data from EMCAL.
Bool_t fFillPHOS
Use data from PHOS.
AliVCaloCells * fEMCALCells
! Temporal array with EMCAL AliVCaloCells.
Bool_t IsEmbeddedClusterSelectionOn() const
virtual AliAODMCHeader * GetAODMCHeader() const
virtual void SetTrackCuts(AliESDtrackCuts *)
Float_t GetPHOSPtMin() const
Int_t GetLastCaloMixedEvent() const
Float_t fCTSPtMin
pT Threshold on charged particles.
Bool_t IsCTSSwitchedOn() const
virtual AliStack * GetStack() const
UInt_t GetMixEventTriggerMask() const
Float_t GetEMCALPtMin() const
void SetPileUpParamForSPD(Int_t i, Double_t param)
virtual AliESDtrackCuts * GetTrackCuts() const
Float_t GetEventTriggerL1Threshold() const
virtual void SwitchOffFiducialCut()
virtual AliAODJetEventBackground * GetBackgroundJets() const
Bool_t IsVertexBCEventSelectionDone() const
virtual void SetCentralityClass(TString name)
Float_t fTriggerL0EventThreshold
L0 Threshold to look for triggered events, set outside.
Float_t DegToRad(Float_t deg) const
Float_t fTimeStampEventFracMax
Maximum value of time stamp fraction event.
void SetEMCALPtMin(Float_t pt)
virtual void ResetLists()
Reset lists, called in AliAnaCaloTrackCorrMaker.
Int_t fNPileUpClusters
Number of clusters with time avobe 20 ns.
void SwitchOnBadTriggerEventsRemoval()
Bool_t IsNonStandardJetsSwitchedOn() const
Int_t fTrackMult
Track multiplicity.
AliAODEvent * fOutputEvent
! pointer to aod output.
void SwitchOnClusterELinearityCorrection()
Bool_t IsExoticEvent() const
virtual ULong_t GetTrackFilterMask() const
Float_t GetEMCALPtMax() const
virtual void AddChargedParticlesArray(TArrayI &)
void SetTrackTimeCut(Double_t a, Double_t b)
Bool_t fRecalculateClusters
Correct clusters, recalculate them if recalibration parameters is given.
void SetEMCALTimeCut(Double_t a, Double_t b)
Bool_t IsEventMinimumBias() const
Bool_t fDoRejectNoTrackEvents
Reject events with no selected tracks in event.
Bool_t IsEventEMCALL1Jet2() const
Bool_t fReadStack
Access kine information from stack.
Bool_t fIsTriggerMatchOpenCut[3]
Could not match the event to a trigger patch?, retry opening cuts.
Bool_t ListWithMixedEventsForCaloExists() const
UInt_t fMixEventTriggerMask
Select this triggerered event for mixing, tipically kMB or kAnyINT.
Float_t RadToDeg(Float_t rad) const
Bool_t IsEventTriggerAtSEOn() const
Bool_t ListWithMixedEventsForTracksExists() const
virtual void FillVertexArray()
Bool_t IsInTimeWindow(Double_t tof, Float_t energy) const
Bool_t fRemoveUnMatchedTriggers
Analyze events where trigger patch and cluster where found or not.
Float_t GetTrackMultiplicityEtaCut() const
Bool_t IsV0ANDEventSelectionDone() const
virtual Double_t GetEventPlaneAngle() const
void SwitchOffEmbeddedClustersSelection()
void SetRejectEventsWithBit(UInt_t bit)
TObjArray * fCTSTracks
Temporal array with tracks.
Int_t fTriggerPatchTimeWindow[2]
Trigger patch selection window.
virtual AliVEvent * GetOriginalInputEvent() const
Float_t GetEventTimeStampFractionMin() const
AliMCEvent * fMC
! Monte Carlo Event Handler.
virtual void SwitchOnOverlapCheck()
Float_t fPtHardAndJetPtFactor
Factor between ptHard and jet pT to reject/accept event.
virtual void SwitchOnAODPrimaryTrackSelection()
void SetEventTriggerL0Threshold(Float_t tr)
virtual Bool_t IsPtHardAndJetPtComparisonSet() const
Int_t GetTrackEventBC(Int_t bc) const
TString fDeltaAODFileName
Delta AOD file name.
virtual Int_t GetDataType() const
void SwitchOffEMCALEventRejectionWith2Thresholds()
TString GetEMCALClusterListName() const
Int_t GetVertexBC() const
TString GetDeltaAODFileName() const
Bool_t IsPileUpFromEMCal() const
Check if event is from pile-up determined by EMCal.
Bool_t fFillInputNonStandardJetBranch
Flag to use data from non standard jets.
TClonesArray * fNonStandardJets
! Temporal array with jets.
void SetPHOSEMin(Float_t e)
void SetFiredTriggerClassName(TString name)
Int_t fEMCalBCEventCut[19]
Fill one entry per event if there is a cluster in a given BC, depend on cluster E, acceptance cut.
Int_t fTriggerClusterIndex
Index in clusters array of trigger cluster.
Bool_t IsDCALSwitchedOn() const
Bool_t fTriggerL1EventThresholdFix
L1 Threshold is fix and set outside.
Float_t fSmearShowerShapeWidth
Smear shower shape landau function "width" (use in MC).
Class with utils specific to calorimeter clusters/cells.
Int_t fBitEGA
Trigger bit on VCaloTrigger for EGA.
Bool_t IsEventEMCALL1Gamma() const
Bool_t AcceptOnlyHIJINGLabels() const
Double_t GetTrackTimeCutMax() const
Double_t GetTrackDCACut(Int_t i) const
virtual void FillInputBackgroundJets()
Bool_t fDoV0ANDEventSelection
Select events depending on V0AND.
Int_t GetTrackMultiplicity() const
virtual Int_t GetNMixedEvent() const
virtual void SwitchOnConstrainTrackToVertex()
virtual void SwitchOffAliCentrality()
AliAODJetEventBackground * fBackgroundJets
! Background jets.
Bool_t fCorrectELinearity
Correct cluster linearity, always on.
void SetMixEventTriggerMask(UInt_t evtTrig=AliVEvent::kAnyINT)
Int_t fVertexBC
Vertex BC.
virtual Bool_t IsFiducialCutOn() const
void SwitchOffPrimaryVertexSelection()
virtual void SwitchOffOnlyGeneratorParticles()
virtual TObjArray * GetDCALClusters() const
AliAnaWeights * GetWeightUtils()
virtual void SetInputNonStandardJetBranchName(TString name)
void SetEventTimeStampFraction(Float_t a, Float_t b)
Bool_t fIsExoticEvent
Exotic trigger event flag.
TString fInputNonStandardJetBranchName
Name of non standard jet branch.
Int_t GetEMCalEventBCcut(Int_t bc) const
TArrayI fRejectEventsWithBit
Reject events if trigger bit is on.
Bool_t fUseEMCALTimeCut
Do time cut selection.
Bool_t IsBadCellTriggerEvent() const
Int_t fNMCProducedMax
In case of cocktail, select particles in the list with label up to this value.
Float_t GetPhi(Float_t phi) const
Shift phi angle in case of negative value 360 degrees. Example TLorenzVector::Phi defined in -pi to p...
Store the acceptance cuts for clusters and tracks or particle objects.
void SetEMCALEMax(Float_t e)
Int_t fDataType
Select MC: Kinematics, Data: ESD/AOD, MCData: Both.
virtual Bool_t SelectTrack(AliVTrack *, Double_t *)
virtual void SetFiducialCut(AliFiducialCut *fc)
Bool_t fFillDCAL
Use data from DCAL, not needed in the normal case, use just EMCal array with DCal limits...
Bool_t IsEMCALCellsSwitchedOn() const
void SetTrackEventBCcut(Int_t bc)
void SwitchOffUseParametrizedTimeCut()
Bool_t IsShowerShapeSmeared() const
virtual void SetDataType(Int_t data)
Float_t GetPHOSPtMax() const
Bool_t fIsTriggerMatch
Could match the event to a trigger patch?
Float_t fTriggerL1EventThreshold
L1 Threshold to look for triggered events, set in data.
TString fCentralityClass
Name of selected centrality class.
Int_t GetTrackEventBCcut(Int_t bc) const
ULong_t fTrackStatus
Track selection bit, select tracks refitted in TPC, ITS ...
Bool_t IsPileUpFromSPDAndEMCal() const
Check if event is from pile-up determined by SPD and EMCal.
virtual void FillInputPHOS()
Fill the array with PHOS filtered clusters.
Int_t fNMCProducedMin
In case of cocktail, select particles in the list with label from this value.
Int_t fLastMixedCaloEvent
Temporary container with the last event added to the mixing list for photons.
Bool_t fUseAliCentrality
Select as centrality estimator AliCentrality (Run1) or AliMultSelection (Run1 and Run2) ...
virtual TObjArray * GetCTSTracks() const
Bool_t fRecalculateVertexBC
Recalculate vertex BC from tracks pointing to vertex.
void SetEMCalEventBC(Int_t bc)
Int_t GetTriggerClusterId() const
virtual void SwitchOffAODHybridTrackSelection()
void SetDeltaAODFileName(TString name)
Bool_t IsEventEMCALL0() const
Float_t GetCTSPtMin() const