AliPhysics  9fe175b (9fe175b)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliEmcalClusTrackMatcherTask.h
Go to the documentation of this file.
1 #ifndef ALIEMCALCLUSTRACKMATCHERTASK_H
2 #define ALIEMCALCLUSTRACKMATCHERTASK_H
3 
4 #include "AliAnalysisTaskEmcal.h"
5 
7  public:
9  AliEmcalClusTrackMatcherTask(const char *name, Bool_t histo=kFALSE);
11 
12  void SetPropDist(Double_t d) { fPropDist = d; }
13  void SetDoPropagation(Bool_t b) { fDoPropagation = b; }
14  void SetAttemptProp(Bool_t b) { fAttemptProp = b; }
15  void SetAttemptPropMatch(Bool_t b) { fAttemptPropMatch = b; }
16  void SetMaxDistance(Double_t d) { fMaxDistance = d; }
18  void SetUpdateTracks(Bool_t b) { fUpdateTracks = b; }
19  void SetUpdateClusters(Bool_t b) { fUpdateClusters = b; }
20 
21  protected:
22  void ExecOnce();
23  Int_t GetMomBin(Double_t p) const;
24  Bool_t Run();
26 
28  void DoMatching();
29  void UpdateTracks();
30  void UpdateClusters();
31 
32  Double_t fPropDist; // distance to surface (440cm default)
33  Bool_t fDoPropagation; // if true then propagate all hybrid tracks to EMCal surface
34  Bool_t fAttemptProp; // if true then attempt to propagate if not done yet
35  Bool_t fAttemptPropMatch; // if true then attempt to propagate if not done yet but IsEMCAL is true
36  Double_t fMaxDistance; // maximum distance to match clusters and tracks
37  Bool_t fAttachEmcalParticles; // attach emcal particles to the event, so that other tasks can use them
38  Bool_t fUpdateTracks; // update tracks with matching info
39  Bool_t fUpdateClusters; // update clusters with matching info
40 
41  TClonesArray *fEmcalTracks;
42  TClonesArray *fEmcalClusters;
43  Int_t fNEmcalTracks;
47  TH1 *fHistMatchEta[8][9][2];
48  TH1 *fHistMatchPhi[8][9][2];
49 
50  private:
53 
54  ClassDef(AliEmcalClusTrackMatcherTask, 7) // Cluster-Track matching task
55 };
56 #endif
Base task in the EMCAL framework.
TClonesArray * fEmcalClusters
emcal tracks
TH1 * fHistMatchPhi[8][9][2]
deta distribution
AliEmcalClusTrackMatcherTask & operator=(const AliEmcalClusTrackMatcherTask &)
TH1 * fHistMatchEta[8][9][2]
dphi distribution
Int_t fNEmcalClusters
number of emcal tracks
TH1 * fHistMatchEtaAll
number of emcal clusters