cleanup
[u/mrichter/AliRoot.git] / PWGGA / EMCALJetTasks / AliAnalysisTaskEmcalJet.h
CommitLineData
a546db49 1#ifndef ALIANALYSISTASKEMCALJET_H
2#define ALIANALYSISTASKEMCALJET_H
3
0810af47 4// $Id$
a546db49 5
6class TClonesArray;
7class TString;
8class TList;
9class AliVParticle;
10class AliVCluster;
11class AliEmcalJet;
12
13#include "AliAnalysisTaskEmcal.h"
14
15class AliAnalysisTaskEmcalJet : public AliAnalysisTaskEmcal {
16 public:
17
18 AliAnalysisTaskEmcalJet();
e66fee85 19 AliAnalysisTaskEmcalJet(const char *name, Bool_t histo=kFALSE);
a546db49 20 virtual ~AliAnalysisTaskEmcalJet();
21
1f6fff78 22 virtual void UserExec(Option_t *option);
23 virtual void Init();
24
411b11e0 25 void SetEtaLimits(Float_t min, Float_t max) { fMinEta = min, fMaxEta = max ; }
26 void SetInitialized(Bool_t ini = kTRUE) { fInitialized = ini ; }
a546db49 27 void SetJetAreaCut(Float_t cut) { fJetAreaCut = cut ; }
28 void SetJetPtCut(Float_t cut) { fJetPtCut = cut ; }
29 void SetJetRadius(Float_t r) { fJetRadius = r ; }
30 void SetJetsName(const char *n) { fJetsName = n ; }
411b11e0 31 void SetMaxClusterPt(Float_t b) { fMaxClusterPt = b ; }
32 void SetMaxTrackPt(Float_t b) { fMaxTrackPt = b ; }
33 void SetPhiLimits(Float_t min, Float_t max) { fMinPhi = min, fMaxPhi = max ; }
a546db49 34 void SetPtBiasJetClus(Float_t b) { fPtBiasJetClus = b ; }
35 void SetPtBiasJetTrack(Float_t b) { fPtBiasJetTrack = b ; }
411b11e0 36
a546db49 37 protected:
38
2bddb6ae 39 Bool_t AcceptJet(AliEmcalJet* jet, Bool_t bias = kTRUE, Bool_t upCut = kTRUE) const;
40 Bool_t AcceptBiasJet(AliEmcalJet* jet) const;
41 Bool_t IsJetTrack(AliEmcalJet* jet, Int_t itrack, Bool_t sorted = kTRUE) const;
42 Bool_t IsJetCluster(AliEmcalJet* jet, Int_t iclus, Bool_t sorted = kTRUE) const;
a546db49 43
44 virtual Bool_t RetrieveEventObjects();
45
46 Float_t fJetRadius; // jet radius
47 TString fJetsName; // name of jet collection
48 Float_t fPtBiasJetTrack; // select jets with a minimum pt track
49 Float_t fPtBiasJetClus; // select jets with a minimum pt cluster
50 Float_t fJetPtCut; // cut on jet pt
51 Float_t fJetAreaCut; // cut on jet area
411b11e0 52 Float_t fMinEta; // minimum eta jet acceptance
53 Float_t fMaxEta; // maximum eta jet acceptance
54 Float_t fMinPhi; // minimum phi jet acceptance
55 Float_t fMaxPhi; // maximum phi jet acceptance
56 Float_t fMaxClusterPt; // maximum cluster constituent pt to accept the jet
57 Float_t fMaxTrackPt; // maximum track constituent pt to accept the jet
a546db49 58 TClonesArray *fJets; //!jets
59
60 private:
61 AliAnalysisTaskEmcalJet(const AliAnalysisTaskEmcalJet&); // not implemented
62 AliAnalysisTaskEmcalJet &operator=(const AliAnalysisTaskEmcalJet&); // not implemented
63
00a4f405 64 ClassDef(AliAnalysisTaskEmcalJet, 3) // EMCAL Jet base analysis task
a546db49 65};
66#endif