8 |
|
// Authors: C.Loizides |
9 |
|
//-------------------------------------------------------------------------------------------------- |
10 |
|
|
11 |
< |
#ifndef DATATREE_JET_H |
12 |
< |
#define DATATREE_JET_H |
11 |
> |
#ifndef MITANA_DATATREE_JET_H |
12 |
> |
#define MITANA_DATATREE_JET_H |
13 |
|
|
14 |
|
#include "MitAna/DataTree/interface/Particle.h" |
15 |
|
#include "MitAna/DataTree/interface/Track.h" |
16 |
+ |
#include "MitAna/DataTree/interface/CaloTower.h" |
17 |
|
|
18 |
|
namespace mithep |
19 |
|
{ |
32 |
|
~Jet() {} |
33 |
|
|
34 |
|
FourVector Mom() const { return fMom; } |
34 |
– |
|
35 |
|
Double_t Charge() const { return 0; } |
36 |
|
Double_t MaxEInEmTowers() const { return fMaxEInEmTowers; } |
37 |
|
Double_t MaxEInHadTowers() const { return fMaxEInHadTowers; } |
44 |
|
Double_t EmEnergyInHF() const { return fEmEnergyInHF; } |
45 |
|
Double_t EnergyFractionH() const { return fEnergyFractionH; } |
46 |
|
Double_t EnergyFractionEm() const { return fEnergyFractionEm; } |
47 |
+ |
const CaloTower *Tower(UInt_t i) const { return fTowers.At(i); } |
48 |
|
Double_t TowersArea() const { return fTowersArea; } |
49 |
|
UShort_t N() const { return fN; } |
50 |
|
UShort_t N60() const { return fN60; } |
51 |
|
UShort_t N90() const { return fN90; } |
52 |
+ |
UInt_t NTowers() const { return fTowers.GetEntries(); } |
53 |
|
Int_t MatchedMCFlavor() const { return fMatchedMCFlavor; } |
54 |
< |
|
54 |
> |
Double_t JetProbabilityBJetTagsDisc() const |
55 |
> |
{ return fJetProbabilityBJetTagsDisc; } |
56 |
> |
Double_t JetBProbabilityBJetTagsDisc() const |
57 |
> |
{ return fJetBProbabilityBJetTagsDisc; } |
58 |
> |
Double_t SimpleSecondaryVertexBJetTagsDisc() const |
59 |
> |
{ return fSimpleSecondaryVertexBJetTagsDisc; } |
60 |
> |
Double_t CombinedSecondaryVertexBJetTagsDisc() const |
61 |
> |
{ return fCombinedSecondaryVertexBJetTagsDisc; } |
62 |
> |
Double_t CombinedSecondaryVertexMVABJetTagsDisc() const |
63 |
> |
{ return fCombinedSecondaryVertexMVABJetTagsDisc; } |
64 |
> |
Double_t ImpactParameterMVABJetTagsDisc() const |
65 |
> |
{ return fImpactParameterMVABJetTagsDisc; } |
66 |
> |
Double_t TrackCountingHighEffBJetTagsDisc() const |
67 |
> |
{ return fTrackCountingHighEffBJetTagsDisc; } |
68 |
> |
Double_t TrackCountingHighPurBJetTagsDisc() const |
69 |
> |
{ return fTrackCountingHighPurBJetTagsDisc; } |
70 |
> |
Double_t SoftMuonBJetTagsDisc() const |
71 |
> |
{ return fSoftMuonBJetTagsDisc; } |
72 |
> |
Double_t SoftMuonNoIPBJetTagsDisc() const |
73 |
> |
{ return fSoftMuonNoIPBJetTagsDisc; } |
74 |
> |
Double_t SoftElectronBJetTagsDisc() const |
75 |
> |
{ return fSoftElectronBJetTagsDisc; } |
76 |
> |
void AddTower(CaloTower *tower) { fTowers.Add(tower); } |
77 |
|
void SetMaxEInEmTowers(Double_t val) { fMaxEInEmTowers = val; } |
78 |
|
void SetMaxEInHadTowers(Double_t val) { fMaxEInHadTowers = val; } |
79 |
|
void SetHadEnergyInHO(Double_t val) { fHadEnergyInHO = val; } |
90 |
|
void SetN60(UShort_t n) { fN60 = n; } |
91 |
|
void SetN90(UShort_t n) { fN90 = n; } |
92 |
|
void SetMatchedMCFlavor(Int_t flavor) { fMatchedMCFlavor = flavor; } |
93 |
< |
|
93 |
> |
void SetJetProbabilityBJetTagsDisc ( Double_t d ) { fJetProbabilityBJetTagsDisc = d; } |
94 |
> |
void SetJetBProbabilityBJetTagsDisc ( Double_t d ) { fJetBProbabilityBJetTagsDisc = d; } |
95 |
> |
void SetSimpleSecondaryVertexBJetTagsDisc ( Double_t d ) |
96 |
> |
{ fSimpleSecondaryVertexBJetTagsDisc = d; } |
97 |
> |
void SetCombinedSecondaryVertexBJetTagsDisc ( Double_t d ) |
98 |
> |
{ fCombinedSecondaryVertexBJetTagsDisc = d; } |
99 |
> |
void SetCombinedSecondaryVertexMVABJetTagsDisc ( Double_t d ) |
100 |
> |
{ fCombinedSecondaryVertexMVABJetTagsDisc = d; } |
101 |
> |
void SetImpactParameterMVABJetTagsDisc ( Double_t d ) |
102 |
> |
{ fImpactParameterMVABJetTagsDisc = d; } |
103 |
> |
void SetTrackCountingHighEffBJetTagsDisc ( Double_t d ) |
104 |
> |
{ fTrackCountingHighEffBJetTagsDisc = d; } |
105 |
> |
void SetTrackCountingHighPurBJetTagsDisc ( Double_t d ) |
106 |
> |
{ fTrackCountingHighPurBJetTagsDisc = d; } |
107 |
> |
void SetSoftMuonBJetTagsDisc ( Double_t d ) { fSoftMuonBJetTagsDisc = d; } |
108 |
> |
void SetSoftMuonNoIPBJetTagsDisc ( Double_t d ) { fSoftMuonNoIPBJetTagsDisc = d; } |
109 |
> |
void SetSoftElectronBJetTagsDisc ( Double_t d ) { fSoftElectronBJetTagsDisc = d; } |
110 |
> |
|
111 |
|
protected: |
112 |
|
FourVector fMom; //four momentum of jet |
113 |
< |
Double32_t fMaxEInEmTowers; //maximum energy in EM towers |
114 |
< |
Double32_t fMaxEInHadTowers; //maximum energy in HCAL towers |
115 |
< |
Double32_t fEnergyFractionH; //hadronic energy fraction |
116 |
< |
Double32_t fEnergyFractionEm; //electromagnetic energy fraction |
117 |
< |
Double32_t fHadEnergyInHB; //hadronic energy in HB |
118 |
< |
Double32_t fHadEnergyInHO; //hadronic energy in HO |
119 |
< |
Double32_t fHadEnergyInHE; //hadronic energy in HE |
120 |
< |
Double32_t fHadEnergyInHF; //hadronic energy in HF |
121 |
< |
Double32_t fEmEnergyInEB; //electromagnetic energy in EB |
122 |
< |
Double32_t fEmEnergyInEE; //electromagnetic energy in EE |
123 |
< |
Double32_t fEmEnergyInHF; //electromagnetic energy extracted from HF |
124 |
< |
Double32_t fTowersArea; //area of contributing towers |
113 |
> |
Double_t fMaxEInEmTowers; //maximum energy in EM towers |
114 |
> |
Double_t fMaxEInHadTowers; //maximum energy in HCAL towers |
115 |
> |
Double_t fEnergyFractionH; //hadronic energy fraction |
116 |
> |
Double_t fEnergyFractionEm; //electromagnetic energy fraction |
117 |
> |
Double_t fHadEnergyInHB; //hadronic energy in HB |
118 |
> |
Double_t fHadEnergyInHO; //hadronic energy in HO |
119 |
> |
Double_t fHadEnergyInHE; //hadronic energy in HE |
120 |
> |
Double_t fHadEnergyInHF; //hadronic energy in HF |
121 |
> |
Double_t fEmEnergyInEB; //electromagnetic energy in EB |
122 |
> |
Double_t fEmEnergyInEE; //electromagnetic energy in EE |
123 |
> |
Double_t fEmEnergyInHF; //electromagnetic energy extracted from HF |
124 |
> |
Double_t fTowersArea; //area of contributing towers |
125 |
|
UShort_t fN; //number of constituents |
126 |
|
UShort_t fN60; //number constituents with 60% of total energy |
127 |
|
UShort_t fN90; //number constituents with 90% of total energy |
128 |
< |
Int_t fMatchedMCFlavor; //pdgID of the quark flavor that the jet matched to |
128 |
> |
Int_t fMatchedMCFlavor; //pdgID of the quark flavor that the jet matched to |
129 |
> |
Double_t fJetProbabilityBJetTagsDisc; //Discriminants for various b-tagging |
130 |
> |
Double_t fJetBProbabilityBJetTagsDisc; //algorithms |
131 |
> |
Double_t fSimpleSecondaryVertexBJetTagsDisc; |
132 |
> |
Double_t fCombinedSecondaryVertexBJetTagsDisc; |
133 |
> |
Double_t fCombinedSecondaryVertexMVABJetTagsDisc; |
134 |
> |
Double_t fImpactParameterMVABJetTagsDisc; |
135 |
> |
Double_t fTrackCountingHighEffBJetTagsDisc; |
136 |
> |
Double_t fTrackCountingHighPurBJetTagsDisc; |
137 |
> |
Double_t fSoftMuonBJetTagsDisc; |
138 |
> |
Double_t fSoftMuonNoIPBJetTagsDisc; |
139 |
> |
Double_t fSoftElectronBJetTagsDisc; |
140 |
> |
|
141 |
> |
RefArray<CaloTower> fTowers; //||CaloTowers in this jet |
142 |
|
|
143 |
|
ClassDef(Jet, 1) // Jet class |
144 |
|
}; |