AliPhysics  c69cd47 (c69cd47)
 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  virtual TObjString * GetListOfParameters() ;
88 
89  TString GetTaskName() const { return fTaskName ; }
90  void SetTaskName(TString name) { fTaskName = name ; }
91 
92  //---------------------------------------
93  // Input/output event setters and getters
94  //---------------------------------------
95 
96  virtual void SetInputEvent(AliVEvent* input) ;
97  virtual void SetOutputEvent(AliAODEvent* aod) { fOutputEvent = aod ; }
98  virtual void SetMC(AliMCEvent* const mc) { fMC = mc ; }
99  virtual void SetInputOutputMCEvent(AliVEvent* /*esd*/, AliAODEvent* /*aod*/, AliMCEvent* /*mc*/) { ; }
100 
101  // Delta AODs
102 
103  virtual TList * GetAODBranchList() const { return fAODBranchList ; }
104  void SetDeltaAODFileName(TString name ) { fDeltaAODFileName = name ; }
105  TString GetDeltaAODFileName() const { return fDeltaAODFileName ; }
108  Bool_t WriteDeltaAODToFile() const { return fWriteOutputDeltaAOD ; }
109 
110  virtual TList * GetCreateControlHistograms() ;
111  void SetControlHistogramEnergyBinning(Int_t nBins, Float_t emin, Float_t emax)
112  { fEnergyHistogramNbins = nBins ; fEnergyHistogramLimit[0] = emin; fEnergyHistogramLimit[1] = emax ; }
113 
114  //------------------------------------------------------------
115  // Clusters/Tracks arrays filtering/filling methods and switchs
116  //------------------------------------------------------------
117 
118  // detector identificator enum, used here and in AliAnaCaloTrackBaseClass and derived classes
122 
125 
126  // Minimum pt setters and getters
127 
128  Float_t GetEMCALPtMin() const { return fEMCALPtMin ; }
129  Float_t GetPHOSPtMin() const { return fPHOSPtMin ; }
130  Float_t GetCTSPtMin() const { return fCTSPtMin ; }
131  Float_t GetEMCALPtMax() const { return fEMCALPtMax ; }
132  Float_t GetPHOSPtMax() const { return fPHOSPtMax ; }
133  Float_t GetCTSPtMax() const { return fCTSPtMax ; }
134 
135  void SetEMCALPtMin(Float_t pt) { fEMCALPtMin = pt ; }
136  void SetPHOSPtMin (Float_t pt) { fPHOSPtMin = pt ; }
137  void SetCTSPtMin (Float_t pt) { fCTSPtMin = pt ; }
138  void SetEMCALPtMax(Float_t pt) { fEMCALPtMax = pt ; }
139  void SetPHOSPtMax (Float_t pt) { fPHOSPtMax = pt ; }
140  void SetCTSPtMax (Float_t pt) { fCTSPtMax = pt ; }
141 
142  Float_t GetEMCALEMin() const { return GetEMCALPtMin() ; }
143  Float_t GetPHOSEMin() const { return GetPHOSPtMin() ; }
144  Float_t GetEMCALEMax() const { return GetEMCALPtMax() ; }
145  Float_t GetPHOSEMax() const { return GetPHOSPtMax() ; }
146 
147  void SetEMCALEMin (Float_t en) { SetEMCALPtMin(en) ; }
148  void SetPHOSEMin (Float_t en) { SetPHOSPtMin (en) ; }
149  void SetEMCALEMax (Float_t en) { SetEMCALPtMax(en) ; }
150  void SetPHOSEMax (Float_t en) { SetPHOSPtMax (en) ; }
151 
152  // Distance to bad channels cut
153 
154  Float_t GetEMCALBadChannelMinDist() const { return fEMCALBadChMinDist ; }
155  Float_t GetPHOSBadChannelMinDist() const { return fPHOSBadChMinDist ; }
156 
157  void SetEMCALBadChannelMinDist(Float_t di) { fEMCALBadChMinDist = di ; }
158  void SetPHOSBadChannelMinDist (Float_t di) { fPHOSBadChMinDist = di ; }
159 
160  // Number of cells in cluster cut
161 
162  Int_t GetEMCALNCellsCut() const { return fEMCALNCellsCut ; }
163  Int_t GetPHOSNCellsCut() const { return fPHOSNCellsCut ; }
164 
165  void SetEMCALNCellsCut(Int_t nc) { fEMCALNCellsCut = nc ; }
166  void SetPHOSNCellsCut (Int_t nc) { fPHOSNCellsCut = nc ; }
167 
168  // Track DCA cut
169 
170  Bool_t AcceptDCA(Float_t pt, Float_t dca);
171  Double_t GetTrackDCACut(Int_t i) const { if(i >= 0 && i < 3 ) return fTrackDCACut[i] ;
172  else return -999 ; }
173 
174  void SetTrackDCACut(Int_t i, Float_t cut) { if(i >= 0 && i < 3 )
175  fTrackDCACut[i] = cut ; }
176 
179  Bool_t IsDCACutOn() const { return fUseTrackDCACut ; }
180 
181  // Time cut
182 
183  Double_t GetTrackTimeCutMin() const { return fTrackTimeCutMin ; }
184  Double_t GetTrackTimeCutMax() const { return fTrackTimeCutMax ; }
185 
186  void SetTrackTimeCut(Double_t a, Double_t b) { fTrackTimeCutMin = a ;
187  fTrackTimeCutMax = b ; } // ns
188 
191 
194  Bool_t IsAccessToTrackTimeOn() const { return fAccessTrackTOF ; }
195 
196 
197  Double_t GetEMCALTimeCutMin() const { return fEMCALTimeCutMin ; }
198  Double_t GetEMCALTimeCutMax() const { return fEMCALTimeCutMax ; }
199 
200  Bool_t IsInTimeWindow(Double_t tof, Float_t energy) const ;
201 
202  void SetEMCALTimeCut(Double_t a, Double_t b) { fEMCALTimeCutMin = a ;
203  fEMCALTimeCutMax = b ; } // ns
204 
205  void SetEMCALParametrizedMinTimeCut(Int_t i, Float_t par) { fEMCALParamTimeCutMin[i] = par ; }
206  void SetEMCALParametrizedMaxTimeCut(Int_t i, Float_t par) { fEMCALParamTimeCutMax[i] = par ; }
207 
210 
213 
214  // Fidutial cuts
215 
218  return fFiducialCut ; }
219  virtual void SetFiducialCut(AliFiducialCut * fc) { fFiducialCut = fc ; }
220  virtual Bool_t IsFiducialCutOn() const { return fCheckFidCut ; }
221  virtual void SwitchOnFiducialCut() { fCheckFidCut = kTRUE ;
222  fFiducialCut = new AliFiducialCut() ; }
223  virtual void SwitchOffFiducialCut() { fCheckFidCut = kFALSE ; }
224 
225  // Cluster/track/cells switchs
226 
227  Bool_t IsCTSSwitchedOn() const { return fFillCTS ; }
228  void SwitchOnCTS() { fFillCTS = kTRUE ; }
229  void SwitchOffCTS() { fFillCTS = kFALSE ; }
230 
231  Bool_t IsEMCALSwitchedOn() const { return fFillEMCAL ; }
232  void SwitchOnEMCAL() { fFillEMCAL = kTRUE ; }
233  void SwitchOffEMCAL() { fFillEMCAL = kFALSE ; }
234 
235  Bool_t IsDCALSwitchedOn() const { return fFillDCAL ; }
236  void SwitchOnDCAL() { fFillDCAL = kTRUE ; }
237  void SwitchOffDCAL() { fFillDCAL = kFALSE ; }
238 
239  Bool_t IsPHOSSwitchedOn() const { return fFillPHOS ; }
240  void SwitchOnPHOS() { fFillPHOS = kTRUE ; }
241  void SwitchOffPHOS() { fFillPHOS = kFALSE ; }
242 
243  Bool_t IsEMCALCellsSwitchedOn() const { return fFillEMCALCells ; }
244  void SwitchOnEMCALCells() { fFillEMCALCells = kTRUE ; }
245  void SwitchOffEMCALCells() { fFillEMCALCells = kFALSE ; }
246 
247  Bool_t IsPHOSCellsSwitchedOn() const { return fFillPHOSCells ; }
248  void SwitchOnPHOSCells() { fFillPHOSCells = kTRUE ; }
249  void SwitchOffPHOSCells() { fFillPHOSCells = kFALSE ; }
250 
251  Bool_t AreClustersRecalculated() const { return fRecalculateClusters ; }
254 
257 
261 
262  // Shower shape smearing function
263 
264  void SetSmearingFunction(Int_t smfu) { fSmearingFunction = smfu ; }
265  Int_t GetSmearingFunction() const { return fSmearingFunction ; }
266 
267  Bool_t IsShowerShapeSmeared() const { return fSmearShowerShape ; }
270 
272 
273  // Filling/ filtering / detector information access methods
274 
275  virtual Bool_t FillInputEvent(Int_t iEntry, const char *currentFileName) ;
276  virtual void FillInputCTS() ;
277  virtual void FillInputEMCAL() ;
278  virtual void FillInputEMCALAlgorithm(AliVCluster * clus, Int_t iclus) ;
279  virtual void FillInputPHOS() ;
280  virtual void FillInputEMCALCells() ;
281  virtual void FillInputPHOSCells() ;
282  virtual void FillInputVZERO() ;
283 
284  Int_t GetV0Signal(Int_t i) const { return fV0ADC[i] ; }
285  Int_t GetV0Multiplicity(Int_t i) const { return fV0Mul[i] ; }
286 
287  void SetEMCALClusterListName(TString &name) { fEMCALClustersListName = name ; }
288  TString GetEMCALClusterListName() const { return fEMCALClustersListName ; }
289 
290  // Arrays with clusters/track/cells access method
291 
292  virtual TObjArray* GetCTSTracks() const { return fCTSTracks ; }
293  virtual TObjArray* GetEMCALClusters() const { return fEMCALClusters ; }
294  virtual TObjArray* GetDCALClusters() const { return fDCALClusters ; }
295  virtual TObjArray* GetPHOSClusters() const { return fPHOSClusters ; }
296  virtual AliVCaloCells* GetEMCALCells() const { return fEMCALCells ; }
297  virtual AliVCaloCells* GetPHOSCells() const { return fPHOSCells ; }
298 
299  //-------------------------------------
300  // Event/track selection methods
301  //-------------------------------------
302 
305  Bool_t IsFastClusterAccepted() const { return fAcceptFastCluster ; }
306 
307  Bool_t AcceptEventWithTriggerBit();
308  Bool_t RejectEventWithTriggerBit();
309  void SetAcceptEventsWithBit(UInt_t bit) { Int_t n = fAcceptEventsWithBit.GetSize();
310  fAcceptEventsWithBit.Set(n+1);
311  fAcceptEventsWithBit.AddAt(bit,n) ; }
312 
313  void SetRejectEventsWithBit(UInt_t bit) { Int_t n = fRejectEventsWithBit.GetSize();
314  fRejectEventsWithBit.Set(n+1);
315  fRejectEventsWithBit.AddAt(bit,n) ; }
316 
319  Bool_t IsLEDEventRemoved() const { return fRemoveLEDEvents ; }
320  Bool_t RejectLEDEvents();
321 
322  void SetFiredTriggerClassName(TString name ) { fFiredTriggerClassName = name ; }
324  TString GetFiredTriggerClasses() const { return GetInputEvent()->GetFiredTriggerClasses() ; }
325 
326 
327  // Event selection when mixed event is used
328 
329  UInt_t GetEventTriggerMask() const { return fEventTriggerMask ; }
330  void SetEventTriggerMask(UInt_t evtTrig = AliVEvent::kAny)
331  { fEventTriggerMask = evtTrig ; }
332  UInt_t GetMixEventTriggerMask() const { return fMixEventTriggerMask ; }
333  void SetMixEventTriggerMask(UInt_t evtTrig = AliVEvent::kAnyINT)
334  { fMixEventTriggerMask = evtTrig ; }
335  Bool_t IsEventTriggerAtSEOn() const { return fEventTriggerAtSE ; }
338 
339  // EMCal Triggered events selection, studies
340 
341  TArrayI GetTriggerPatches(Int_t tmin, Int_t tmax);
342  void MatchTriggerCluster(TArrayI patches);
344 
345  Bool_t CheckEventTriggers();
346 
347  Bool_t IsExoticEvent() const { return fIsExoticEvent ; }
348  Bool_t IsBadCellTriggerEvent() const { return fIsBadCellEvent ; }
349  Bool_t IsBadMaxCellTriggerEvent() const { return fIsBadMaxCellEvent ; }
350  Bool_t IsTriggerMatched() const { return fIsTriggerMatch ; }
351  Bool_t IsTriggerMatchedOpenCuts(Int_t i) const { return fIsTriggerMatchOpenCut[i]; }
352 
353  Int_t GetTriggerClusterBC() const { return fTriggerClusterBC ; }
354  Int_t GetTriggerClusterIndex() const { return fTriggerClusterIndex ; }
355  Int_t GetTriggerClusterId() const { return fTriggerClusterId ; }
356 
361 
362  void SetEventTriggerL1Bit(Int_t ega, Int_t eje) { fBitEGA = ega ; fBitEJE = eje; }
363 
364  void SetTriggerPatchTimeWindow(Int_t min, Int_t max) { fTriggerPatchTimeWindow[0] = min ;
365  fTriggerPatchTimeWindow[1] = max ; }
366 
370 
374 
378 
382 
383  void SetEventTriggerBit();
384  Bool_t IsEventMinimumBias() const { return fEventTrigMinBias ; }
385  Bool_t IsEventCentral() const { return fEventTrigCentral ; }
386  Bool_t IsEventSemiCentral() const { return fEventTrigSemiCentral ; }
387  Bool_t IsEventEMCALL0() const { return fEventTrigEMCALL0 ; }
388  Bool_t IsEventEMCALL1Gamma1() const { return fEventTrigEMCALL1Gamma1 ; }
389  Bool_t IsEventEMCALL1Gamma2() const { return fEventTrigEMCALL1Gamma2 ; }
390  Bool_t IsEventEMCALL1Jet1() const { return fEventTrigEMCALL1Jet1 ; }
391  Bool_t IsEventEMCALL1Jet2() const { return fEventTrigEMCALL1Jet2 ; }
394  Bool_t IsEventEMCALL1() const { return (IsEventEMCALL1Gamma() || IsEventEMCALL1Jet() ) ; }
395 
398 
399  // Other event rejections criteria
400 
404 
408 
412 
416 
420 
421  // Time Stamp
422 
423  Double_t GetRunTimeStampMin() const { return fTimeStampRunMin ; }
424  Double_t GetRunTimeStampMax() const { return fTimeStampRunMax ; }
425 
426  void SetRunTimeStamp(Double_t a, Double_t b) { fTimeStampRunMin = a ;
427  fTimeStampRunMax = b ; } // seconds
428 
431 
432  void SetEventTimeStampFraction(Float_t a, Float_t b) { fTimeStampEventFracMin = a ;
433  fTimeStampEventFracMax = b ; }
434 
437 
439 
440  // Event tagging as pile-up
441 
442  Bool_t IsPileUpFromSPD() const ;
443  Bool_t IsPileUpFromEMCal() const ;
444  Bool_t IsPileUpFromSPDAndEMCal() const ;
445  Bool_t IsPileUpFromSPDOrEMCal() const ;
446  Bool_t IsPileUpFromSPDAndNotEMCal() const ;
447  Bool_t IsPileUpFromEMCalAndNotSPD() const ;
448  Bool_t IsPileUpFromNotSPDAndNotEMCal() const ;
449 
450  void SetPileUpParamForSPD (Int_t i, Double_t param)
451  { fPileUpParamSPD[i] = param ; }
452  void SetPileUpParamForEMCal(Int_t param) { fNPileUpClustersCut = param ; }
453 
456 
457  Int_t GetEMCalEventBC(Int_t bc) const { if(bc >=0 && bc < 19) return fEMCalBCEvent [bc] ; else return 0 ; }
458  Int_t GetTrackEventBC(Int_t bc) const { if(bc >=0 && bc < 19) return fTrackBCEvent [bc] ; else return 0 ; }
459  Int_t GetEMCalEventBCcut(Int_t bc) const { if(bc >=0 && bc < 19) return fEMCalBCEventCut[bc] ; else return 0 ; }
460  Int_t GetTrackEventBCcut(Int_t bc) const { if(bc >=0 && bc < 19) return fTrackBCEventCut[bc] ; else return 0 ; }
461 
462  void SetEMCalEventBC(Int_t bc) { if(bc >=0 && bc < 19) fEMCalBCEvent [bc] = 1 ; }
463  void SetTrackEventBC(Int_t bc) { if(bc >=0 && bc < 19) fTrackBCEvent [bc] = 1 ; }
464  void SetEMCalEventBCcut(Int_t bc) { if(bc >=0 && bc < 19) fEMCalBCEventCut[bc] = 1 ; }
465  void SetTrackEventBCcut(Int_t bc) { if(bc >=0 && bc < 19) fTrackBCEventCut[bc] = 1 ; }
466 
467  Int_t GetVertexBC(const AliVVertex * vtx);
468  Int_t GetVertexBC() const { return fVertexBC ; }
471 
472  // Track selection
473 
474  ULong_t GetTrackStatus() const { return fTrackStatus ; }
475  void SetTrackStatus(ULong_t bit) { fTrackStatus = bit ; }
476 
477  virtual Bool_t SelectTrack(AliVTrack* , Double_t*) { return kFALSE ; } // See AOD/ESD reader
478 
481 
482  Int_t GetTrackMultiplicity() const { return fTrackMult ; }
483  Float_t GetTrackMultiplicityEtaCut() const { return fTrackMultEtaCut ; }
484  void SetTrackMultiplicityEtaCut(Float_t eta) { fTrackMultEtaCut = eta ; }
485 
486  // Virtual for AliCaloTrackAODReader
487 
488  virtual ULong_t GetTrackFilterMask() const { return 0 ; }
489  virtual void SetTrackFilterMask(ULong_t) { ; }
490 
491  virtual ULong_t GetTrackFilterMaskComplementary() const { return 0 ; }
492  virtual void SetTrackFilterMaskComplementary(ULong_t) { ; }
493 
494  virtual void SwitchOnAODHybridTrackSelection() { ; }
495  virtual void SwitchOffAODHybridTrackSelection() { ; }
496 
497  virtual void SwitchOnAODPrimaryTrackSelection() { ; }
499 
502 
503  virtual void SetTPCSharedClusterFraction(Float_t) { ; }
504  virtual Float_t GetTPCSharedClusterFraction() const { return 0 ; }
505 
506  // Virtual for AliCaloTrackESDReader
507 
508  virtual AliESDtrackCuts* GetTrackCuts() const { return 0 ; }
509  virtual AliESDtrackCuts* GetTrackComplementaryCuts() const { return 0 ; }
510 
511  virtual void SetTrackCuts(AliESDtrackCuts *) { ; }
512  virtual void SetTrackComplementaryCuts(AliESDtrackCuts *) { ; }
513 
514  virtual void SwitchOnConstrainTrackToVertex() { ; }
515  virtual void SwitchOffConstrainTrackToVertex() { ; }
516 
517  // Events species selection
518 
521  void AnalyzeOnlyEventsOfType(Int_t specie) { fEventType = specie ; }
522 
523  //-------------------------------
524  // Vertex methods
525  //-------------------------------
526 
527  virtual void GetVertex(Double_t v[3]) const ;
528  virtual Double_t* GetVertex(Int_t evtIndex) const { return fVertex[evtIndex] ; }
529  virtual void GetVertex(Double_t vertex[3], const Int_t evtIndex) const ;
530  virtual void FillVertexArray();
531  virtual Bool_t CheckForPrimaryVertex() const { return kTRUE ; } // algorithm in ESD/AOD Readers
532  virtual Float_t GetZvertexCut() const { return fZvtxCut ; } // cut on vertex position
533  virtual void SetZvertexCut(Float_t zcut=10.) { fZvtxCut=zcut ; } // cut on vertex position
534 
535  //--------------------------
536  // Centrality / Event Plane
537  //--------------------------
538 
539  virtual AliCentrality* GetCentrality() const {
540  if(fDataType!=kMC) return fInputEvent->GetCentrality() ;
541  else return 0x0 ; }
542 
543  virtual AliMultSelection* GetMultSelCen() const {
544  if(fDataType!=kMC) return (AliMultSelection * ) fInputEvent->FindListObject("MultSelection") ;
545  else return 0x0 ; }
546 
547  virtual void SwitchOnAliCentrality () { fUseAliCentrality = kTRUE ; }
548  virtual void SwitchOffAliCentrality() { fUseAliCentrality = kFALSE ; }
549 
550  virtual void SetCentralityClass(TString name) { fCentralityClass = name ; }
551  virtual void SetCentralityOpt(Int_t opt) { fCentralityOpt = opt ; }
552  virtual TString GetCentralityClass() const { return fCentralityClass ; }
553  virtual Int_t GetCentralityOpt() const { return fCentralityOpt ; }
554  virtual Int_t GetEventCentrality() const ;
555  virtual void SetCentralityBin(Int_t min, Int_t max) //Set the centrality bin to select the event. If used, then need to get percentile
556  { fCentralityBin[0]=min; fCentralityBin[1]=max;
557  if(min>=0 && max > 0) fCentralityOpt = 100 ; }
558  virtual Float_t GetCentralityBin(Int_t i) const { if(i < 0 || i > 1) return 0 ;
559  else return fCentralityBin[i] ; }
560 
561  virtual AliEventplane* GetEventPlane() const { if(fDataType!=kMC) return fInputEvent->GetEventplane() ;
562  else return 0x0 ; }
563  virtual Double_t GetEventPlaneAngle() const ;
564  virtual void SetEventPlaneMethod(TString m) { fEventPlaneMethod = m ; }
565  virtual TString GetEventPlaneMethod() const { return fEventPlaneMethod ; }
566 
567  //--------------------
568  // Mixing
569  //--------------------
570 
571  Int_t GetLastCaloMixedEvent() const { return fLastMixedCaloEvent ; }
572  Int_t GetLastTracksMixedEvent () const { return fLastMixedTracksEvent ; }
573 
574  TList * GetListWithMixedEventsForCalo (Int_t bi) const { if(fListMixedCaloEvents) return fListMixedCaloEvents [bi] ; else return 0 ; }
575  TList * GetListWithMixedEventsForTracks(Int_t bi) const { if(fListMixedTracksEvents) return fListMixedTracksEvents[bi] ; else return 0 ; }
576 
577  Bool_t ListWithMixedEventsForCaloExists() const { if(fListMixedCaloEvents) return kTRUE ;
578  else return kFALSE ; }
579 
580  Bool_t ListWithMixedEventsForTracksExists() const { if(fListMixedTracksEvents) return kTRUE ;
581  else return kFALSE ; }
582 
585 
586  void SetListWithMixedEventsForCalo (TList ** l) {
587  if(fListMixedCaloEvents) printf("AliCaloTrackReader::SetListWithMixedEventsForCalo() - Track Mixing event list already set, nothing done\n");
588  else fListMixedCaloEvents = l ; }
589 
591  if(fListMixedTracksEvents) printf("AliCaloTrackReader::SetListWithMixedEventsForTracks() - Calorimeter Mixing event list already set, nothing done\n");
592  else fListMixedTracksEvents = l ; }
593 
594  //-------------------------------------
595  // Other methods
596  //-------------------------------------
597 
600  { fCaloUtils = caloutils ; }
601 
602  Double_t GetEventWeight() const { return fEventWeight ; }
604  return fWeightUtils ; }
605 
606  virtual Double_t GetBField() const { return fInputEvent->GetMagneticField() ; }
607 
609  Float_t GetPhi (Float_t phi) const { if ( phi < 0 ) phi += TMath::TwoPi() ; return phi ; }
610 
611  Float_t DegToRad(Float_t deg) const { deg *= TMath::DegToRad(); return deg ; }
612 
613  Float_t RadToDeg(Float_t rad) const { rad *= TMath::RadToDeg(); return rad ; }
614 
615 
616  //------------------------------------------------
617  // MC analysis specific methods
618  //-------------------------------------------------
619 
620  // Kinematics and galice.root available
621 
622  virtual AliStack* GetStack() const ;
623  virtual AliHeader* GetHeader() const ;
624  virtual AliGenEventHeader* GetGenEventHeader() const ;
625 
626  // Filtered kinematics in AOD
627 
628  virtual TClonesArray* GetAODMCParticles() const ;
629  virtual AliAODMCHeader* GetAODMCHeader () const ;
630 
631  virtual AliVEvent* GetInputEvent() const { return fInputEvent ; }
632  virtual AliVEvent* GetOriginalInputEvent() const { return 0x0 ; }
633  virtual AliAODEvent* GetOutputEvent() const { return fOutputEvent ; }
634  virtual AliMCEvent* GetMC() const { return fMC ; }
635  virtual AliMixedEvent* GetMixedEvent() const { return fMixedEvent ; }
636  virtual Int_t GetNMixedEvent() const { return fNMixedEvent ; }
637 
638  void SwitchOnStack() { fReadStack = kTRUE ; }
639  void SwitchOffStack() { fReadStack = kFALSE ; }
642  Bool_t ReadStack() const { return fReadStack ; }
643  Bool_t ReadAODMCParticles() const { return fReadAODMCParticles ; }
644 
645  void RemapMCLabelForAODs(Int_t &label);
646 
647  // Select generated events, depending on comparison of pT hard and jets
648 
649  virtual Bool_t ComparePtHardAndJetPt() ;
650  virtual Bool_t IsPtHardAndJetPtComparisonSet() const { return fComparePtHardAndJetPt ; }
651  virtual void SetPtHardAndJetPtComparison(Bool_t compare) { fComparePtHardAndJetPt = compare ; }
652  virtual Float_t GetPtHardAndJetFactor() const { return fPtHardAndJetPtFactor ; }
653  virtual void SetPtHardAndJetPtFactor(Float_t factor) { fPtHardAndJetPtFactor = factor ; }
654 
655  virtual Bool_t ComparePtHardAndClusterPt() ;
657  virtual void SetPtHardAndClusterPtComparison(Bool_t compare) { fComparePtHardAndClusterPt = compare ; }
658  virtual Float_t GetPtHardAndClusterFactor() const { return fPtHardAndClusterPtFactor ; }
659  virtual void SetPtHardAndClusterPtFactor(Float_t factor) { fPtHardAndClusterPtFactor = factor ; }
660 
661  virtual Bool_t IsHIJINGLabel(Int_t label);
666 
667  // MC reader methods, declared there to allow compilation, they are only used in the MC reader
668 
669  virtual void AddNeutralParticlesArray(TArrayI & /*array*/) { ; }
670  virtual void AddChargedParticlesArray(TArrayI & /*array*/) { ; }
671  virtual void AddStatusArray(TArrayI & /*array*/) { ; }
672 
673  virtual void SwitchOnPi0Decay() { ; }
674  virtual void SwitchOffPi0Decay() { ; }
675  virtual void SwitchOnStatusSelection() { ; }
676  virtual void SwitchOffStatusSelection() { ; }
677  virtual void SwitchOnOverlapCheck() { ; }
678  virtual void SwitchOffOverlapCheck() { ; }
679  virtual void SwitchOnOnlyGeneratorParticles() { ; }
680  virtual void SwitchOffOnlyGeneratorParticles() { ; }
681 
682  virtual void SetEMCALOverlapAngle(Float_t /*angle*/) { ; }
683  virtual void SetPHOSOverlapAngle(Float_t /*angle*/) { ; }
684 
685  //-------------
686  // Jets
687  //-------------
688 
692 
696 
697  virtual void FillInputNonStandardJets() ;
698  virtual TClonesArray* GetNonStandardJets() const { return fNonStandardJets ; }
699  virtual void SetInputNonStandardJetBranchName(TString name) { fInputNonStandardJetBranchName = name ; }
701 
702  virtual void FillInputBackgroundJets() ;
703  virtual AliAODJetEventBackground* GetBackgroundJets() const { return fBackgroundJets ; }
704  virtual void SetInputBackgroundJetBranchName(TString name) { fInputBackgroundJetBranchName = name ; }
706 
707  protected:
708 
709  Int_t fEventNumber;
710  Int_t fDataType ;
711  Int_t fDebug;
713  Bool_t fCheckFidCut ;
714 
717 
720 
721  Float_t fCTSPtMin;
722  Float_t fEMCALPtMin;
723  Float_t fPHOSPtMin;
724  Float_t fCTSPtMax;
725  Float_t fEMCALPtMax;
726  Float_t fPHOSPtMax;
727 
729  Float_t fPHOSBadChMinDist ;
730 
732  Int_t fPHOSNCellsCut ;
733 
738  Double_t fEMCALTimeCutMin;
739  Double_t fEMCALTimeCutMax;
741  Double_t fEMCALParamTimeCutMax[4];
742  Double_t fTrackTimeCutMin;
743  Double_t fTrackTimeCutMax;
744 
746  Double_t fTrackDCACut[3];
747 
749  TList * fAODBranchList ; //->
750 
752  TObjArray * fCTSTracks ; //->
753 
755  TObjArray * fEMCALClusters ; //->
756 
758  TObjArray * fDCALClusters ; //->
759 
761  TObjArray * fPHOSClusters ; //->
762 
763  AliVCaloCells * fEMCALCells ;
764  AliVCaloCells * fPHOSCells ;
765 
766  AliVEvent * fInputEvent;
767  AliAODEvent * fOutputEvent;
768  AliMCEvent * fMC;
769 
770  Bool_t fFillCTS;
771  Bool_t fFillEMCAL;
772  Bool_t fFillDCAL;
773  Bool_t fFillPHOS;
775  Bool_t fFillPHOSCells;
779 
782  TRandom3 fRandom ;
784 
785  ULong_t fTrackStatus ;
787  Int_t fTrackMult ;
788  Float_t fTrackMultEtaCut ;
789 
790  Bool_t fReadStack ;
792 
793  TString fDeltaAODFileName ;
795 
796  // Trigger bit
800 
809 
810  Int_t fBitEGA;
811  Int_t fBitEJE;
812 
813  Int_t fEventType;
814 
815  TString fTaskName;
816 
818 
820  Double_t fEventWeight ;
821 
822  AliMixedEvent * fMixedEvent ;
823  Int_t fNMixedEvent ;
824  Double_t ** fVertex ;
825 
830 
832 
833  Int_t fV0ADC[2] ;
834  Int_t fV0Mul[2] ;
835 
837 
838  // Event selection
839 
840  Float_t fZvtxCut ;
843 
847 
851 
855  Bool_t fIsExoticEvent;
862 
863 
869 //AliTriggerAnalysis* fTriggerAnalysis; ///< Access to trigger selection algorithm for V0AND calculation.
870 
874  Double_t fTimeStampRunMin;
875  Double_t fTimeStampRunMax;
876 
879  Double_t fPileUpParamSPD[5];
880 
881  // Pile-up in EMCal
882 
886  Int_t fEMCalBCEvent[19];
887  Int_t fEMCalBCEventCut[19];
888  Int_t fTrackBCEvent[19];
889  Int_t fTrackBCEventCut[19];
890  Int_t fVertexBC;
892 
893  // Centrality/Event plane
897  Int_t fCentralityBin[2];
899 
903 
904  // Jets
906  TClonesArray * fNonStandardJets;
909  AliAODJetEventBackground * fBackgroundJets;
911 
914 
916 
917  TLorentzVector fMomentum;
918 
919  // cut control histograms
920 
922 
924  TH1F * fhPHOSClusterCutsE [7];
925  TH1F * fhCTSTrackCutsPt [6];
926 
929 
931 
932 
935 
938 
940  ClassDef(AliCaloTrackReader,74) ;
942 
943 } ;
944 
945 #endif //ALICALOTRACKREADER_H
946 
947 
948 
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()
void SetSmearingFunction(Int_t smfu)
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
void SetEMCALEMin(Float_t en)
Float_t GetEMCALBadChannelMinDist() 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:32
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
Float_t fPHOSBadChMinDist
Minimal distance to bad channel to accept cluster in PHOS, cm.
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.
TH1F * fhCTSTrackCutsPt[6]
! Control histogram on the different CTS tracks selection cuts, pT
Bool_t IsEventWithNoTrackRejectionDone() const
UInt_t fEventTriggerMask
Select this triggerered event.
virtual Int_t GetEventCentrality() const
Double_t GetEMCALTimeCutMax() const
virtual Bool_t IsHIJINGLabel(Int_t label)
virtual AliGenEventHeader * GetGenEventHeader() const
Int_t GetSmearingFunction() const
virtual void SetTPCSharedClusterFraction(Float_t)
virtual AliCentrality * GetCentrality() const
AliVCaloCells * fPHOSCells
! Temporal array with PHOS AliVCaloCells.
TList * fOutputContainer
! Output container with cut control histograms.
Bool_t IsEventEMCALL1Gamma2() const
virtual AliMixedEvent * GetMixedEvent() const
Int_t fEnergyHistogramNbins
Binning of the control histograms, min and max window.
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)
Float_t fEnergyHistogramLimit[2]
Binning of the control histograms, number of bins.
Int_t fTriggerClusterId
Id of trigger cluster (cluster->GetID()).
Int_t fPHOSNCellsCut
Accept for the analysis PHOS clusters with more than fNCellsCut cells.
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.
Int_t GetPHOSNCellsCut() const
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.
Float_t GetPHOSBadChannelMinDist() const
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
void SetControlHistogramEnergyBinning(Int_t nBins, Float_t emin, Float_t emax)
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
void SetEMCALBadChannelMinDist(Float_t di)
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
virtual TObjString * GetListOfParameters()
Save parameters used for analysis in a string.
Float_t fTrackMultEtaCut
Track multiplicity eta cut.
void SetEMCALNCellsCut(Int_t nc)
void SwitchOnUnMatchedTriggerEventsRemoval()
virtual void SetPtHardAndClusterPtComparison(Bool_t compare)
Bool_t IsFastClusterAccepted() const
void SetPHOSNCellsCut(Int_t nc)
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.
Int_t GetEMCALNCellsCut() const
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.
TH1F * fhEMCALClusterCutsE[8]
! Control histogram on the different EMCal cluster selection cuts, E
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)
TH1F * fhPHOSClusterCutsE[7]
! Control histogram on the different PHOS cluster selection cuts, E
virtual void SetEventPlaneMethod(TString m)
void SetPHOSEMin(Float_t en)
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
Int_t fEMCALNCellsCut
Accept for the analysis EMCAL clusters with more than fNCellsCut cells.
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 SetPHOSBadChannelMinDist(Float_t di)
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
smearingFunction
Smearing function enum.
Float_t fEMCALBadChMinDist
Minimal distance to bad channel to accept cluster in EMCal, cell units.
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()
TH1I * fhNEventsAfterCut
! Each bin represents number of events resulting after a given selection cut: vertex, trigger, ...
Float_t fPtHardAndJetPtFactor
Factor between ptHard and jet pT to reject/accept event.
void SetEMCALEMax(Float_t en)
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 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).
void SetPHOSEMax(Float_t en)
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)
virtual TList * GetCreateControlHistograms()
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.
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
Int_t fSmearingFunction
Choice of smearing function. 0 no smearing. 1 smearing from Gustavo (Landau center at 0)...
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