AliPhysics  a9863a5 (a9863a5)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
119 
120  // Minimum pt setters and getters
121 
122  Float_t GetEMCALPtMin() const { return fEMCALPtMin ; }
123  Float_t GetPHOSPtMin() const { return fPHOSPtMin ; }
124  Float_t GetCTSPtMin() const { return fCTSPtMin ; }
125  Float_t GetEMCALPtMax() const { return fEMCALPtMax ; }
126  Float_t GetPHOSPtMax() const { return fPHOSPtMax ; }
127  Float_t GetCTSPtMax() const { return fCTSPtMax ; }
128 
129  void SetEMCALPtMin(Float_t pt) { fEMCALPtMin = pt ; }
130  void SetPHOSPtMin (Float_t pt) { fPHOSPtMin = pt ; }
131  void SetCTSPtMin (Float_t pt) { fCTSPtMin = pt ; }
132 
133  void SetEMCALPtMax(Float_t pt) { fEMCALPtMax = pt ; }
134  void SetPHOSPtMax (Float_t pt) { fPHOSPtMax = pt ; }
135  void SetCTSPtMax (Float_t pt) { fCTSPtMax = pt ; }
136 
137  Float_t GetEMCALEMin() const { return GetEMCALPtMin() ; }
138  Float_t GetPHOSEMin() const { return GetPHOSPtMin() ; }
139  Float_t GetEMCALEMax() const { return GetEMCALPtMax() ; }
140  Float_t GetPHOSEMax() const { return GetPHOSPtMax() ; }
141 
142  void SetEMCALEMin (Float_t e) { SetEMCALPtMin(e) ; }
143  void SetPHOSEMin (Float_t e) { SetPHOSPtMin (e) ; }
144  void SetEMCALEMax (Float_t e) { SetEMCALPtMax(e) ; }
145  void SetPHOSEMax (Float_t e) { SetPHOSPtMax (e) ; }
146 
147  void SetSmearingFunction(Float_t smearfunct) {fSmearingFunction = smearfunct ; }
148  Float_t GetSmearingFunction() const {return fSmearingFunction ; }
149 
150  // Track DCA cut
151 
152  Bool_t AcceptDCA(Float_t pt, Float_t dca);
153  Double_t GetTrackDCACut(Int_t i) const { if(i >= 0 && i < 3 ) return fTrackDCACut[i] ;
154  else return -999 ; }
155 
156  void SetTrackDCACut(Int_t i, Float_t cut) { if(i >= 0 && i < 3 )
157  fTrackDCACut[i] = cut ; }
158 
161  Bool_t IsDCACutOn() const { return fUseTrackDCACut ; }
162 
163  // Time cut
164 
165  Double_t GetTrackTimeCutMin() const { return fTrackTimeCutMin ; }
166  Double_t GetTrackTimeCutMax() const { return fTrackTimeCutMax ; }
167 
168  void SetTrackTimeCut(Double_t a, Double_t b) { fTrackTimeCutMin = a ;
169  fTrackTimeCutMax = b ; } // ns
170 
173 
176  Bool_t IsAccessToTrackTimeOn() const { return fAccessTrackTOF ; }
177 
178 
179  Double_t GetEMCALTimeCutMin() const { return fEMCALTimeCutMin ; }
180  Double_t GetEMCALTimeCutMax() const { return fEMCALTimeCutMax ; }
181 
182  Bool_t IsInTimeWindow(Double_t tof, Float_t energy) const ;
183 
184  void SetEMCALTimeCut(Double_t a, Double_t b) { fEMCALTimeCutMin = a ;
185  fEMCALTimeCutMax = b ; } // ns
186 
187  void SetEMCALParametrizedMinTimeCut(Int_t i, Float_t par) { fEMCALParamTimeCutMin[i] = par ; }
188  void SetEMCALParametrizedMaxTimeCut(Int_t i, Float_t par) { fEMCALParamTimeCutMax[i] = par ; }
189 
192 
195 
196  // Fidutial cuts
197 
200  return fFiducialCut ; }
201  virtual void SetFiducialCut(AliFiducialCut * fc) { fFiducialCut = fc ; }
202  virtual Bool_t IsFiducialCutOn() const { return fCheckFidCut ; }
203  virtual void SwitchOnFiducialCut() { fCheckFidCut = kTRUE ;
204  fFiducialCut = new AliFiducialCut() ; }
205  virtual void SwitchOffFiducialCut() { fCheckFidCut = kFALSE ; }
206 
207  // Cluster/track/cells switchs
208 
209  Bool_t IsCTSSwitchedOn() const { return fFillCTS ; }
210  void SwitchOnCTS() { fFillCTS = kTRUE ; }
211  void SwitchOffCTS() { fFillCTS = kFALSE ; }
212 
213  Bool_t IsEMCALSwitchedOn() const { return fFillEMCAL ; }
214  void SwitchOnEMCAL() { fFillEMCAL = kTRUE ; }
215  void SwitchOffEMCAL() { fFillEMCAL = kFALSE ; }
216 
217  Bool_t IsDCALSwitchedOn() const { return fFillDCAL ; }
218  void SwitchOnDCAL() { fFillDCAL = kTRUE ; }
219  void SwitchOffDCAL() { fFillDCAL = kFALSE ; }
220 
221  Bool_t IsPHOSSwitchedOn() const { return fFillPHOS ; }
222  void SwitchOnPHOS() { fFillPHOS = kTRUE ; }
223  void SwitchOffPHOS() { fFillPHOS = kFALSE ; }
224 
225  Bool_t IsEMCALCellsSwitchedOn() const { return fFillEMCALCells ; }
226  void SwitchOnEMCALCells() { fFillEMCALCells = kTRUE ; }
227  void SwitchOffEMCALCells() { fFillEMCALCells = kFALSE ; }
228 
229  Bool_t IsPHOSCellsSwitchedOn() const { return fFillPHOSCells ; }
230  void SwitchOnPHOSCells() { fFillPHOSCells = kTRUE ; }
231  void SwitchOffPHOSCells() { fFillPHOSCells = kFALSE ; }
232 
233  Bool_t AreClustersRecalculated() const { return fRecalculateClusters ; }
236 
239 
240  Bool_t IsShowerShapeSmeared() const { return fSmearShowerShape ; }
243 
245 
249 
250  // Filling/ filtering / detector information access methods
251 
252  virtual Bool_t FillInputEvent(Int_t iEntry, const char *currentFileName) ;
253  virtual void FillInputCTS() ;
254  virtual void FillInputEMCAL() ;
255  virtual void FillInputEMCALAlgorithm(AliVCluster * clus, Int_t iclus) ;
256  virtual void FillInputPHOS() ;
257  virtual void FillInputEMCALCells() ;
258  virtual void FillInputPHOSCells() ;
259  virtual void FillInputVZERO() ;
260 
261  Int_t GetV0Signal(Int_t i) const { return fV0ADC[i] ; }
262  Int_t GetV0Multiplicity(Int_t i) const { return fV0Mul[i] ; }
263 
264  void SetEMCALClusterListName(TString &name) { fEMCALClustersListName = name ; }
265  TString GetEMCALClusterListName() const { return fEMCALClustersListName ; }
266 
267  // Arrays with clusters/track/cells access method
268 
269  virtual TObjArray* GetCTSTracks() const { return fCTSTracks ; }
270  virtual TObjArray* GetEMCALClusters() const { return fEMCALClusters ; }
271  virtual TObjArray* GetDCALClusters() const { return fDCALClusters ; }
272  virtual TObjArray* GetPHOSClusters() const { return fPHOSClusters ; }
273  virtual AliVCaloCells* GetEMCALCells() const { return fEMCALCells ; }
274  virtual AliVCaloCells* GetPHOSCells() const { return fPHOSCells ; }
275 
276  //-------------------------------------
277  // Event/track selection methods
278  //-------------------------------------
279 
282  Bool_t IsFastClusterAccepted() const { return fAcceptFastCluster ; }
283 
284  Bool_t AcceptEventWithTriggerBit();
285  Bool_t RejectEventWithTriggerBit();
286  void SetAcceptEventsWithBit(UInt_t bit) { Int_t n = fAcceptEventsWithBit.GetSize();
287  fAcceptEventsWithBit.Set(n+1);
288  fAcceptEventsWithBit.AddAt(bit,n) ; }
289 
290  void SetRejectEventsWithBit(UInt_t bit) { Int_t n = fRejectEventsWithBit.GetSize();
291  fRejectEventsWithBit.Set(n+1);
292  fRejectEventsWithBit.AddAt(bit,n) ; }
293 
296  Bool_t IsLEDEventRemoved() const { return fRemoveLEDEvents ; }
297  Bool_t RejectLEDEvents();
298 
299  void SetFiredTriggerClassName(TString name ) { fFiredTriggerClassName = name ; }
301  TString GetFiredTriggerClasses() const { return GetInputEvent()->GetFiredTriggerClasses() ; }
302 
303 
304  // Event selection when mixed event is used
305 
306  UInt_t GetEventTriggerMask() const { return fEventTriggerMask ; }
307  void SetEventTriggerMask(UInt_t evtTrig = AliVEvent::kAny)
308  { fEventTriggerMask = evtTrig ; }
309  UInt_t GetMixEventTriggerMask() const { return fMixEventTriggerMask ; }
310  void SetMixEventTriggerMask(UInt_t evtTrig = AliVEvent::kAnyINT)
311  { fMixEventTriggerMask = evtTrig ; }
312  Bool_t IsEventTriggerAtSEOn() const { return fEventTriggerAtSE ; }
315 
316  // EMCal Triggered events selection, studies
317 
318  TArrayI GetTriggerPatches(Int_t tmin, Int_t tmax);
319  void MatchTriggerCluster(TArrayI patches);
321 
322  Bool_t CheckEventTriggers();
323 
324  Bool_t IsExoticEvent() const { return fIsExoticEvent ; }
325  Bool_t IsBadCellTriggerEvent() const { return fIsBadCellEvent ; }
326  Bool_t IsBadMaxCellTriggerEvent() const { return fIsBadMaxCellEvent ; }
327  Bool_t IsTriggerMatched() const { return fIsTriggerMatch ; }
328  Bool_t IsTriggerMatchedOpenCuts(Int_t i) const { return fIsTriggerMatchOpenCut[i]; }
329 
330  Int_t GetTriggerClusterBC() const { return fTriggerClusterBC ; }
331  Int_t GetTriggerClusterIndex() const { return fTriggerClusterIndex ; }
332  Int_t GetTriggerClusterId() const { return fTriggerClusterId ; }
333 
338 
339  void SetEventTriggerL1Bit(Int_t ega, Int_t eje) { fBitEGA = ega ; fBitEJE = eje; }
340 
341  void SetTriggerPatchTimeWindow(Int_t min, Int_t max) { fTriggerPatchTimeWindow[0] = min ;
342  fTriggerPatchTimeWindow[1] = max ; }
343 
347 
351 
355 
359 
360  void SetEventTriggerBit();
361  Bool_t IsEventMinimumBias() const { return fEventTrigMinBias ; }
362  Bool_t IsEventCentral() const { return fEventTrigCentral ; }
363  Bool_t IsEventSemiCentral() const { return fEventTrigSemiCentral ; }
364  Bool_t IsEventEMCALL0() const { return fEventTrigEMCALL0 ; }
365  Bool_t IsEventEMCALL1Gamma1() const { return fEventTrigEMCALL1Gamma1 ; }
366  Bool_t IsEventEMCALL1Gamma2() const { return fEventTrigEMCALL1Gamma2 ; }
367  Bool_t IsEventEMCALL1Jet1() const { return fEventTrigEMCALL1Jet1 ; }
368  Bool_t IsEventEMCALL1Jet2() const { return fEventTrigEMCALL1Jet2 ; }
371  Bool_t IsEventEMCALL1() const { return (IsEventEMCALL1Gamma() || IsEventEMCALL1Jet() ) ; }
372 
375 
376  // Other event rejections criteria
377 
381 
385 
389 
393 
397 
398  // Time Stamp
399 
400  Double_t GetRunTimeStampMin() const { return fTimeStampRunMin ; }
401  Double_t GetRunTimeStampMax() const { return fTimeStampRunMax ; }
402 
403  void SetRunTimeStamp(Double_t a, Double_t b) { fTimeStampRunMin = a ;
404  fTimeStampRunMax = b ; } // seconds
405 
408 
409  void SetEventTimeStampFraction(Float_t a, Float_t b) { fTimeStampEventFracMin = a ;
410  fTimeStampEventFracMax = b ; }
411 
414 
416 
417  // Event tagging as pile-up
418 
419  Bool_t IsPileUpFromSPD() const ;
420  Bool_t IsPileUpFromEMCal() const ;
421  Bool_t IsPileUpFromSPDAndEMCal() const ;
422  Bool_t IsPileUpFromSPDOrEMCal() const ;
423  Bool_t IsPileUpFromSPDAndNotEMCal() const ;
424  Bool_t IsPileUpFromEMCalAndNotSPD() const ;
425  Bool_t IsPileUpFromNotSPDAndNotEMCal() const ;
426 
427  void SetPileUpParamForSPD (Int_t i, Double_t param)
428  { fPileUpParamSPD[i] = param ; }
429  void SetPileUpParamForEMCal(Int_t param) { fNPileUpClustersCut = param ; }
430 
433 
434  Int_t GetEMCalEventBC(Int_t bc) const { if(bc >=0 && bc < 19) return fEMCalBCEvent [bc] ; else return 0 ; }
435  Int_t GetTrackEventBC(Int_t bc) const { if(bc >=0 && bc < 19) return fTrackBCEvent [bc] ; else return 0 ; }
436  Int_t GetEMCalEventBCcut(Int_t bc) const { if(bc >=0 && bc < 19) return fEMCalBCEventCut[bc] ; else return 0 ; }
437  Int_t GetTrackEventBCcut(Int_t bc) const { if(bc >=0 && bc < 19) return fTrackBCEventCut[bc] ; else return 0 ; }
438 
439  void SetEMCalEventBC(Int_t bc) { if(bc >=0 && bc < 19) fEMCalBCEvent [bc] = 1 ; }
440  void SetTrackEventBC(Int_t bc) { if(bc >=0 && bc < 19) fTrackBCEvent [bc] = 1 ; }
441  void SetEMCalEventBCcut(Int_t bc) { if(bc >=0 && bc < 19) fEMCalBCEventCut[bc] = 1 ; }
442  void SetTrackEventBCcut(Int_t bc) { if(bc >=0 && bc < 19) fTrackBCEventCut[bc] = 1 ; }
443 
444  Int_t GetVertexBC(const AliVVertex * vtx);
445  Int_t GetVertexBC() const { return fVertexBC ; }
448 
449  // Track selection
450 
451  ULong_t GetTrackStatus() const { return fTrackStatus ; }
452  void SetTrackStatus(ULong_t bit) { fTrackStatus = bit ; }
453 
454  virtual Bool_t SelectTrack(AliVTrack* , Double_t*) { return kFALSE ; } // See AOD/ESD reader
455 
458 
459  Int_t GetTrackMultiplicity() const { return fTrackMult ; }
460  Float_t GetTrackMultiplicityEtaCut() const { return fTrackMultEtaCut ; }
461  void SetTrackMultiplicityEtaCut(Float_t eta) { fTrackMultEtaCut = eta ; }
462 
463  // Virtual for AliCaloTrackAODReader
464 
465  virtual ULong_t GetTrackFilterMask() const { return 0 ; }
466  virtual void SetTrackFilterMask(ULong_t) { ; }
467 
468  virtual ULong_t GetTrackFilterMaskComplementary() const { return 0 ; }
469  virtual void SetTrackFilterMaskComplementary(ULong_t) { ; }
470 
471  virtual void SwitchOnAODHybridTrackSelection() { ; }
472  virtual void SwitchOffAODHybridTrackSelection() { ; }
473 
474  virtual void SwitchOnAODPrimaryTrackSelection() { ; }
476 
479 
480  virtual void SetTPCSharedClusterFraction(Float_t) { ; }
481  virtual Float_t GetTPCSharedClusterFraction() const { return 0 ; }
482 
483  // Virtual for AliCaloTrackESDReader
484 
485  virtual AliESDtrackCuts* GetTrackCuts() const { return 0 ; }
486  virtual AliESDtrackCuts* GetTrackComplementaryCuts() const { return 0 ; }
487 
488  virtual void SetTrackCuts(AliESDtrackCuts *) { ; }
489  virtual void SetTrackComplementaryCuts(AliESDtrackCuts *) { ; }
490 
491  virtual void SwitchOnConstrainTrackToVertex() { ; }
492  virtual void SwitchOffConstrainTrackToVertex() { ; }
493 
494  // Events species selection
495 
498  void AnalyzeOnlyEventsOfType(Int_t specie) { fEventType = specie ; }
499 
500  //-------------------------------
501  // Vertex methods
502  //-------------------------------
503 
504  virtual void GetVertex(Double_t v[3]) const ;
505  virtual Double_t* GetVertex(Int_t evtIndex) const { return fVertex[evtIndex] ; }
506  virtual void GetVertex(Double_t vertex[3], const Int_t evtIndex) const ;
507  virtual void FillVertexArray();
508  virtual Bool_t CheckForPrimaryVertex() const { return kTRUE ; } // algorithm in ESD/AOD Readers
509  virtual Float_t GetZvertexCut() const { return fZvtxCut ; } // cut on vertex position
510  virtual void SetZvertexCut(Float_t zcut=10.) { fZvtxCut=zcut ; } // cut on vertex position
511 
512  //--------------------------
513  // Centrality / Event Plane
514  //--------------------------
515 
516  virtual AliCentrality* GetCentrality() const {
517  if(fDataType!=kMC) return fInputEvent->GetCentrality() ;
518  else return 0x0 ; }
519 
520  virtual AliMultSelection* GetMultSelCen() const {
521  if(fDataType!=kMC) return (AliMultSelection * ) fInputEvent->FindListObject("MultSelection") ;
522  else return 0x0 ; }
523 
524  virtual void SwitchOnAliCentrality () { fUseAliCentrality = kTRUE ; }
525  virtual void SwitchOffAliCentrality() { fUseAliCentrality = kFALSE ; }
526 
527  virtual void SetCentralityClass(TString name) { fCentralityClass = name ; }
528  virtual void SetCentralityOpt(Int_t opt) { fCentralityOpt = opt ; }
529  virtual TString GetCentralityClass() const { return fCentralityClass ; }
530  virtual Int_t GetCentralityOpt() const { return fCentralityOpt ; }
531  virtual Int_t GetEventCentrality() const ;
532  virtual void SetCentralityBin(Int_t min, Int_t max) //Set the centrality bin to select the event. If used, then need to get percentile
533  { fCentralityBin[0]=min; fCentralityBin[1]=max;
534  if(min>=0 && max > 0) fCentralityOpt = 100 ; }
535  virtual Float_t GetCentralityBin(Int_t i) const { if(i < 0 || i > 1) return 0 ;
536  else return fCentralityBin[i] ; }
537 
538  virtual AliEventplane* GetEventPlane() const { if(fDataType!=kMC) return fInputEvent->GetEventplane() ;
539  else return 0x0 ; }
540  virtual Double_t GetEventPlaneAngle() const ;
541  virtual void SetEventPlaneMethod(TString m) { fEventPlaneMethod = m ; }
542  virtual TString GetEventPlaneMethod() const { return fEventPlaneMethod ; }
543 
544  //--------------------
545  // Mixing
546  //--------------------
547 
548  Int_t GetLastCaloMixedEvent() const { return fLastMixedCaloEvent ; }
549  Int_t GetLastTracksMixedEvent () const { return fLastMixedTracksEvent ; }
550 
551  TList * GetListWithMixedEventsForCalo (Int_t bi) const { if(fListMixedCaloEvents) return fListMixedCaloEvents [bi] ; else return 0 ; }
552  TList * GetListWithMixedEventsForTracks(Int_t bi) const { if(fListMixedTracksEvents) return fListMixedTracksEvents[bi] ; else return 0 ; }
553 
554  Bool_t ListWithMixedEventsForCaloExists() const { if(fListMixedCaloEvents) return kTRUE ;
555  else return kFALSE ; }
556 
557  Bool_t ListWithMixedEventsForTracksExists() const { if(fListMixedTracksEvents) return kTRUE ;
558  else return kFALSE ; }
559 
562 
563  void SetListWithMixedEventsForCalo (TList ** l) {
564  if(fListMixedCaloEvents) printf("AliCaloTrackReader::SetListWithMixedEventsForCalo() - Track Mixing event list already set, nothing done\n");
565  else fListMixedCaloEvents = l ; }
566 
568  if(fListMixedTracksEvents) printf("AliCaloTrackReader::SetListWithMixedEventsForTracks() - Calorimeter Mixing event list already set, nothing done\n");
569  else fListMixedTracksEvents = l ; }
570 
571  //-------------------------------------
572  // Other methods
573  //-------------------------------------
574 
577  { fCaloUtils = caloutils ; }
578 
579  Double_t GetEventWeight() const { return fEventWeight ; }
581  return fWeightUtils ; }
582 
583  virtual Double_t GetBField() const { return fInputEvent->GetMagneticField() ; }
584 
586  Float_t GetPhi (Float_t phi) const { if ( phi < 0 ) phi += TMath::TwoPi() ; return phi ; }
587 
588  Float_t DegToRad(Float_t deg) const { deg *= TMath::DegToRad(); return deg ; }
589 
590  Float_t RadToDeg(Float_t rad) const { rad *= TMath::RadToDeg(); return rad ; }
591 
592 
593  //------------------------------------------------
594  // MC analysis specific methods
595  //-------------------------------------------------
596 
597  // Kinematics and galice.root available
598 
599  virtual AliStack* GetStack() const ;
600  virtual AliHeader* GetHeader() const ;
601  virtual AliGenEventHeader* GetGenEventHeader() const ;
602 
603  // Filtered kinematics in AOD
604 
605  virtual TClonesArray* GetAODMCParticles() const ;
606  virtual AliAODMCHeader* GetAODMCHeader () const ;
607 
608  virtual AliVEvent* GetInputEvent() const { return fInputEvent ; }
609  virtual AliVEvent* GetOriginalInputEvent() const { return 0x0 ; }
610  virtual AliAODEvent* GetOutputEvent() const { return fOutputEvent ; }
611  virtual AliMCEvent* GetMC() const { return fMC ; }
612  virtual AliMixedEvent* GetMixedEvent() const { return fMixedEvent ; }
613  virtual Int_t GetNMixedEvent() const { return fNMixedEvent ; }
614 
615  void SwitchOnStack() { fReadStack = kTRUE ; }
616  void SwitchOffStack() { fReadStack = kFALSE ; }
619  Bool_t ReadStack() const { return fReadStack ; }
620  Bool_t ReadAODMCParticles() const { return fReadAODMCParticles ; }
621 
622  void RemapMCLabelForAODs(Int_t &label);
623 
624  // Select generated events, depending on comparison of pT hard and jets
625 
626  virtual Bool_t ComparePtHardAndJetPt() ;
627  virtual Bool_t IsPtHardAndJetPtComparisonSet() const { return fComparePtHardAndJetPt ; }
628  virtual void SetPtHardAndJetPtComparison(Bool_t compare) { fComparePtHardAndJetPt = compare ; }
629  virtual Float_t GetPtHardAndJetFactor() const { return fPtHardAndJetPtFactor ; }
630  virtual void SetPtHardAndJetPtFactor(Float_t factor) { fPtHardAndJetPtFactor = factor ; }
631 
632  virtual Bool_t ComparePtHardAndClusterPt() ;
634  virtual void SetPtHardAndClusterPtComparison(Bool_t compare) { fComparePtHardAndClusterPt = compare ; }
635  virtual Float_t GetPtHardAndClusterFactor() const { return fPtHardAndClusterPtFactor ; }
636  virtual void SetPtHardAndClusterPtFactor(Float_t factor) { fPtHardAndClusterPtFactor = factor ; }
637 
638  virtual Bool_t IsHIJINGLabel(Int_t label);
643 
644  // MC reader methods, declared there to allow compilation, they are only used in the MC reader
645 
646  virtual void AddNeutralParticlesArray(TArrayI & /*array*/) { ; }
647  virtual void AddChargedParticlesArray(TArrayI & /*array*/) { ; }
648  virtual void AddStatusArray(TArrayI & /*array*/) { ; }
649 
650  virtual void SwitchOnPi0Decay() { ; }
651  virtual void SwitchOffPi0Decay() { ; }
652  virtual void SwitchOnStatusSelection() { ; }
653  virtual void SwitchOffStatusSelection() { ; }
654  virtual void SwitchOnOverlapCheck() { ; }
655  virtual void SwitchOffOverlapCheck() { ; }
656  virtual void SwitchOnOnlyGeneratorParticles() { ; }
657  virtual void SwitchOffOnlyGeneratorParticles() { ; }
658 
659  virtual void SetEMCALOverlapAngle(Float_t /*angle*/) { ; }
660  virtual void SetPHOSOverlapAngle(Float_t /*angle*/) { ; }
661 
662  //-------------
663  // Jets
664  //-------------
665 
669 
673 
674  virtual void FillInputNonStandardJets() ;
675  virtual TClonesArray* GetNonStandardJets() const { return fNonStandardJets ; }
676  virtual void SetInputNonStandardJetBranchName(TString name) { fInputNonStandardJetBranchName = name ; }
678 
679  virtual void FillInputBackgroundJets() ;
680  virtual AliAODJetEventBackground* GetBackgroundJets() const { return fBackgroundJets ; }
681  virtual void SetInputBackgroundJetBranchName(TString name) { fInputBackgroundJetBranchName = name ; }
683 
684  protected:
685 
686  Int_t fEventNumber;
687  Int_t fDataType ;
688  Int_t fDebug;
690  Bool_t fCheckFidCut ;
691 
694 
697 
698  Float_t fCTSPtMin;
699  Float_t fEMCALPtMin;
700  Float_t fPHOSPtMin;
701  Float_t fCTSPtMax;
702  Float_t fEMCALPtMax;
703  Float_t fPHOSPtMax;
709  Double_t fEMCALTimeCutMin;
710  Double_t fEMCALTimeCutMax;
712  Double_t fEMCALParamTimeCutMax[4];
713  Double_t fTrackTimeCutMin;
714  Double_t fTrackTimeCutMax;
716  Double_t fTrackDCACut[3];
717 
719  TList * fAODBranchList ; //->
720 
722  TObjArray * fCTSTracks ; //->
723 
725  TObjArray * fEMCALClusters ; //->
726 
728  TObjArray * fDCALClusters ; //->
729 
731  TObjArray * fPHOSClusters ; //->
732 
733  AliVCaloCells * fEMCALCells ;
734  AliVCaloCells * fPHOSCells ;
735 
736  AliVEvent * fInputEvent;
737  AliAODEvent * fOutputEvent;
738  AliMCEvent * fMC;
739 
740  Bool_t fFillCTS;
741  Bool_t fFillEMCAL;
742  Bool_t fFillDCAL;
743  Bool_t fFillPHOS;
745  Bool_t fFillPHOSCells;
749 
752  TRandom3 fRandom ;
753 
754  ULong_t fTrackStatus ;
756  Int_t fTrackMult ;
757  Float_t fTrackMultEtaCut ;
758 
759  Bool_t fReadStack ;
761 
762  TString fDeltaAODFileName ;
764 
765  // Trigger bit
769 
778 
779  Int_t fBitEGA;
780  Int_t fBitEJE;
781 
782  Int_t fEventType;
783 
784  TString fTaskName;
785 
787 
789  Double_t fEventWeight ;
790 
791  AliMixedEvent * fMixedEvent ;
792  Int_t fNMixedEvent ;
793  Double_t ** fVertex ;
794 
799 
801 
802  Int_t fV0ADC[2] ;
803  Int_t fV0Mul[2] ;
804 
806 
807  // Event selection
808 
809  Float_t fZvtxCut ;
812 
816 
820 
824  Bool_t fIsExoticEvent;
831 
832 
838 //AliTriggerAnalysis* fTriggerAnalysis; ///< Access to trigger selection algorithm for V0AND calculation.
839 
843  Double_t fTimeStampRunMin;
844  Double_t fTimeStampRunMax;
845 
848  Double_t fPileUpParamSPD[5];
849 
850  // Pile-up in EMCal
851 
855  Int_t fEMCalBCEvent[19];
856  Int_t fEMCalBCEventCut[19];
857  Int_t fTrackBCEvent[19];
858  Int_t fTrackBCEventCut[19];
859  Int_t fVertexBC;
861 
862  // Centrality/Event plane
866  Int_t fCentralityBin[2];
868 
872 
873  // Jets
875  TClonesArray * fNonStandardJets;
878  AliAODJetEventBackground * fBackgroundJets;
880 
883 
885 
886  TLorentzVector fMomentum;
887 
890 
893 
895  ClassDef(AliCaloTrackReader,72) ;
897 
898 } ;
899 
900 #endif //ALICALOTRACKREADER_H
901 
902 
903 
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.
Float_t GetSmearingFunction() const
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
void SetSmearingFunction(Float_t smearfunct)
Bool_t fDoRejectNoTrackEvents
Reject events with no selected tracks in event.
Bool_t IsEventEMCALL1Jet2() const
smearingFunction
Smearing function enum.
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.
Float_t fSmearingFunction
Choice of smearing function. 0 no smearing. 1 smearing from Gustavo (Landau center at 0)...
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