]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG/EMCAL/AliEmcalClusTrackMatcherTask.h
add TPC-only track cuts support
[u/mrichter/AliRoot.git] / PWG / EMCAL / AliEmcalClusTrackMatcherTask.h
1 #ifndef ALIEMCALCLUSTRACKMATCHERTASK_H
2 #define ALIEMCALCLUSTRACKMATCHERTASK_H
3
4 // $Id$
5
6 #include "AliAnalysisTaskEmcal.h"
7
8 class AliEmcalClusTrackMatcherTask : public AliAnalysisTaskEmcal {
9  public:
10   AliEmcalClusTrackMatcherTask();
11   AliEmcalClusTrackMatcherTask(const char *name, Bool_t histo=kFALSE);
12   virtual ~AliEmcalClusTrackMatcherTask();
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();
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   
32  private:
33   AliEmcalClusTrackMatcherTask(const AliEmcalClusTrackMatcherTask&);            // not implemented
34   AliEmcalClusTrackMatcherTask &operator=(const AliEmcalClusTrackMatcherTask&); // not implemented
35
36   ClassDef(AliEmcalClusTrackMatcherTask, 6) // Cluster-Track matching task
37 };
38 #endif