]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGGA/EMCALTasks/AliEmcalClusTrackMatcherTask.h
clus/track match task
[u/mrichter/AliRoot.git] / PWGGA / EMCALTasks / AliEmcalClusTrackMatcherTask.h
1 #ifndef ALIEMCALCLUSTRACKMATCHERTASK_H
2 #define ALIEMCALCLUSTRACKMATCHERTASK_H
3
4 // $Id$
5
6 class TClonesArray;
7 class AliESDtrackCuts;
8
9 #include "AliAnalysisTaskSE.h"
10
11 class AliEmcalClusTrackMatcherTask : public AliAnalysisTaskSE {
12  public:
13   AliEmcalClusTrackMatcherTask(const char *name=0);
14   virtual ~AliEmcalClusTrackMatcherTask();
15
16   void         UserCreateOutputObjects();
17   void         UserExec(Option_t *option);
18   void         Terminate(Option_t *option);
19
20   void         SetCaloName(const char *n)        { fCaloName   = n; }
21   void         SetTracksName(const char *n)      { fTracksName = n; }
22
23  protected:
24   void FindJets(TObjArray *tracks, TObjArray *clus, Int_t algo, Double_t radius);
25
26   TString      fTracksName;         // name of track collection (if "" use branch)
27   TString      fCaloName;           // name of calo collection
28
29  private:
30   AliEmcalClusTrackMatcherTask(const AliEmcalClusTrackMatcherTask&);            // not implemented
31   AliEmcalClusTrackMatcherTask &operator=(const AliEmcalClusTrackMatcherTask&); // not implemented
32
33   ClassDef(AliEmcalClusTrackMatcherTask, 1) // Cluster-Track matching task
34 };
35 #endif