]>
Commit | Line | Data |
---|---|---|
aee86258 | 1 | #ifndef ALIEMCALCLUSTRACKMATCHERTASK_H |
2 | #define ALIEMCALCLUSTRACKMATCHERTASK_H | |
3 | ||
4 | // $Id$ | |
5 | ||
9239b066 | 6 | #include "AliAnalysisTaskEmcal.h" |
aee86258 | 7 | |
9239b066 | 8 | class AliEmcalClusTrackMatcherTask : public AliAnalysisTaskEmcal { |
aee86258 | 9 | public: |
d258e37e | 10 | AliEmcalClusTrackMatcherTask(); |
0cfbc684 | 11 | AliEmcalClusTrackMatcherTask(const char *name, Bool_t histo=kFALSE); |
aee86258 | 12 | virtual ~AliEmcalClusTrackMatcherTask(); |
13 | ||
2f78f495 | 14 | void SetMaxDistance(Double_t d) { fMaxDistance = d; } |
15 | void SetModifyObjs(Bool_t b) { fModifyObjs = b; } | |
aee86258 | 16 | |
17 | protected: | |
2f78f495 | 18 | void ExecOnce(); |
19 | Int_t GetMomBin(Double_t p) const; | |
20 | Bool_t Run(); | |
21 | void UserCreateOutputObjects(); | |
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; //!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 | |
31 | ||
aee86258 | 32 | private: |
33 | AliEmcalClusTrackMatcherTask(const AliEmcalClusTrackMatcherTask&); // not implemented | |
34 | AliEmcalClusTrackMatcherTask &operator=(const AliEmcalClusTrackMatcherTask&); // not implemented | |
35 | ||
2f78f495 | 36 | ClassDef(AliEmcalClusTrackMatcherTask, 6) // Cluster-Track matching task |
aee86258 | 37 | }; |
38 | #endif |