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.7 by amagnan, Fri Mar 26 17:52:50 2010 UTC vs.
Revision 1.23 by agilbert, Thu Jun 23 13:03:51 2011 UTC

# Line 8 | Line 8
8   #include "TLorentzVector.h"
9  
10   namespace HbbAnalysis {
11 <
11 >
12 >  struct PUVars {
13 >    int bunchCrossing;
14 >    unsigned int numInteractions;
15 >    PUVars(){
16 >      bunchCrossing = 0;
17 >      numInteractions = 0;
18 >    }
19 >  };
20 >
21    struct MCVars {
22      unsigned int index;
23      double E;
24      double pT;
25      double eta;
26 +    double y;
27      double phi;
28      int pdgId;
29      int status;
30    };
31  
32 +  struct HLTVars {
33 +    float pT;
34 +    float eta;
35 +    float phi;
36 +    int id;
37 +    float mass;
38 +    unsigned int type;//1=EM, 2=muon, 3=jet, 0=unknown
39 +  };
40 +
41 +  struct L1Vars {
42 +    //type:
43 +    //0 = empty
44 +    //1 = central jet
45 +    //2 = tau jet
46 +    //3 = forward jet
47 +    unsigned int type;
48 +    int bx;
49 +    float pT;
50 +    float ET;
51 +    float eta;
52 +    float phi;
53 +  };
54 +
55    struct GenVars {
56      bool valid;
57      double E;
58      double pT;
59      double eta;
60 +    double y;
61      double phi;
62      int charge;
63      int pdgId;
# Line 38 | Line 72 | namespace HbbAnalysis {
72      double E;
73      double pT;
74      double eta;
75 +    double y;
76      double phi;
77      float charge;
78      double vx;
79      double vy;
80      double vz;
81 +    bool hltMatch;
82    };
83  
84    struct SCVars {
# Line 62 | Line 98 | namespace HbbAnalysis {
98    };
99    
100    struct EleIDVars{
101 +    unsigned short idAndIso;
102      std::vector<std::pair<std::string,float> > electronIDs;
103      float hOverE;
104      float deltaPhiIn;
105      float deltaEtaIn;
106      bool ecalDrivenSeed;
107      bool trackerDrivenSeed;
108 +    float dB;
109    };
110  
111    struct MuTrkVars {
112 <    float IPd0;
113 <    float IPdz;
114 <    unsigned int nHits;
112 >    float dxy;
113 >    float dz;
114 >    float normalizedChi2;
115 >    unsigned int muonHits;
116 >    int charge;
117 >    unsigned int trackerHits;
118 >    unsigned int pixelHits;
119    };
120    
121    struct MuIsoVars {
# Line 93 | Line 135 | namespace HbbAnalysis {
135      unsigned int nMatchesLoose;
136      unsigned int nMatchesMedium;
137      unsigned int nMatchesTight;
138 +    float dB;
139    };
140  
141 <  struct TauLeadTrkVars{
141 >  
142 >  struct TrkVars{
143      double pT;
144      double eta;
145      double phi;
# Line 104 | Line 148 | namespace HbbAnalysis {
148      double IPz;
149      float signedSipt;
150    };
151 +  
152  
153    struct CaloTauIsoVars{
154      unsigned int nIsoTracks;
# Line 208 | Line 253 | namespace HbbAnalysis {
253      double n60;
254    };
255  
256 <  struct PFJetVars{
256 >  struct JPTJetVars{
257 >    float zspCorrection;
258 >    int elecMultiplicity;
259 >    float calopT;
260 >    float caloEta;
261 >    //std::vector<TrkVars> pionsInCone;
262 >    //std::vector<TrkVars> pionsCurledOut;
263 >    //std::vector<TrkVars> pionsCurledIn;
264 >    //std::vector<TrkVars> elecsInCone;
265 >    //std::vector<TrkVars> elecsCurledOut;
266 >    //std::vector<TrkVars> elecsCurledIn;
267 >    //std::vector<TrkVars> muonsInCone;
268 >    //std::vector<TrkVars> muonsCurledOut;
269 >    //std::vector<TrkVars> muonsCurledIn;
270 >    std::vector< std::pair<unsigned int,double> > particleStatusPt;
271 >  };
272 >
273 >  struct JPTPFJetVars{
274      double chargedHadronEnergy;
275      double chargedHadronEnergyFraction;
276      double neutralHadronEnergy;
277      double neutralHadronEnergyFraction;
278      double chargedEmEnergy;
279      double chargedEmEnergyFraction;
218    double chargedMuEnergy;
219    double chargedMuEnergyFraction;
280      double neutralEmEnergy;
281      double neutralEmEnergyFraction;
282      double chargedMultiplicity;
223    double neutralMultiplicity;
283      double muonMultiplicity;
284    };
285  
286 +  struct PFJetVars{
287 +    double chargedMuEnergy;
288 +    double chargedMuEnergyFraction;
289 +    double neutralMultiplicity;
290 +    unsigned numberOfDaughters;
291 +    double HFHadronEnergy;
292 +  };
293 +
294    struct JetBtagVars{
295      double cSV;
296      double cSVMVA;
297      double iPMVA;
298      double bProba;
299      double probability;
300 <    double sSV;
300 >    double sSVHE;
301 >    double sSVHP;
302      double softElectronByPt;
303      double softElectronByIP3d;
304      double softMuon;
# Line 244 | Line 312 | namespace HbbAnalysis {
312    struct JetIDVars{
313      double fHPD;
314      double fRBX;
315 <    double n90Hits;
315 >    int n90Hits;
316      //double fSubDetector1;
317      //double fSubDetector2;
318      //double fSubDetector3;
319      //double fSubDetector4;
320 <    //double restrictedEMF;
321 <    //int    nHCALTowers;
322 <    //int    nECALTowers;
320 >    double restrictedEMF;
321 >    int    nHCALTowers;
322 >    int    nECALTowers;
323      //double approximatefHPD;
324      //double approximatefRBX;
325 <    //int    hitsInN90;
325 >    int hitsInN90;
326      // muon hits id
327      //int numberOfHits2RPC;
328      //int numberOfHits3RPC;
329      //int numberOfHitsRPC;
330    };
331  
332 +  struct JetECorVars{
333 +    std::vector<std::pair<std::string,double> > Levels;
334 +  };
335 +
336  
337    struct MetVars{
338      double mET;
# Line 280 | Line 352 | namespace HbbAnalysis {
352  
353    struct VertexVars{
354      std::vector<float> trackWeights;
355 +    std::vector<float> trackpT;
356      double chi2;
357      double ndof;
358      double x;
359      double y;
360      double z;
361 +    double rho;
362      double xError;
363      double yError;
364      double zError;
# Line 293 | Line 367 | namespace HbbAnalysis {
367      double cov12;
368    };
369  
370 +  struct BeamSpotVars{
371 +    double x0;
372 +    double y0;
373 +    double z0;
374 +    double sigmaZ;
375 +    double BeamWidthX;
376 +    double BeamWidthY;
377 +    double x0Error;
378 +    double y0Error;
379 +    double z0Error;
380 +    double sigmaZ0Error;
381 +    double BeamWidthXError;
382 +    double BeamWidthYError;    
383 +    //double dxdz;
384 +    //double dydz;
385 +    //double dxdzError;
386 +    //double dydzError;
387 +    //BeamType type();
388 +    //enum BeamType { Unknown=-1, Fake=0, LHC=1, Tracker=2 };
389 +    //double emittanceX() const { return emittanceX_; }
390 +    //double emittanceY() const { return emittanceY_; }
391 +    //double betaStar() const { return betaStar_; }
392 +  };
393 +
394 +
395 +
396 +
397    double DeltaPhi(const double phi1, const double phi2);
398  
399    double DeltaR(const BaseVars & v1, const BaseVars & v2);
# Line 323 | Line 424 | namespace HbbAnalysis {
424                                               double mEx,
425                                               double mEy);
426  
427 +  double EtaDetector(const BaseVars & v1);
428 +  double EtaDetector(const GenVars & v1);
429 +
430   }//namespace
431  
432   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines