1 #ifndef ALIEMCALCLUSTRACKMATCHERTASK_H
2 #define ALIEMCALCLUSTRACKMATCHERTASK_H
6 #include "AliAnalysisTaskEmcal.h"
8 class AliEmcalClusTrackMatcherTask : public AliAnalysisTaskEmcal {
10 AliEmcalClusTrackMatcherTask();
11 AliEmcalClusTrackMatcherTask(const char *name, Bool_t histo=kFALSE);
12 virtual ~AliEmcalClusTrackMatcherTask();
14 void SetMaxDistance(Double_t d) { fMaxDistance = d; }
15 void SetModifyObjs(Bool_t b) { fModifyObjs = b; }
19 Int_t GetMomBin(Double_t p) const;
21 void UserCreateOutputObjects();
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; //!ptr to original tracks (used if fModifyObjs true)
26 TClonesArray *fOrigClus; //!ptr to original clusters (used if fModifyObjs true)
27 TH1 *fHistMatchEtaAll; //!deta distribution
28 TH1 *fHistMatchPhiAll; //!dphi distribution
29 TH1 *fHistMatchEta[8][9][2]; //!deta distribution
30 TH1 *fHistMatchPhi[8][9][2]; //!dphi distribution
33 AliEmcalClusTrackMatcherTask(const AliEmcalClusTrackMatcherTask&); // not implemented
34 AliEmcalClusTrackMatcherTask &operator=(const AliEmcalClusTrackMatcherTask&); // not implemented
36 ClassDef(AliEmcalClusTrackMatcherTask, 6) // Cluster-Track matching task