]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGJE/EMCALJetTasks/AliHadCorrTask.h
fix
[u/mrichter/AliRoot.git] / PWGJE / EMCALJetTasks / AliHadCorrTask.h
CommitLineData
0b777a09 1#ifndef ALIHADCORRTASK_H
2#define ALIHADCORRTASK_H
3
4// $Id$
5
6class TClonesArray;
0b777a09 7class TList;
1f6c8e39 8class TH1F;
9class TH2F;
10class AliEmcalParticle;
1f6fff78 11class TString;
0b777a09 12
1f6c8e39 13#include "AliAnalysisTaskEmcal.h"
14
15class AliHadCorrTask : public AliAnalysisTaskEmcal {
0b777a09 16
0b777a09 17 public:
0b777a09 18 AliHadCorrTask();
181a0a09 19 AliHadCorrTask(const char *name, Bool_t histo=kFALSE);
0b777a09 20 virtual ~AliHadCorrTask();
21
c7d52659 22 void UserCreateOutputObjects();
0b777a09 23
c7d52659 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 ; }
0b777a09 30
31 protected:
c7d52659 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);
c7d52659 35 Double_t GetEtaSigma(Int_t pbin) const;
36 Int_t GetMomBin(Double_t pt) const;
37 Double_t GetPhiMean(Int_t pbin, Int_t centbin) const;
38 Double_t GetPhiSigma(Int_t pbin, Int_t centbin) const;
39 virtual Bool_t Run() ;
40
41 TString fOutCaloName; // name of output clusters
42 Double_t fPhiMatch; // phi match value (pp=0.050)
43 Double_t fEtaMatch; // eta match value (pp=0.025)
44 Int_t fDoTrackClus; // loop over tracks first
45 Double_t fHadCorr; // hadronic correction (fraction)
46 Double_t fEexclCell; // energy/cell that we cannot subtract from the clusters
47 TClonesArray *fOutClusters; //!output cluster collection
1f6c8e39 48 TH2F *fHistMatchEtaPhi[8][9][2]; //!output histograms
49 TH2F *fHistMatchEvsP[4]; //!output histograms
50 TH2F *fHistNMatchEnergy[4]; //!output histograms
51 TH2F *fHistNCellsEnergy[8][4]; //!output histograms
52 TH2F *fHistMatchdRvsEP[4]; //!output histograms
53 TH1F *fHistNclusvsCent; //!output histograms
54 TH1F *fHistNclusMatchvsCent; //!output histograms
a89e2005 55 TH1F *fHistEbefore; //!output histograms
56 TH1F *fHistEafter; //!output histograms
1f6c8e39 57 TH2F *fHistEoPCent; //!output histograms
58 TH2F *fHistNMatchCent; //!output histograms
1f6c8e39 59 TH1F *fHistEsubPch[8]; //!output histograms
60 TH2F *fHistEsubPchRat[8]; //!output histograms
61 TH1F *fHistCentrality; //!output histograms
0b777a09 62
63 private:
64 AliHadCorrTask(const AliHadCorrTask&); // not implemented
65 AliHadCorrTask &operator=(const AliHadCorrTask&); // not implemented
66
a89e2005 67 ClassDef(AliHadCorrTask, 10) // Hadronic correction task
0b777a09 68};
69#endif