]>
Commit | Line | Data |
---|---|---|
46f589c2 | 1 | #ifndef ALIANALYSISTASKPTEMCALTRIGGER_H_ |
2 | #define ALIANALYSISTASKPTEMCALTRIGGER_H_ | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | // Author: Markus Fasel | |
7 | ||
8 | #include "AliAnalysisTaskSE.h" | |
9 | #include "AliCutValueRange.h" | |
10 | #include "AliESDtrackCuts.h" | |
11 | #include <TList.h> | |
12 | ||
13 | class TArrayD; | |
14 | class Axis; | |
15 | class AliESDtrack; | |
16 | ||
17 | namespace EMCalTriggerPtAnalysis { | |
18 | class AliEMCalHistoContainer; | |
19 | ||
20 | class AliAnalysisTaskPtEMCalTrigger : public AliAnalysisTaskSE { | |
21 | public: | |
22 | enum EEMCalTriggerType_t{ | |
23 | kEMCalJetLow = 0, | |
24 | kEMCalJetHigh = 1, | |
25 | kEMCalGammaLow = 2, | |
26 | kEMCalGammaHigh = 3 | |
27 | }; | |
28 | AliAnalysisTaskPtEMCalTrigger(); | |
29 | AliAnalysisTaskPtEMCalTrigger(const char *name); | |
30 | ~AliAnalysisTaskPtEMCalTrigger(); | |
31 | ||
32 | void UserCreateOutputObjects(); | |
33 | void UserExec(Option_t* /*option*/); | |
34 | void Terminate(Option_t * /*option*/) {} | |
35 | ||
36 | void AddTrackCuts(AliESDtrackCuts *trackCuts) { fListTrackCuts->Add(trackCuts); } | |
37 | void SetEtaRange(double etamin, double etamax) { fEtaRange.SetLimits(etamin, etamax); } | |
bf9501c1 | 38 | void SetPtRange(double ptmin, double ptmax) { fPtRange.SetLimits(ptmin, ptmax); } |
46f589c2 | 39 | |
40 | private: | |
41 | AliAnalysisTaskPtEMCalTrigger(const AliAnalysisTaskPtEMCalTrigger &); | |
42 | AliAnalysisTaskPtEMCalTrigger &operator=(const AliAnalysisTaskPtEMCalTrigger &); | |
43 | void CreateDefaultPtBinning(TArrayD &binning) const; | |
44 | void CreateDefaultZVertexBinning(TArrayD &binning) const; | |
45 | void CreateDefaultEtaBinning(TArrayD &binning) const; | |
46 | void DefineAxis(TAxis &axis, const char *name, const char *title, const TArrayD &binning, const char **labels = NULL); | |
47 | void DefineAxis(TAxis &axis, const char *name, const char *title, int nbins, double min, double max, const char **labels = NULL); | |
48 | void FillEventHist(const char *trigger, double vz, bool isPileup); | |
49 | void FillTrackHist(const char *trigger, const AliESDtrack *track, double vz, bool isPileup, int cut); | |
50 | ||
51 | TList *fResults; //! container for results | |
52 | AliEMCalHistoContainer *fHistos; //! Histogram container for the task | |
53 | TList *fListTrackCuts; // List of track cuts | |
54 | ||
55 | // Cuts | |
56 | AliCutValueRange<double> fEtaRange; // Eta Selection Range | |
bf9501c1 | 57 | AliCutValueRange<double> fPtRange; // Pt Selection Range |
46f589c2 | 58 | |
59 | ClassDef(AliAnalysisTaskPtEMCalTrigger, 1); // Analysis of EMCal triggered events | |
60 | }; | |
61 | ||
62 | } | |
63 | #endif |