ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HbbAnalysis/interface/Objects.hh
Revision: 1.3
Committed: Tue Oct 13 12:14:04 2009 UTC (15 years, 6 months ago) by amagnan
Content type: text/plain
Branch: MAIN
Changes since 1.2: +6 -0 lines
Log Message:
add innerTrack IPd0, IPdz and nHits info for muons.

File Contents

# Content
1 #ifndef HbbAnalysis_Objects_hh
2 #define HbbAnalysis_Objects_hh
3
4 #include <vector>
5 #include <string>
6 #include <iostream>
7
8 #include "TLorentzVector.h"
9
10 namespace HbbAnalysis {
11
12 struct MCVars {
13 unsigned int index;
14 double E;
15 double pT;
16 double eta;
17 double phi;
18 int pdgId;
19 int status;
20 };
21
22 struct GenVars {
23 bool valid;
24 double E;
25 double pT;
26 double eta;
27 double phi;
28 int charge;
29 int pdgId;
30 int status;
31 double mass;
32 double vx;
33 double vy;
34 double vz;
35 };
36
37 struct BaseVars {
38 double E;
39 double pT;
40 double eta;
41 double phi;
42 float charge;
43 double vx;
44 double vy;
45 double vz;
46 };
47
48 struct SCVars {
49 float sigmaEtaEta;
50 float sigmaIEtaIEta;
51 float e1x5;
52 float e2x5Max;
53 float e5x5;
54 float eOverP;
55 };
56
57 struct EleIsoVars {
58 float calo;
59 float track;
60 float ecal;
61 float hcal;
62 };
63
64 struct EleIDVars{
65 std::vector<std::pair<std::string,float> > electronIDs;
66 float hOverE;
67 float deltaPhiIn;
68 float deltaEtaIn;
69 };
70
71 struct MuTrkVars {
72 float IPd0;
73 float IPdz;
74 unsigned int nHits;
75 };
76
77 struct MuIsoVars {
78 float sumPt;
79 float emEt;
80 float hadEt;
81 float nTracks;
82 float nJets;
83 };
84
85 struct MuIDVars{
86 unsigned short type;
87 std::vector<unsigned short> ids;
88 float caloCompat;
89 float segCompat;
90 unsigned int nChambers;
91 unsigned int nMatchesLoose;
92 unsigned int nMatchesMedium;
93 unsigned int nMatchesTight;
94 };
95
96 struct TauLeadTrkVars{
97 double pT;
98 double eta;
99 double phi;
100 double matchDist;
101 double IPxy;
102 double IPz;
103 float signedSipt;
104 };
105
106 struct CaloTauIsoVars{
107 unsigned int nIsoTracks;
108 unsigned int nSigTracks;
109 float leadTrackHCAL3x3hitsEtSum;
110 float leadTrackHCAL3x3hottesthitDEta;
111 float signalTracksInvariantMass;
112 float tracksInvariantMass;
113 float isolationTracksPtSum;
114 float isolationECALhitsEtSum;
115 float maximumHCALhitEt;
116 };
117
118 struct CaloTauIDVars{
119 float byIsolation;
120 float byLeadingTrackFinding;
121 float byLeadingTrackPtCut;
122 };
123
124 struct PFTauIsoVars{
125 unsigned int nSigCands;
126 unsigned int nIsoCands;
127 double maximumHCALPFClusterEt;
128 //double emFraction;
129 double hcalTotOverPLead;
130 double hcalMaxOverPLead;
131 double hcal3x3OverPLead;
132 double ecalStripSumEOverPLead;
133 double bremsRecoveryEOverPLead;
134 };
135
136 //for hadr, neutr and gamma cands
137 struct PFTauCandVars{
138 unsigned int nSigCands;
139 unsigned int nIsoCands;
140 double isolationPtSum;
141 };
142
143 struct PFTauIDVars{
144 float byLeadingTrackFinding;
145 float byLeadingTrackPtCut;
146 float byTrackIsolation;
147 float byECALIsolation;
148 float byIsolation;
149 float againstElectron;
150 float againstMuon;
151 };
152
153 struct PFTauEleIDVars{
154 double pT;
155 double eta;
156 double phi;
157 float output;
158 float decision;
159 };
160
161 struct PFTauMuIDVars{
162 float caloCompat;
163 float segCompat;
164 float decision;
165 };
166
167 struct JetVars{
168 //1=had, 2=e, 3=mu for heavy quarks;
169 //2=uds, 3=g for light quarks
170 unsigned int flavour;
171 int partonFlavour;
172 unsigned int nAssociatedTracks;
173 double rawpT;
174 //double rawEta;
175 //double rawPhi;
176 };
177
178 struct CaloJetVars{
179 double maxEInEmTowers;
180 double maxEInHadTowers;
181 double energyFractionHadronic;
182 double emEnergyFraction;
183 double hadEnergyInHB;
184 double hadEnergyInHO;
185 double hadEnergyInHE;
186 double hadEnergyInHF;
187 double emEnergyInEB;
188 double emEnergyInEE;
189 double emEnergyInHF;
190 double towersArea;
191 double n90;
192 double n60;
193 };
194
195 struct PFJetVars{
196 double chargedHadronEnergy;
197 double chargedHadronEnergyFraction;
198 double neutralHadronEnergy;
199 double neutralHadronEnergyFraction;
200 double chargedEmEnergy;
201 double chargedEmEnergyFraction;
202 double chargedMuEnergy;
203 double chargedMuEnergyFraction;
204 double neutralEmEnergy;
205 double neutralEmEnergyFraction;
206 double chargedMultiplicity;
207 double neutralMultiplicity;
208 double muonMultiplicity;
209 };
210
211 struct JetBtagVars{
212 double cSV;
213 double cSVMVA;
214 double iPMVA;
215 double bProba;
216 double probability;
217 double sSV;
218 double softElectron;
219 double softMuon;
220 double softMuonNoIP;
221 double tCHE;
222 double tCHP;
223 };
224
225 struct MetVars{
226 double mET;
227 double mEx;
228 double mEy;
229 double sumET;
230 double phi;
231 double mEtSig;
232 };
233
234 struct TriggerVars{
235 std::string name;
236 unsigned int index;
237 bool accept;
238 };
239
240 double DeltaPhi(const double phi1, const double phi2);
241
242 double DeltaR(const BaseVars & v1, const BaseVars & v2);
243
244 double SameSign(const BaseVars & v1, const BaseVars & v2);
245
246 double OppSign(const BaseVars & v1, const BaseVars & v2);
247
248 TLorentzVector FourMomentum(const BaseVars & v, const double scale=1) ;
249
250 double TransverseMass(const BaseVars & leg1,
251 const BaseVars & leg2,
252 const double mEx,
253 const double mEy);
254
255 double TransverseMass(const BaseVars & leg1,
256 const double mEx,
257 const double mEy);
258
259 TLorentzVector FourMomentumCDFmethod(const BaseVars & leg1,
260 const BaseVars & leg2,
261 double mEx,
262 double mEy);
263
264 TLorentzVector FourMomentumCollinearApprox(const BaseVars & leg1,
265 const BaseVars & leg2,
266 double mEx,
267 double mEy);
268
269 }//namespace
270
271 #endif