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.10 by amagnan, Sat May 15 09:21:19 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;
# Line 20 | Line 29 | namespace HbbAnalysis {
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;
# Line 46 | Line 78 | namespace HbbAnalysis {
78      double vx;
79      double vy;
80      double vz;
81 +    bool hltMatch;
82    };
83  
84    struct SCVars {
# Line 65 | 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 96 | Line 135 | namespace HbbAnalysis {
135      unsigned int nMatchesLoose;
136      unsigned int nMatchesMedium;
137      unsigned int nMatchesTight;
138 +    float dB;
139    };
140  
141 +  
142    struct TrkVars{
143      double pT;
144      double eta;
# Line 107 | Line 148 | namespace HbbAnalysis {
148      double IPz;
149      float signedSipt;
150    };
151 +  
152  
153    struct CaloTauIsoVars{
154      unsigned int nIsoTracks;
# Line 190 | Line 232 | namespace HbbAnalysis {
232      float etaEtaMoment;
233      float phiPhiMoment;
234      float etaPhiMoment;
193    bool l1Match;
194    bool hltMatch;
235      //double rawEta;
236      //double rawPhi;
237    };
# Line 216 | Line 256 | namespace HbbAnalysis {
256    struct JPTJetVars{
257      float zspCorrection;
258      int elecMultiplicity;
259 <    std::vector<TrkVars> pionsInCone;
260 <    std::vector<TrkVars> pionsCurledOut;
261 <    std::vector<TrkVars> pionsCurledIn;
262 <    std::vector<TrkVars> elecsInCone;
263 <    std::vector<TrkVars> elecsCurledOut;
264 <    std::vector<TrkVars> elecsCurledIn;
265 <    std::vector<TrkVars> muonsInCone;
266 <    std::vector<TrkVars> muonsCurledOut;
267 <    std::vector<TrkVars> muonsCurledIn;
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{
# Line 244 | Line 287 | namespace HbbAnalysis {
287      double chargedMuEnergy;
288      double chargedMuEnergyFraction;
289      double neutralMultiplicity;
290 +    unsigned numberOfDaughters;
291 +    double HFHadronEnergy;
292    };
293  
294    struct JetBtagVars{
# Line 284 | Line 329 | namespace HbbAnalysis {
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 303 | 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 316 | 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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines