]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGJE/EMCALJetTasks/AliEmcalJetTask.h
Changes from Salvatore: Easier settings for tender and lego train.
[u/mrichter/AliRoot.git] / PWGJE / EMCALJetTasks / AliEmcalJetTask.h
CommitLineData
914d486c 1#ifndef ALIEMCALJETTASK_H
2#define ALIEMCALJETTASK_H
48d874ff 3
4// $Id$
5
6class TClonesArray;
b65fac7a 7class AliVEvent;
48d874ff 8
9#include "AliAnalysisTaskSE.h"
10
914d486c 11class AliEmcalJetTask : public AliAnalysisTaskSE {
48d874ff 12 public:
914d486c 13 AliEmcalJetTask();
14 AliEmcalJetTask(const char *name);
15 virtual ~AliEmcalJetTask();
48d874ff 16
b65fac7a 17 void UserCreateOutputObjects();
18 void UserExec(Option_t *option);
19 void Terminate(Option_t *option);
20
111318e8 21 void SetAlgo(Int_t a) { fAlgo = a ; }
b65fac7a 22 void SetClusName(const char *n) { fCaloName = n ; }
23 void SetJetsName(const char *n) { fJetsName = n ; }
b65fac7a 24 void SetMinJetArea(Double_t a) { fMinJetArea = a ; }
111318e8 25 void SetMinJetClusPt(Double_t min) { fMinJetClusPt = min ; }
b65fac7a 26 void SetMinJetPt(Double_t j) { fMinJetPt = j ; }
111318e8 27 void SetMinJetTrackPt(Double_t min) { fMinJetTrackPt = min ; }
28 void SetRadius(Double_t r) { fRadius = r ; }
29 void SetTracksName(const char *n) { fTracksName = n ; }
30 void SetType(Int_t t) { fType = t ; }
04905231 31 void SetEtaRange(Double_t emi, Double_t ema) {fEtaMin = emi; fEtaMax = ema; }
32 void SetPhiRange(Double_t pmi, Double_t pma) {fPhiMin = pmi; fPhiMax = pma; }
48d874ff 33
34 protected:
04905231 35 void FindJets();
36 Bool_t DoInit();
48d874ff 37
900f5135 38 TString fTracksName; // name of track collection
39 TString fCaloName; // name of calo cluster collection
7efbea04 40 TString fJetsName; // name of jet collection
48d874ff 41 Int_t fAlgo; // algo (0==kt, 1==antikt)
42 Double_t fRadius; // jet radius
43 Int_t fType; // jet type (0=all, 1=ch, 2=neutral)
f5f3c8e9 44 Double_t fMinJetTrackPt; // min jet track momentum (applied before clustering)
45 Double_t fMinJetClusPt; // min jet cluster momentum (applied before clustering)
04905231 46 Double_t fPhiMin; // minimum phi for constituents (applied before clustering)
47 Double_t fPhiMax; // maximum phi for constituents (applied before clustering)
48 Double_t fEtaMin; // minimum eta for constituents (applied before clustering)
49 Double_t fEtaMax; // maximum eta for constituents (applied before clustering)
f5f3c8e9 50 Double_t fMinJetArea; // min area to keep jet in output
51 Double_t fMinJetPt; // min jet pt to keep jet in output
04905231 52 Bool_t fIsInit; //!=true if already initialized
53 Bool_t fIsMcPart; //!=true if MC particles are given as input
54 Bool_t fIsEmcPart; //!=true if emcal particles are given as input (for clusters)
48d874ff 55 TClonesArray *fJets; //!jet collection
b65fac7a 56 AliVEvent *fEvent; //!current event
04905231 57 TClonesArray *fTracks; //!tracks collection
58 TClonesArray *fClus; //!cluster collection
48d874ff 59
60 private:
914d486c 61 AliEmcalJetTask(const AliEmcalJetTask&); // not implemented
62 AliEmcalJetTask &operator=(const AliEmcalJetTask&); // not implemented
48d874ff 63
04905231 64 ClassDef(AliEmcalJetTask, 4) // Jet producing task
48d874ff 65};
66#endif