AliPhysics  ec707b8 (ec707b8)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 
14 
15 class TList;
16 class TString;
18 class AliVParticle;
19 class AliVTrack;
20 class AliMCEvent;
21 
29 namespace EMCalTriggerPtAnalysis {
30 
31 class AliEMCalTriggerEventData;
32 
44 public:
48 
49  virtual void CreateHistos();
50  virtual void Process(const AliEMCalTriggerEventData * const data);
51 
57  void SetSwapEta(Bool_t doSwap = kTRUE) { fSwapEta = doSwap; }
58 
66  void SetRequestMCtrueTracks(Bool_t doRequest = kTRUE) { fRequestMCtrue = doRequest; }
67 
73  void SetRequestMatchTriggerPatches(Bool_t doRequest = kTRUE) { fDoMatchPatches = doRequest; }
74 
82 
83 protected:
84  const AliVParticle *IsMCTrueTrack(const AliVTrack *const trk, const AliMCEvent *evnt) const;
85  void FillHistogram(const TString &histname, const AliVTrack *const trk, const AliVParticle *assocMC, const AliVEvent * const recev, Bool_t useMCkine, Double_t weight);
86  void FillCorrelation(const AliVParticle *const genparticle, const AliVParticle * const recparticle, double weight = 1.);
87  void MatchTriggerPatches(const AliVTrack *rectrack, const TClonesArray *inputpatches, TList &outputpatches) const;
88  Bool_t HasMatchedPatchOfType(TString triggertype, const TList & patches) const;
89 
91  Bool_t fSwapEta;
92  Bool_t fRequestMCtrue;
93  Bool_t fDoMatchPatches;
94 
96  ClassDef(AliEMCalTriggerRecTrackAnalysisComponent, 1); // Analysis component for charged tracks
98 };
99 
100 } /* namespace EMCalTriggerPtAnalysis */
101 
102 #endif /* ALIEMCALTRIGGERRECTRACKANALYSISCOMPONENT_H */
Interface for virtual track selection.
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.
virtual void CreateHistos()
Creating histograms for the analysis component.
Base class for analysis components in the analysis of EMCAL-triggered events.
AliEmcalTrackSelection * fTrackSelection
Track selection cuts used in the analysis.
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.