1 #ifndef ALIHADCORRTASK_H
2 #define ALIHADCORRTASK_H
11 #include "AliAnalysisTaskSE.h"
13 class AliHadCorrTask : public AliAnalysisTaskSE {
16 AliHadCorrTask(const char *name);
17 virtual ~AliHadCorrTask();
19 void UserCreateOutputObjects();
20 void UserExec(Option_t *option);
21 void Terminate(Option_t *option);
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; }
32 Int_t GetCentBin(Double_t cent) const;
33 Int_t GetMomBin(Double_t pt) const;
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
56 AliHadCorrTask(const AliHadCorrTask&); // not implemented
57 AliHadCorrTask &operator=(const AliHadCorrTask&); // not implemented
59 ClassDef(AliHadCorrTask, 3) // Hadronic correction task