AliPhysics  a0db429 (a0db429)
 All Classes Namespaces Files Functions Variables Typedefs 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 
67  void SetRequestMCtrueTracks(Bool_t doRequest = kTRUE) { fRequestMCtrue = doRequest; }
68 
74  void SetRequestMatchTriggerPatches(Bool_t doRequest = kTRUE) { fDoMatchPatches = doRequest; }
75 
83 
84 protected:
85  const AliVParticle *IsMCTrueTrack(const AliVTrack *const trk, const AliMCEvent *evnt) const;
86  void FillHistogram(const TString &histname, const AliVTrack *const trk, const AliVParticle *assocMC, const AliVEvent * const recev, Bool_t useMCkine, Double_t weight);
87  void FillCorrelation(const AliVParticle *const genparticle, const AliVParticle * const recparticle, double weight = 1.);
88  void MatchTriggerPatches(const AliVTrack *rectrack, const TClonesArray *inputpatches, TList &outputpatches) const;
89  Bool_t HasMatchedPatchOfType(TString triggertype, const TList & patches) const;
90 
92  Bool_t fSwapEta;
93  Bool_t fRequestMCtrue;
94  Bool_t fDoMatchPatches;
95 
97  ClassDef(AliEMCalTriggerRecTrackAnalysisComponent, 1); // Analysis component for charged tracks
99 };
100 
101 } /* namespace EMCalTriggerPtAnalysis */
102 
103 #endif /* ALIEMCALTRIGGERRECTRACKANALYSISCOMPONENT_H */
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
Simple event container within the high- track analysis.
virtual void Process(const AliEMCalTriggerEventData *const data)
Run track loop on list of matching tracks.