]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGGA/EMCALJetTasks/AliHadCorrTask.h
increase classdef
[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 TH1F;
9 class TH2F;
10 class AliEmcalParticle;
11 class TString;
12
13 #include "AliAnalysisTaskEmcal.h"
14
15 class AliHadCorrTask : public AliAnalysisTaskEmcal {
16
17  public:
18   AliHadCorrTask();
19   AliHadCorrTask(const char *name, Bool_t histo=kFALSE); 
20   virtual ~AliHadCorrTask();
21
22   void                   UserCreateOutputObjects();
23
24   void                   SetEexcl(Double_t Emin)                 { fEexclCell      = Emin ; }
25   void                   SetEtaMatch(Double_t eta)               { fEtaMatch       = eta  ; }
26   void                   SetHadCorr(Double_t c)                  { fHadCorr        = c    ; }
27   void                   SetOutClusName(const char *n)           { fOutCaloName    = n    ; }
28   void                   SetPhiMatch(Double_t phi)               { fPhiMatch       = phi  ; }
29   void                   SetTrackClus(Int_t c)                   { fDoTrackClus    = c    ; }
30
31  protected:
32   Double_t               ApplyHadCorrOneTrack(AliEmcalParticle *emccluster, Double_t hadCorr);
33   Double_t               ApplyHadCorrAllTracks(AliEmcalParticle *emccluster, Double_t hadCorr);
34   void                   DoMatchedTracksLoop(AliEmcalParticle *emccluster, Double_t &totalTrkP, Int_t &Nmatches);
35   void                   DoTrackClusLoop()                              ;
36   Double_t               GetEtaSigma(Int_t pbin)                   const;
37   Int_t                  GetMomBin(Double_t pt)                    const;
38   Double_t               GetPhiMean(Int_t pbin, Int_t centbin)     const;
39   Double_t               GetPhiSigma(Int_t pbin, Int_t centbin)    const;
40   virtual Bool_t         Run()                                          ;
41
42   TString                fOutCaloName;               // name of output clusters
43   Double_t               fPhiMatch;                  // phi match value (pp=0.050)
44   Double_t               fEtaMatch;                  // eta match value (pp=0.025)
45   Int_t                  fDoTrackClus;               // loop over tracks first
46   Double_t               fHadCorr;                   // hadronic correction (fraction)
47   Double_t               fEexclCell;                 // energy/cell that we cannot subtract from the clusters
48   TClonesArray          *fOutClusters;               //!output cluster collection
49   TH2F                  *fHistMatchEtaPhi[8][9][2];  //!output histograms
50   TH2F                  *fHistMatchEvsP[4];          //!output histograms
51   TH2F                  *fHistNMatchEnergy[4];       //!output histograms
52   TH2F                  *fHistNCellsEnergy[8][4];    //!output histograms
53   TH2F                  *fHistMatchdRvsEP[4];        //!output histograms
54   TH1F                  *fHistNclusvsCent;           //!output histograms
55   TH1F                  *fHistNclusMatchvsCent;      //!output histograms
56   TH2F                  *fHistEbefore;               //!output histograms
57   TH2F                  *fHistEafter;                //!output histograms
58   TH2F                  *fHistEoPCent;               //!output histograms
59   TH2F                  *fHistNMatchCent;            //!output histograms
60   TH2F                  *fHistNMatchCent_trk;        //!output histograms
61   TH1F                  *fHistEsubPch[8];            //!output histograms
62   TH2F                  *fHistEsubPchRat[8];         //!output histograms
63   TH1F                  *fHistCentrality;            //!output histograms
64   TH2F                  *fHistNoMatchEtaPhi;         //!output histograms
65
66  private:
67   AliHadCorrTask(const AliHadCorrTask&);            // not implemented
68   AliHadCorrTask &operator=(const AliHadCorrTask&); // not implemented
69
70   ClassDef(AliHadCorrTask, 9) // Hadronic correction task
71 };
72 #endif