AliPhysics  vAN-20150630 (513c479)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
AliEmcalClusTrackMatcherTask.h
Go to the documentation of this file.
1 #ifndef ALIEMCALCLUSTRACKMATCHERTASK_H
2 #define ALIEMCALCLUSTRACKMATCHERTASK_H
3 
4 // $Id$
5 
6 #include "AliAnalysisTaskEmcal.h"
7 
9  public:
11  AliEmcalClusTrackMatcherTask(const char *name, Bool_t histo=kFALSE);
13 
14  void SetMaxDistance(Double_t d) { fMaxDistance = d; }
15  void SetModifyObjs(Bool_t b) { fModifyObjs = b; }
16 
17  protected:
18  void ExecOnce();
19  Int_t GetMomBin(Double_t p) const;
20  Bool_t Run();
22 
23  Double_t fMaxDistance; // maximum distance to match clusters and tracks
24  Bool_t fModifyObjs; // if true then modify original tracks/clusters
25  TClonesArray *fOrigTracks;
26  TClonesArray *fOrigClus;
29  TH1 *fHistMatchEta[8][9][2];
30  TH1 *fHistMatchPhi[8][9][2];
31 
32  private:
35 
36  ClassDef(AliEmcalClusTrackMatcherTask, 6) // Cluster-Track matching task
37 };
38 #endif
TClonesArray * fOrigClus
ptr to original tracks (used if fModifyObjs true)
TH1 * fHistMatchPhi[8][9][2]
deta distribution
AliEmcalClusTrackMatcherTask & operator=(const AliEmcalClusTrackMatcherTask &)
TH1 * fHistMatchEta[8][9][2]
dphi distribution
TH1 * fHistMatchEtaAll
ptr to original clusters (used if fModifyObjs true)