]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGGA/EMCALJetTasks/AliHadCorrTask.h
fix from Salvatore
[u/mrichter/AliRoot.git] / PWGGA / EMCALJetTasks / AliHadCorrTask.h
1 #ifndef ALIHADCORRTASK_H
2 #define ALIHADCORRTASK_H
3
4 // $Id$
5
6 class TClonesArray;
7 class TList;
8 class TH1;
9 class TH2;
10
11 #include "AliAnalysisTaskSE.h"
12
13 class AliHadCorrTask : public AliAnalysisTaskSE {
14  public:
15   AliHadCorrTask();
16   AliHadCorrTask(const char *name); 
17   virtual ~AliHadCorrTask();
18
19   void         UserCreateOutputObjects();
20   void         UserExec(Option_t *option);
21   void         Terminate(Option_t *option);
22
23   void         SetClusName(const char *n)            { fCaloName    = n;   }
24   void         SetEtaMatch(Double_t eta)             { fEtaMatch    = eta; }
25   void         SetHadCorr(Double_t c)                { fHadCorr     = c;   }
26   void         SetMinPt(Double_t min)                { fMinPt       = min; }
27   void         SetOutClusName(const char *n)         { fOutCaloName = n;   }
28   void         SetPhiMatch(Double_t phi)             { fPhiMatch    = phi; }
29   void         SetTracksName(const char *n)          { fTracksName  = n;   }
30
31  protected:
32   Int_t        GetCentBin(Double_t cent) const;
33   Int_t        GetMomBin(Double_t pt)    const;
34
35   TString                fTracksName;             // name of track collection
36   TString                fCaloName;               // name of calo cluster collection
37   TString                fOutCaloName;            // name of output clusters
38   Double_t               fPhiMatch;               // phi match value (pp=0.050)
39   Double_t               fEtaMatch;               // eta match value (pp=0.025)
40   Double_t               fHadCorr;                // hadronic correction (fraction)
41   Double_t               fMinPt;                  // minimum pt (on tracks and clusters)
42   TClonesArray          *fOutClusters;            //!output cluster collection
43   TList                 *fOutputList;             //!output list
44   TH2                   *fHistMatchEtaPhi[8][5];  //!output histograms
45   TH2                   *fHistMatchEvsP[4];       //!output histograms
46   TH2                   *fHistMatchdRvsEP[4];     //!output histograms
47   TH1                   *fHistNclusvsCent;        //!output histograms
48   TH1                   *fHistNclusMatchvsCent;   //!output histograms
49   TH1                   *fHistEbefore;            //!output histograms
50   TH1                   *fHistEafter;             //!output histograms
51   TH2                   *fHistEoPCent;            //!output histograms
52   TH2                   *fHistNMatchCent;         //!output histograms
53   TH2                   *fHistEsubPch[4];         //!output histograms
54
55  private:
56   AliHadCorrTask(const AliHadCorrTask&);            // not implemented
57   AliHadCorrTask &operator=(const AliHadCorrTask&); // not implemented
58
59   ClassDef(AliHadCorrTask, 3) // Hadronic correction task
60 };
61 #endif