1 |
#ifndef VHbbEvent__H
|
2 |
#define VHbbEvent__H
|
3 |
|
4 |
#include <TLorentzVector.h>
|
5 |
#include <TVector2.h>
|
6 |
#include <vector>
|
7 |
|
8 |
class VHbbEvent{
|
9 |
public:
|
10 |
|
11 |
|
12 |
class SimpleJet {
|
13 |
public:
|
14 |
SimpleJet(): flavour(-99), isSemiLept(-99), isSemiLeptMCtruth(-99), SoftLeptpdgId(-99), SoftLeptIdlooseMu(-99), SoftLeptId95(-99), SoftLeptPt(-99), SoftLeptdR(-99), SoftLeptptRel(-99), SoftLeptRelCombIso(-99), tche(-99), tchp(-99), jpb(-99), jp(-99),
|
15 |
ssvhe(-99), csv(-99), csvmva(-99), csvivf(-99), cmva(-99),
|
16 |
vtxMass(-99), vtx3dL(-99), vtx3deL(-99), vtxNTracks(-99), vtxProb(-99),
|
17 |
ntracks(-99), charge(-99),jecunc(-99),
|
18 |
chargedHadronEFraction(-99), neutralHadronEFraction(-99), chargedEmEFraction(-99), neutralEmEFraction(-99),nConstituents(-99), ptRaw(-99), ptLeadTrack(-99), jetArea(-99),
|
19 |
bestMCid(-99), bestMCmomid(-99),
|
20 |
puJetIdL(-99), puJetIdM(-99), puJetIdT(-99), puJetIdMva(-99) {}
|
21 |
public:
|
22 |
double Pt() {return p4.Pt();}
|
23 |
int flavour, isSemiLept, isSemiLeptMCtruth, SoftLeptpdgId , SoftLeptIdlooseMu, SoftLeptId95;
|
24 |
float SoftLeptPt, SoftLeptdR, SoftLeptptRel, SoftLeptRelCombIso;
|
25 |
float tche,tchp, jpb,jp , ssvhe, csv, csvmva,csvivf,cmva;
|
26 |
// CSV vertex info
|
27 |
float vtxMass, vtx3dL, vtx3deL, vtxNTracks, vtxProb;
|
28 |
TVector3 vtxPosition;
|
29 |
TLorentzVector vtxP4;
|
30 |
std::vector<unsigned int> vtxTrackIds, btagTrackIds, csvTrackIds;
|
31 |
int csvNTracks, btagNTracks;
|
32 |
int ntracks;
|
33 |
float charge;
|
34 |
TLorentzVector p4;
|
35 |
TLorentzVector chargedTracksFourMomentum;
|
36 |
|
37 |
// jec uncertainty
|
38 |
|
39 |
float jecunc;
|
40 |
// energy fractions as in
|
41 |
/* //chargedHadronEnergyFraction (relative to uncorrected jet energy)
|
42 |
float chargedHadronEnergyFraction() const {return chargedHadronEnergy()/((jecSetsAvailable() ? jecFactor(0) : 1.)*energy());}
|
43 |
/// neutralHadronEnergyFraction (relative to uncorrected jet energy)
|
44 |
float neutralHadronEnergyFraction() const {return neutralHadronEnergy()/((jecSetsAvailable() ? jecFactor(0) : 1.)*energy());}
|
45 |
/// chargedEmEnergyFraction (relative to uncorrected jet energy)
|
46 |
float chargedEmEnergyFraction() const {return chargedEmEnergy()/((jecSetsAvailable() ? jecFactor(0) : 1.)*energy());}
|
47 |
/// neutralEmEnergyFraction (relative to uncorrected jet energy)
|
48 |
float neutralEmEnergyFraction() const {return neutralEmEnergy()/((jecSetsAvailable() ? jecFactor(0) : 1.)*energy());}
|
49 |
*/
|
50 |
|
51 |
float chargedHadronEFraction, neutralHadronEFraction, chargedEmEFraction, neutralEmEFraction;
|
52 |
int nConstituents;
|
53 |
float ptRaw,ptLeadTrack;
|
54 |
float jetArea;
|
55 |
|
56 |
//MC parton matching
|
57 |
TLorentzVector bestMCp4,bestMCp4mom;
|
58 |
int bestMCid, bestMCmomid;
|
59 |
// new
|
60 |
TVector2 tVector;
|
61 |
//Scale factor
|
62 |
float SF_CSVL;
|
63 |
float SF_CSVM;
|
64 |
float SF_CSVT;
|
65 |
float SF_CSVLerr;
|
66 |
float SF_CSVMerr;
|
67 |
float SF_CSVTerr;
|
68 |
// puJet Id
|
69 |
float puJetIdL, puJetIdM, puJetIdT, puJetIdMva;
|
70 |
|
71 |
};
|
72 |
|
73 |
|
74 |
class HardJet {
|
75 |
public:
|
76 |
HardJet(): constituents(-99){}
|
77 |
public:
|
78 |
int constituents;
|
79 |
TLorentzVector p4;
|
80 |
std::vector<TLorentzVector> subFourMomentum;
|
81 |
std::vector<float> etaSub, phiSub;
|
82 |
};
|
83 |
|
84 |
class RawJet {
|
85 |
public:
|
86 |
RawJet(): Nconstituents(-99){}
|
87 |
public:
|
88 |
int Nconstituents;
|
89 |
std::vector<float> constituents_px;
|
90 |
std::vector<float> constituents_py;
|
91 |
std::vector<float> constituents_pz;
|
92 |
std::vector<float> constituents_e;
|
93 |
std::vector<float> constituents_pdgId;
|
94 |
TLorentzVector p4;
|
95 |
// std::vector<TLorentzVector> subFourMomentum;
|
96 |
// std::vector<float> etaSub, phiSub;
|
97 |
};
|
98 |
|
99 |
class METInfo {
|
100 |
public:
|
101 |
METInfo(): sumEt(-99), metSig(-99), eLong(-99){}
|
102 |
public:
|
103 |
float sumEt, metSig, eLong;
|
104 |
TLorentzVector p4;
|
105 |
};
|
106 |
|
107 |
class MuonInfo {
|
108 |
public:
|
109 |
MuonInfo(): charge(-99),tIso(-99), eIso(-99), hIso(-99),pfChaIso(-99),pfChaPUIso(99), pfPhoIso(-99), pfNeuIso(-99),
|
110 |
acop(-99), ipDb(-99), ipErrDb(-99), zPVPt(-99),zPVProb(-99), chi2(-99), globChi2(-99),
|
111 |
cat(-99), nValidTracker(-99), nValidPixel(-99), nMatches(-99),nHits(-99), nPixelHits(-99), globNHits(-99),validMuStations(-99),emEnergy(-99), hadEnergy(-99),nValidLayers(-99),isPF(-99),
|
112 |
mcId(-99), mcMomId(-99), mcgMomId(-99){}
|
113 |
public:
|
114 |
TLorentzVector p4;
|
115 |
int charge;
|
116 |
float tIso, eIso, hIso, pfChaIso,pfChaPUIso, pfPhoIso,pfNeuIso,acop, ipDb, ipErrDb, zPVPt,zPVProb, chi2, globChi2;
|
117 |
int cat, nValidTracker, nValidPixel, nMatches,nHits, nPixelHits, globNHits, validMuStations;
|
118 |
float emEnergy, hadEnergy;
|
119 |
TLorentzVector mcFourMomentum;
|
120 |
int mcId, mcMomId, mcgMomId;
|
121 |
int isPF,nValidLayers;
|
122 |
std::vector< int > hltMatchedBits;
|
123 |
};
|
124 |
|
125 |
class ElectronInfo {
|
126 |
public:
|
127 |
ElectronInfo() : scEta(-99), scPhi(-99), charge(-99),
|
128 |
tIso(-99), eIso(-99), hIso(-99),pfChaIso(-99),pfChaPUIso(-99), pfPhoIso(-99), pfNeuIso(-99), acop(-99),
|
129 |
sihih(-99), Dphi(-99), Deta(-99), HoE(-99), convDist(-99), convDcot(-99), innerHits(-99),
|
130 |
isEB(false),isEE(false),
|
131 |
ipDb(-99), ipErrDb(-99),
|
132 |
id95(-99),id85(-99),id80(-99),id70(-99),
|
133 |
id95r(-99),id85r(-99),id80r(-99),id70r(-99),
|
134 |
mcId(-99), mcMomId(-99), mcgMomId (-99),
|
135 |
dxy(-99), dz(-99),pfPhoIsoDoubleCounted(-99),
|
136 |
//MVA ELEID 2012 input vars (keep same names to make life easier in integrating with MVA evaluation code
|
137 |
fMVAVar_EoP(-99), fMVAVar_HoE(-99), fMVAVar_IoEmIoP(-99), fMVAVar_PreShowerOverRaw(-99), fMVAVar_R9(-99), fMVAVar_d0(-99), fMVAVar_deta(-99), fMVAVar_detacalo(-99), fMVAVar_dphi(-99), fMVAVar_e1x5e5x5(-99), fMVAVar_eleEoPout(-99), fMVAVar_eta(-99), fMVAVar_etawidth(-99), fMVAVar_fbrem(-99), fMVAVar_gsfchi2(-99), fMVAVar_ip3d(-99), fMVAVar_kfchi2(-99), fMVAVar_kfhits(-99), fMVAVar_phiwidth(-99), fMVAVar_pt(-99), fMVAVar_see(-99), fMVAVar_spp(-99), mvaOut(-99),mvaOutTrig(-99)
|
138 |
{}
|
139 |
public:
|
140 |
TLorentzVector p4;
|
141 |
float scEta, scPhi;
|
142 |
int charge;
|
143 |
float tIso, eIso, hIso, pfChaIso,pfChaPUIso, pfPhoIso,pfNeuIso, acop;
|
144 |
float sihih, Dphi, Deta, HoE, convDist, convDcot;
|
145 |
int innerHits;
|
146 |
bool isEB,isEE;
|
147 |
float ipDb, ipErrDb, dxy,dz;
|
148 |
float pfPhoIsoDoubleCounted;
|
149 |
float id95,id85,id80,id70,id95r, id85r,id80r, id70r;
|
150 |
float fMVAVar_EoP, fMVAVar_HoE, fMVAVar_IoEmIoP, fMVAVar_PreShowerOverRaw, fMVAVar_R9, fMVAVar_d0, fMVAVar_deta, fMVAVar_detacalo, fMVAVar_dphi, fMVAVar_e1x5e5x5, fMVAVar_eleEoPout, fMVAVar_eta, fMVAVar_etawidth, fMVAVar_fbrem, fMVAVar_gsfchi2, fMVAVar_ip3d, fMVAVar_kfchi2, fMVAVar_kfhits, fMVAVar_phiwidth, fMVAVar_pt, fMVAVar_see, fMVAVar_spp, mvaOut,mvaOutTrig;
|
151 |
TLorentzVector mcFourMomentum;
|
152 |
int mcId, mcMomId, mcgMomId;
|
153 |
std::vector< int > hltMatchedBits;
|
154 |
};
|
155 |
|
156 |
class TauInfo{
|
157 |
public:
|
158 |
TauInfo() : charge(-99), tIso(-99), eIso(-99), hIso(-99),pfChaIso(-99), pfChaPUIso(-99),pfPhoIso(-99), pfNeuIso(-99), acop(-99),
|
159 |
byIsolation(-99),trackIsolation(-99),byTaNCfrOnePercent(-99),
|
160 |
byTaNCfrHalfPercent(-99), byTaNCfrQuarterPercent(-99),
|
161 |
byTaNCfrTenthPercent(-99), byTaNC(-99), mcId(-99), mcMomId(-99), mcgMomId(-99),
|
162 |
againstElectronLoose(-99), againstElectronMedium(-99), againstElectronTight(-99), againstMuonLoose(-99), againstMuonTight(-99),
|
163 |
byLooseIsolation(-99), byMediumIsolation(-99), byTightIsolation(-99), byVLooseIsolation(-99), decayModeFinding(-99),
|
164 |
isolationPFChargedHadrCandsPtSum(-999999.), isolationPFGammaCandsEtSum(-999999.),leadPFChargedHadrCandPt(-999999.),
|
165 |
NsignalPFChargedHadrCands (-99),NsignalPFGammaCands(-99), byLooseCombinedIsolationDeltaBetaCorr(-99), againstElectronMVA(-99) {}
|
166 |
public:
|
167 |
TLorentzVector p4;
|
168 |
int charge;
|
169 |
float tIso, eIso, hIso,pfChaIso,pfChaPUIso,pfPhoIso,pfNeuIso, acop;
|
170 |
float byIsolation,trackIsolation,byTaNCfrOnePercent,byTaNCfrHalfPercent, byTaNCfrQuarterPercent, byTaNCfrTenthPercent, byTaNC;
|
171 |
int mcId, mcMomId, mcgMomId;
|
172 |
float againstElectronLoose, againstElectronMedium, againstElectronTight, againstMuonLoose, againstMuonTight;
|
173 |
float byLooseIsolation, byMediumIsolation, byTightIsolation, byVLooseIsolation, decayModeFinding;
|
174 |
|
175 |
float isolationPFChargedHadrCandsPtSum,isolationPFGammaCandsEtSum,leadPFChargedHadrCandPt;
|
176 |
int NsignalPFChargedHadrCands, NsignalPFGammaCands;
|
177 |
float byLooseCombinedIsolationDeltaBetaCorr, againstElectronMVA;
|
178 |
|
179 |
|
180 |
TLorentzVector mcFourMomentum;
|
181 |
};
|
182 |
|
183 |
|
184 |
class DiMuonInfo {
|
185 |
public:
|
186 |
TLorentzVector p4;
|
187 |
MuonInfo daughter1, daughter2;
|
188 |
};
|
189 |
|
190 |
|
191 |
class DiElectronInfo {
|
192 |
public:
|
193 |
TLorentzVector p4;
|
194 |
ElectronInfo daughter1, daughter2;
|
195 |
};
|
196 |
|
197 |
|
198 |
|
199 |
public:
|
200 |
std::vector<SimpleJet> simpleJets;
|
201 |
std::vector<SimpleJet> simpleJets2; //???
|
202 |
std::vector<SimpleJet> simpleJets3;
|
203 |
std::vector<SimpleJet> simpleJets4; //???
|
204 |
std::vector<SimpleJet> subJets; //???
|
205 |
std::vector<SimpleJet> filterJets; //???
|
206 |
std::vector<HardJet> hardJets;
|
207 |
// std::vector<RawJet> rawJets;
|
208 |
// std::vector<RawJet> rawJetsGen;
|
209 |
|
210 |
std::vector<HardJet> CAmdft12;
|
211 |
std::vector<SimpleJet> CAmdft12_subjets;
|
212 |
std::vector<SimpleJet> CApr12_subjets;
|
213 |
std::vector<SimpleJet> CAft12_subjets;
|
214 |
std::vector<RawJet> CA12wConstits;
|
215 |
std::vector<RawJet> CA12wConstitsGen;
|
216 |
|
217 |
METInfo calomet;
|
218 |
METInfo tcmet;
|
219 |
METInfo pfmet;
|
220 |
METInfo pfmetType1corr;
|
221 |
METInfo pfmetType1p2corr;
|
222 |
METInfo pfmetNoPUType1corr;
|
223 |
METInfo pfmetNoPUType1p2corr;
|
224 |
METInfo mht;
|
225 |
METInfo metNoPU;
|
226 |
METInfo metCh;
|
227 |
std::vector<METInfo> metUncInfo;
|
228 |
|
229 |
std::vector<MuonInfo> muInfo;
|
230 |
std::vector<ElectronInfo> eleInfo;
|
231 |
std::vector<TauInfo> tauInfo;
|
232 |
|
233 |
std::vector<DiMuonInfo> diMuonInfo;
|
234 |
std::vector<DiElectronInfo> diElectronInfo;
|
235 |
|
236 |
// HiggsCandidate dijetHiggs;
|
237 |
// HiggsCandidate fatjetHiggs;
|
238 |
|
239 |
// to be decided.. one single or many V?
|
240 |
// VCandidate vcand;
|
241 |
// WCandidate wele;
|
242 |
// WCandidate wmu;
|
243 |
//WCandidate wtau;
|
244 |
// ZCandidate zmu;
|
245 |
// ZCandidate zele;
|
246 |
//ZInvCandidate znunu;
|
247 |
|
248 |
//
|
249 |
// really needed????
|
250 |
//
|
251 |
|
252 |
};
|
253 |
#endif
|