]>
Commit | Line | Data |
---|---|---|
421b12a3 | 1 | #ifndef AliJetContainer_H |
2 | #define AliJetContainer_H | |
3 | ||
9239b066 | 4 | // $Id$ |
421b12a3 | 5 | |
421b12a3 | 6 | class TClonesArray; |
7 | class TString; | |
6421eeb0 | 8 | |
421b12a3 | 9 | class AliEMCALGeometry; |
10 | class AliEmcalJet; | |
11 | class AliVEvent; | |
6421eeb0 | 12 | class AliParticleContainer; |
13 | class AliClusterContainer; | |
9e5eee5d | 14 | class AliLocalRhoParameter; |
421b12a3 | 15 | |
421b12a3 | 16 | #include "AliRhoParameter.h" |
421b12a3 | 17 | |
6421eeb0 | 18 | #include "AliEmcalContainer.h" |
421b12a3 | 19 | |
20 | class AliJetContainer : public AliEmcalContainer { | |
21 | public: | |
6421eeb0 | 22 | |
421b12a3 | 23 | enum JetAcceptanceType { |
24 | kTPC = 0, // TPC acceptance | |
25 | kEMCAL = 1, // EMCal acceptance | |
4c9493a7 | 26 | kUser = 2 // User defined acceptance |
421b12a3 | 27 | }; |
28 | ||
29 | ||
30 | AliJetContainer(); | |
31 | AliJetContainer(const char *name); | |
6421eeb0 | 32 | virtual ~AliJetContainer() {;} |
421b12a3 | 33 | |
421b12a3 | 34 | void SetEMCALGeometry(); |
35 | void SetEMCALGeometry(AliEMCALGeometry *p) {fGeom = p;} | |
36 | void LoadRho(AliVEvent *event); | |
9e5eee5d | 37 | void LoadLocalRho(AliVEvent *event); |
421b12a3 | 38 | |
39 | void SetJetAcceptanceType(JetAcceptanceType type) { fJetAcceptanceType = type ; } | |
421b12a3 | 40 | void ResetCuts(); |
421b12a3 | 41 | void SetJetEtaPhiEMCAL() ; |
42 | void SetJetEtaPhiTPC() ; | |
56f370b0 | 43 | void SetRunNumber(Int_t r) { fRunNumber = r; } |
421b12a3 | 44 | void SetJetEtaLimits(Float_t min, Float_t max) { fJetMinEta = min, fJetMaxEta = max ; } |
45 | void SetJetPhiLimits(Float_t min, Float_t max) { fJetMinPhi = min, fJetMaxPhi = max ; } | |
7a615dc4 | 46 | void SetJetPtCut(Float_t cut) { fJetPtCut = cut ; } |
47 | void SetJetRadius(Float_t r) { fJetRadius = r ; } | |
421b12a3 | 48 | void SetJetAreaCut(Float_t cut) { fJetAreaCut = cut ; } |
9239b066 | 49 | void SetPercAreaCut(Float_t p) { if(fJetRadius==0.) AliWarning("JetRadius not set. Area cut will be 0"); |
50 | fJetAreaCut = p*TMath::Pi()*fJetRadius*fJetRadius; } | |
7a615dc4 | 51 | void SetAreaEmcCut(Double_t a = 0.99) { fAreaEmcCut = a ; } |
413ab3a3 | 52 | void SetZLeadingCut(Float_t zemc, Float_t zch) { fZLeadingEmcCut = zemc; fZLeadingChCut = zch ; } |
9e5eee5d | 53 | void SetNEFCut(Float_t min = 0., Float_t max = 1.) { fNEFMinCut = min; fNEFMaxCut = max; } |
3c9775d9 | 54 | void SetFlavourCut(Int_t myflavour) { fFlavourSelection = myflavour;} |
421b12a3 | 55 | void SetMaxClusterPt(Float_t b) { fMaxClusterPt = b ; } |
56 | void SetMaxTrackPt(Float_t b) { fMaxTrackPt = b ; } | |
57 | void SetPtBiasJetClus(Float_t b) { fPtBiasJetClus = b ; } | |
58 | void SetNLeadingJets(Int_t t) { fNLeadingJets = t ; } | |
59 | void SetPtBiasJetTrack(Float_t b) { fPtBiasJetTrack = b ; } | |
421b12a3 | 60 | void SetLeadingHadronType(Int_t t) { fLeadingHadronType = t ; } |
61 | void SetJetBitMap(UInt_t m) { fJetBitMap = m ; } | |
6421eeb0 | 62 | void SetJetTrigger(UInt_t t=AliVEvent::kEMCEJE) { fJetTrigger = t ; } |
7a615dc4 | 63 | void SetTagStatus(Int_t i) { fTagStatus = i ; } |
64 | ||
65 | virtual void SetRhoName(const char *n) { fRhoName = n ; } | |
66 | virtual void SetLocalRhoName(const char *n) { fLocalRhoName = n ; } | |
7cd832c7 | 67 | void ConnectParticleContainer(AliParticleContainer *c) { fParticleContainer = c ; } |
68 | void ConnectClusterContainer(AliClusterContainer *c) { fClusterContainer = c ; } | |
ba7663ad | 69 | |
b6f970ad | 70 | AliEmcalJet *GetLeadingJet(const char* opt="") ; |
6421eeb0 | 71 | AliEmcalJet *GetJet(Int_t i) const; |
421b12a3 | 72 | AliEmcalJet *GetAcceptJet(Int_t i) const; |
7cd832c7 | 73 | AliEmcalJet *GetJetWithLabel(Int_t lab) const; |
74 | AliEmcalJet *GetAcceptJetWithLabel(Int_t lab) const; | |
b6f970ad | 75 | AliEmcalJet *GetNextAcceptJet(Int_t i=-1) ; |
7cd832c7 | 76 | AliEmcalJet *GetNextJet(Int_t i=-1) ; |
6421eeb0 | 77 | void GetMomentum(TLorentzVector &mom, Int_t i) const; |
78 | Bool_t AcceptJet(AliEmcalJet* jet) const; | |
3c9775d9 | 79 | Bool_t AcceptBiasJet(AliEmcalJet* jet) const; |
80 | Int_t GetFlavourCut() const {return fFlavourSelection;} | |
421b12a3 | 81 | Int_t GetNJets() const {return GetNEntries();} |
82 | Double_t GetLeadingHadronPt(AliEmcalJet* jet) const; | |
6421eeb0 | 83 | void GetLeadingHadronMomentum(TLorentzVector &mom, AliEmcalJet* jet) const; |
413ab3a3 | 84 | Double_t GetZ(AliEmcalJet *jet, TLorentzVector mom) const; |
85 | Double_t GetZLeadingEmc(AliEmcalJet *jet) const; | |
86 | Double_t GetZLeadingCharged(AliEmcalJet *jet) const; | |
421b12a3 | 87 | AliRhoParameter *GetRhoParameter() {return fRho;} |
3c9775d9 | 88 | Double_t GetRhoVal() const {if (fRho) return fRho->GetVal(); else return 0;} |
421b12a3 | 89 | const TString& GetRhoName() const {return fRhoName;} |
9e5eee5d | 90 | AliLocalRhoParameter *GetLocalRhoParameter() const {return fLocalRho;} |
91 | const TString& GetLocalRhoName() const {return fLocalRhoName;} | |
421b12a3 | 92 | Double_t GetJetPtCorr(Int_t i) const; |
9e5eee5d | 93 | Double_t GetJetPtCorrLocal(Int_t i) const; |
56f370b0 | 94 | Float_t GetJetRadius() const {return fJetRadius;} |
4c9493a7 | 95 | Float_t GetJetEtaMin() const {return fJetMinEta;} |
96 | Float_t GetJetEtaMax() const {return fJetMaxEta;} | |
97 | Float_t GetJetPhiMin() const {return fJetMinPhi;} | |
98 | Float_t GetJetPhiMax() const {return fJetMaxPhi;} | |
b6f970ad | 99 | void SetClassName(const char *clname); |
100 | void SetArray(AliVEvent *event); | |
7cd832c7 | 101 | AliParticleContainer *GetParticleContainer() {return fParticleContainer;} |
102 | AliClusterContainer *GetClusterContainer() {return fClusterContainer;} | |
ba7663ad | 103 | Double_t GetFractionSharedPt(AliEmcalJet *jet) const; |
421b12a3 | 104 | |
105 | protected: | |
106 | JetAcceptanceType fJetAcceptanceType; // acceptance type | |
107 | Float_t fJetRadius; // jet radius | |
108 | TString fRhoName; // Name of rho object | |
9e5eee5d | 109 | TString fLocalRhoName; // Name of local rho object |
3c9775d9 | 110 | Int_t fFlavourSelection; // selection on jet flavour |
421b12a3 | 111 | Float_t fPtBiasJetTrack; // select jets with a minimum pt track |
112 | Float_t fPtBiasJetClus; // select jets with a minimum pt cluster | |
113 | Float_t fJetPtCut; // cut on jet pt | |
114 | Float_t fJetAreaCut; // cut on jet area | |
115 | Float_t fAreaEmcCut; // minimum cut on jet emcal area | |
116 | Float_t fJetMinEta; // minimum eta jet acceptance | |
117 | Float_t fJetMaxEta; // maximum eta jet acceptance | |
118 | Float_t fJetMinPhi; // minimum phi jet acceptance | |
119 | Float_t fJetMaxPhi; // maximum phi jet acceptance | |
120 | Float_t fMaxClusterPt; // maximum cluster constituent pt to accept the jet | |
121 | Float_t fMaxTrackPt; // maximum track constituent pt to accept the jet | |
413ab3a3 | 122 | Float_t fZLeadingEmcCut; // maximum z,leading neutral |
123 | Float_t fZLeadingChCut; // maximum z,leading charged | |
9e5eee5d | 124 | Float_t fNEFMinCut; // minimum NEF in a jet |
125 | Float_t fNEFMaxCut; // maximum NEF in a jet | |
421b12a3 | 126 | Int_t fLeadingHadronType; // 0 = charged, 1 = neutral, 2 = both |
127 | Int_t fNLeadingJets; // how many jets are to be considered the leading jet(s) | |
128 | UInt_t fJetBitMap; // bit map of accepted jets | |
6421eeb0 | 129 | UInt_t fJetTrigger; // jet trigger |
7a615dc4 | 130 | Int_t fTagStatus; // jet tag status |
7cd832c7 | 131 | AliParticleContainer *fParticleContainer; // particle container (jet constituents) |
132 | AliClusterContainer *fClusterContainer; // cluster container (jet constituents) | |
6421eeb0 | 133 | AliRhoParameter *fRho; //! event rho for these jets |
9e5eee5d | 134 | AliLocalRhoParameter *fLocalRho; //! event local rho for these jets |
6421eeb0 | 135 | AliEMCALGeometry *fGeom; //! emcal geometry |
136 | Int_t fRunNumber; //! run number | |
421b12a3 | 137 | |
138 | private: | |
139 | AliJetContainer(const AliJetContainer& obj); // copy constructor | |
140 | AliJetContainer& operator=(const AliJetContainer& other); // assignment | |
141 | ||
7a615dc4 | 142 | ClassDef(AliJetContainer,8); |
421b12a3 | 143 | |
144 | }; | |
145 | ||
146 | #endif |