]>
Commit | Line | Data |
---|---|---|
914d486c | 1 | #ifndef ALIEMCALJETTASK_H |
2 | #define ALIEMCALJETTASK_H | |
48d874ff | 3 | |
4 | // $Id$ | |
5 | ||
6 | class TClonesArray; | |
6ea168d0 | 7 | class TList; |
8 | class TH1; | |
9 | class TH2; | |
48d874ff | 10 | |
11 | #include "AliAnalysisTaskSE.h" | |
12 | ||
914d486c | 13 | class AliEmcalJetTask : public AliAnalysisTaskSE { |
48d874ff | 14 | public: |
914d486c | 15 | AliEmcalJetTask(); |
16 | AliEmcalJetTask(const char *name); | |
17 | virtual ~AliEmcalJetTask(); | |
48d874ff | 18 | |
19 | void UserCreateOutputObjects(); | |
20 | void UserExec(Option_t *option); | |
21 | void Terminate(Option_t *option); | |
22 | ||
6ea168d0 | 23 | void SetAlgo(Int_t a) { fAlgo = a; } |
24 | void SetClusName(const char *n) { fCaloName = n; } | |
25 | void SetJetsName(const char *n) { fJetsName = n; } | |
914d486c | 26 | void SetMinJetClusPt(Double_t min) { fMinJetClusPt = min;} |
84a08731 | 27 | void SetMinJetTrackPt(Double_t min) { fMinJetTrackPt = min;} |
6ea168d0 | 28 | void SetRadius(Double_t r) { fRadius = r; } |
29 | void SetTracksName(const char *n) { fTracksName = n; } | |
30 | void SetType(Int_t t) { fType = t; } | |
48d874ff | 31 | |
32 | protected: | |
1de4ea18 | 33 | void FindJets(TObjArray *tracks, TObjArray *clus, Int_t algo, Double_t radius, Float_t /*cent*/); |
48d874ff | 34 | |
900f5135 | 35 | TString fTracksName; // name of track collection |
36 | TString fCaloName; // name of calo cluster collection | |
7efbea04 | 37 | TString fJetsName; // name of jet collection |
48d874ff | 38 | Int_t fAlgo; // algo (0==kt, 1==antikt) |
39 | Double_t fRadius; // jet radius | |
40 | Int_t fType; // jet type (0=all, 1=ch, 2=neutral) | |
6ea168d0 | 41 | Double_t fMinJetTrackPt; // min jet track momentum |
914d486c | 42 | Double_t fMinJetClusPt; // min jet cluster momentum |
48d874ff | 43 | TClonesArray *fJets; //!jet collection |
48d874ff | 44 | |
45 | private: | |
914d486c | 46 | AliEmcalJetTask(const AliEmcalJetTask&); // not implemented |
47 | AliEmcalJetTask &operator=(const AliEmcalJetTask&); // not implemented | |
48d874ff | 48 | |
914d486c | 49 | ClassDef(AliEmcalJetTask, 1) // Jet producing task |
48d874ff | 50 | }; |
51 | #endif |