]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG/EMCAL/AliEmcalClusTrackMatcherTask.h
merging trunk to TPCdev
[u/mrichter/AliRoot.git] / PWG / EMCAL / AliEmcalClusTrackMatcherTask.h
1 #ifndef ALIEMCALCLUSTRACKMATCHERTASK_H
2 #define ALIEMCALCLUSTRACKMATCHERTASK_H
3
4 // $Id$
5
6 #include "AliAnalysisTaskEmcalDev.h"
7
8 class AliEmcalClusTrackMatcherTask : public AliAnalysisTaskEmcalDev {
9  public:
10   AliEmcalClusTrackMatcherTask();
11   AliEmcalClusTrackMatcherTask(const char *name, Bool_t histo=kFALSE);
12   virtual ~AliEmcalClusTrackMatcherTask();
13
14   void         UserCreateOutputObjects();
15
16   void         SetMaxDistance(Double_t d)       { fMaxDistance = d; }
17
18  protected:
19   void         ExecOnce()                 ;
20   Bool_t       Run();
21   Int_t        GetMomBin(Double_t p) const;
22
23   Double_t     fMaxDistance            ;// maximum distance to match clusters and tracks
24
25   TH1         *fHistMatchEta[8][9][2]  ;//!deta distribution
26   TH1         *fHistMatchPhi[8][9][2]  ;//!dphi distribution
27
28  private:
29   AliEmcalClusTrackMatcherTask(const AliEmcalClusTrackMatcherTask&);            // not implemented
30   AliEmcalClusTrackMatcherTask &operator=(const AliEmcalClusTrackMatcherTask&); // not implemented
31
32   ClassDef(AliEmcalClusTrackMatcherTask, 5) // Cluster-Track matching task
33 };
34 #endif