AliPhysics  d20dab4 (d20dab4)
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; }
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;
47  TH1 *fHistMatchEta[10][9][2];
48  TH1 *fHistMatchPhi[10][9][2];
49 
50  private:
53 
54  ClassDef(AliEmcalClusTrackMatcherTask, 8) // Cluster-Track matching task
55 };
56 #endif
double Double_t
Definition: External.C:58
Base task in the EMCAL framework.
TClonesArray * fEmcalClusters
emcal tracks
int Int_t
Definition: External.C:63
AliEmcalClusTrackMatcherTask & operator=(const AliEmcalClusTrackMatcherTask &)
void ExecOnce()
Perform steps needed to initialize the analysis.
TH1 * fHistMatchPhi[10][9][2]
deta distribution
Bool_t Run()
Run function. This is the core function of the analysis and contains the user code. Therefore users have to implement this function.
Int_t fNEmcalClusters
number of emcal tracks
TH1 * fHistMatchEta[10][9][2]
dphi distribution
bool Bool_t
Definition: External.C:53
TH1 * fHistMatchEtaAll
number of emcal clusters
Definition: External.C:196