ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HbbAnalysis/interface/Objects.hh
(Generate patch)

Comparing UserCode/HbbAnalysis/interface/Objects.hh (file contents):
Revision 1.2 by amagnan, Fri Oct 2 11:05:52 2009 UTC vs.
Revision 1.16 by amagnan, Mon Oct 25 11:03:44 2010 UTC

# Line 8 | Line 8
8   #include "TLorentzVector.h"
9  
10   namespace HbbAnalysis {
11 <
11 >
12    struct MCVars {
13      unsigned int index;
14      double E;
15      double pT;
16      double eta;
17 +    double y;
18      double phi;
19      int pdgId;
20      int status;
21    };
22  
23 +  struct HLTVars {
24 +    float pT;
25 +    float eta;
26 +    float phi;
27 +    int id;
28 +    float mass;
29 +    unsigned int type;//1=EM, 2=muon, 3=jet, 0=unknown
30 +  };
31 +
32 +  struct L1Vars {
33 +    //type:
34 +    //0 = empty
35 +    //1 = central jet
36 +    //2 = tau jet
37 +    //3 = forward jet
38 +    unsigned int type;
39 +    int bx;
40 +    float pT;
41 +    float ET;
42 +    float eta;
43 +    float phi;
44 +  };
45 +
46    struct GenVars {
47      bool valid;
48      double E;
49      double pT;
50      double eta;
51 +    double y;
52      double phi;
53      int charge;
54      int pdgId;
# Line 38 | Line 63 | namespace HbbAnalysis {
63      double E;
64      double pT;
65      double eta;
66 +    double y;
67      double phi;
68      float charge;
69      double vx;
# Line 62 | Line 88 | namespace HbbAnalysis {
88    };
89    
90    struct EleIDVars{
91 +    bool idAndIso;
92      std::vector<std::pair<std::string,float> > electronIDs;
93      float hOverE;
94      float deltaPhiIn;
95      float deltaEtaIn;
96 +    bool ecalDrivenSeed;
97 +    bool trackerDrivenSeed;
98    };
99  
100 +  struct MuTrkVars {
101 +    float dxy;
102 +    float dz;
103 +    float normalizedChi2;
104 +    unsigned int muonHits;
105 +    int charge;
106 +    unsigned int trackerHits;
107 +    unsigned int pixelHits;
108 +  };
109 +  
110    struct MuIsoVars {
111      float sumPt;
112      float emEt;
# Line 87 | Line 126 | namespace HbbAnalysis {
126      unsigned int nMatchesTight;
127    };
128  
129 <  struct TauLeadTrkVars{
129 >  struct TrkVars{
130      double pT;
131      double eta;
132      double phi;
# Line 142 | Line 181 | namespace HbbAnalysis {
181      float byIsolation;
182      float againstElectron;
183      float againstMuon;
184 +    float byIsolationUsingLeadingPion;
185 +    float byTaNC;
186 +    float byTaNCfrHalfPercent;
187 +    float byTaNCfrOnePercent;
188 +    float byTaNCfrQuarterPercent;
189 +    float byTaNCfrTenthPercent;
190 +    float ecalIsolationUsingLeadingPion;
191 +    float leadingPionPtCut;
192 +    float trackIsolationUsingLeadingPion;
193    };
194  
195    struct PFTauEleIDVars{
# Line 165 | Line 213 | namespace HbbAnalysis {
213      int partonFlavour;
214      unsigned int nAssociatedTracks;
215      double rawpT;
216 +    float etaMean;
217 +    float phiMean;
218 +    float etaEtaMoment;
219 +    float phiPhiMoment;
220 +    float etaPhiMoment;
221 +    bool l1Match;
222 +    bool hltMatch;
223      //double rawEta;
224      //double rawPhi;
225    };
# Line 186 | Line 241 | namespace HbbAnalysis {
241      double n60;
242    };
243  
244 <  struct PFJetVars{
244 >  struct JPTJetVars{
245 >    float zspCorrection;
246 >    int elecMultiplicity;
247 >    std::vector<TrkVars> pionsInCone;
248 >    std::vector<TrkVars> pionsCurledOut;
249 >    std::vector<TrkVars> pionsCurledIn;
250 >    std::vector<TrkVars> elecsInCone;
251 >    std::vector<TrkVars> elecsCurledOut;
252 >    std::vector<TrkVars> elecsCurledIn;
253 >    std::vector<TrkVars> muonsInCone;
254 >    std::vector<TrkVars> muonsCurledOut;
255 >    std::vector<TrkVars> muonsCurledIn;
256 >  };
257 >
258 >  struct JPTPFJetVars{
259      double chargedHadronEnergy;
260      double chargedHadronEnergyFraction;
261      double neutralHadronEnergy;
262      double neutralHadronEnergyFraction;
263      double chargedEmEnergy;
264      double chargedEmEnergyFraction;
196    double chargedMuEnergy;
197    double chargedMuEnergyFraction;
265      double neutralEmEnergy;
266      double neutralEmEnergyFraction;
267      double chargedMultiplicity;
201    double neutralMultiplicity;
268      double muonMultiplicity;
269    };
270  
271 +  struct PFJetVars{
272 +    double chargedMuEnergy;
273 +    double chargedMuEnergyFraction;
274 +    double neutralMultiplicity;
275 +  };
276 +
277    struct JetBtagVars{
278      double cSV;
279      double cSVMVA;
280      double iPMVA;
281      double bProba;
282      double probability;
283 <    double sSV;
284 <    double softElectron;
283 >    double sSVHE;
284 >    double sSVHP;
285 >    double softElectronByPt;
286 >    double softElectronByIP3d;
287      double softMuon;
288 <    double softMuonNoIP;
288 >    double softMuonByPt;
289 >    double softMuonByIP3d;
290      double tCHE;
291      double tCHP;
292    };
293  
294 +
295 +  struct JetIDVars{
296 +    double fHPD;
297 +    double fRBX;
298 +    int n90Hits;
299 +    //double fSubDetector1;
300 +    //double fSubDetector2;
301 +    //double fSubDetector3;
302 +    //double fSubDetector4;
303 +    double restrictedEMF;
304 +    int    nHCALTowers;
305 +    int    nECALTowers;
306 +    //double approximatefHPD;
307 +    //double approximatefRBX;
308 +    int hitsInN90;
309 +    // muon hits id
310 +    //int numberOfHits2RPC;
311 +    //int numberOfHits3RPC;
312 +    //int numberOfHitsRPC;
313 +  };
314 +
315 +
316    struct MetVars{
317      double mET;
318      double mEx;
# Line 231 | Line 328 | namespace HbbAnalysis {
328      bool accept;
329    };
330  
331 +
332 +  struct VertexVars{
333 +    std::vector<float> trackWeights;
334 +    double chi2;
335 +    double ndof;
336 +    double x;
337 +    double y;
338 +    double z;
339 +    double rho;
340 +    double xError;
341 +    double yError;
342 +    double zError;
343 +    double cov01;
344 +    double cov02;
345 +    double cov12;
346 +  };
347 +
348 +  struct BeamSpotVars{
349 +    double x0;
350 +    double y0;
351 +    double z0;
352 +    double sigmaZ;
353 +    double BeamWidthX;
354 +    double BeamWidthY;
355 +    double x0Error;
356 +    double y0Error;
357 +    double z0Error;
358 +    double sigmaZ0Error;
359 +    double BeamWidthXError;
360 +    double BeamWidthYError;    
361 +    //double dxdz;
362 +    //double dydz;
363 +    //double dxdzError;
364 +    //double dydzError;
365 +    //BeamType type();
366 +    //enum BeamType { Unknown=-1, Fake=0, LHC=1, Tracker=2 };
367 +    //double emittanceX() const { return emittanceX_; }
368 +    //double emittanceY() const { return emittanceY_; }
369 +    //double betaStar() const { return betaStar_; }
370 +  };
371 +
372 +
373 +
374 +
375    double DeltaPhi(const double phi1, const double phi2);
376  
377    double DeltaR(const BaseVars & v1, const BaseVars & v2);
378 +  double DeltaR(const BaseVars & v1, const GenVars & v2);
379  
380    double SameSign(const BaseVars & v1, const BaseVars & v2);
381  
# Line 260 | Line 402 | namespace HbbAnalysis {
402                                               double mEx,
403                                               double mEy);
404  
405 +  double EtaDetector(const BaseVars & v1);
406 +  double EtaDetector(const GenVars & v1);
407 +
408   }//namespace
409  
410   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines