AliPhysics  vAN-20150427 (e6e7aad)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
AliEMCalTriggerRecTrackAnalysisComponent.h
Go to the documentation of this file.
1 
8 #ifndef ALIEMCALTRIGGERRECTRACKANALYSISCOMPONENT_H
9 #define ALIEMCALTRIGGERRECTRACKANALYSISCOMPONENT_H
10 /* Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
11  * See cxx source for full Copyright notice */
12 
15 
16 class TList;
17 class TString;
18 class AliVParticle;
19 class AliVTrack;
20 class AliMCEvent;
21 
29 namespace EMCalTriggerPtAnalysis {
30 
31 class AliEMCalTriggerEventData;
32 class AliEMCalPtTaskVTrackSelection;
33 
45 public:
49 
50  virtual void CreateHistos();
51  virtual void Process(const AliEMCalTriggerEventData * const data);
52 
58  void SetSwapEta(Bool_t doSwap = kTRUE) { fSwapEta = doSwap; }
59 
68 
76  void SetRequestMCtrueTracks(Bool_t doRequest = kTRUE) { fRequestMCtrue = doRequest; }
77 
85 
86 protected:
87  const AliVParticle *IsMCTrueTrack(const AliVTrack *const trk, const AliMCEvent *evnt) const;
88  void FillHistogram(const TString &histname, const AliVTrack *const trk, const AliVParticle *assocMC, const AliVEvent * const recev, Bool_t useMCkine, Double_t weight);
89  void FillCorrelation(const AliVParticle *const genparticle, const AliVParticle * const recparticle, double weight = 1.);
90  void MatchTriggerPatches(const AliVTrack *rectrack, const TClonesArray *inputpatches, TList &outputpatches) const;
91  Bool_t HasMatchedPatchOfType(TString triggertype, const TList & patches) const;
92 
94  Bool_t fSwapEta;
96  Bool_t fRequestMCtrue;
97 
99  ClassDef(AliEMCalTriggerRecTrackAnalysisComponent, 1); // Analysis component for charged tracks
101 };
102 
103 } /* namespace EMCalTriggerPtAnalysis */
104 
105 #endif /* ALIEMCALTRIGGERRECTRACKANALYSISCOMPONENT_H */
ETriggerMethod_t
Methods available to select event as triggered events.
Declaration of class AliEMCalTriggerAnaTriggerDecision, a container for trigger decision in EMCAL-tri...
Base class for analysis components.
void FillHistogram(const TString &histname, const AliVTrack *const trk, const AliVParticle *assocMC, const AliVEvent *const recev, Bool_t useMCkine, Double_t weight)
Fill main track-based histogram.
const AliVParticle * IsMCTrueTrack(const AliVTrack *const trk, const AliMCEvent *evnt) const
Check whether track is a true signal track.
AliEMCalPtTaskVTrackSelection * fTrackSelection
Track selection cuts used in the analysis.
virtual void CreateHistos()
Creating histograms for the analysis component.
Base class for analysis components in the analysis of EMCAL-triggered events.
Bool_t HasMatchedPatchOfType(TString triggertype, const TList &patches) const
void FillCorrelation(const AliVParticle *const genparticle, const AliVParticle *const recparticle, double weight=1.)
void MatchTriggerPatches(const AliVTrack *rectrack, const TClonesArray *inputpatches, TList &outputpatches) const
virtual void Process(const AliEMCalTriggerEventData *const data)
Run track loop on list of matching tracks.