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.9 by amagnan, Mon May 10 18:45:09 2010 UTC vs.
Revision 1.22 by agilbert, Tue May 31 16:27:54 2011 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;
# Line 20 | Line 20 | namespace HbbAnalysis {
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;
# Line 46 | Line 69 | namespace HbbAnalysis {
69      double vx;
70      double vy;
71      double vz;
72 +    bool hltMatch;
73    };
74  
75    struct SCVars {
# Line 65 | Line 89 | namespace HbbAnalysis {
89    };
90    
91    struct EleIDVars{
92 +    unsigned short idAndIso;
93      std::vector<std::pair<std::string,float> > electronIDs;
94      float hOverE;
95      float deltaPhiIn;
96      float deltaEtaIn;
97      bool ecalDrivenSeed;
98      bool trackerDrivenSeed;
99 +    float dB;
100    };
101  
102    struct MuTrkVars {
103 <    float IPd0;
104 <    float IPdz;
105 <    unsigned int nHits;
103 >    float dxy;
104 >    float dz;
105 >    float normalizedChi2;
106 >    unsigned int muonHits;
107 >    int charge;
108 >    unsigned int trackerHits;
109 >    unsigned int pixelHits;
110    };
111    
112    struct MuIsoVars {
# Line 96 | Line 126 | namespace HbbAnalysis {
126      unsigned int nMatchesLoose;
127      unsigned int nMatchesMedium;
128      unsigned int nMatchesTight;
129 +    float dB;
130    };
131  
132 +  
133    struct TrkVars{
134      double pT;
135      double eta;
# Line 107 | Line 139 | namespace HbbAnalysis {
139      double IPz;
140      float signedSipt;
141    };
142 +  
143  
144    struct CaloTauIsoVars{
145      unsigned int nIsoTracks;
# Line 190 | Line 223 | namespace HbbAnalysis {
223      float etaEtaMoment;
224      float phiPhiMoment;
225      float etaPhiMoment;
193    bool l1Match;
194    bool hltMatch;
226      //double rawEta;
227      //double rawPhi;
228    };
# Line 214 | Line 245 | namespace HbbAnalysis {
245    };
246  
247    struct JPTJetVars{
248 <    int zspCorrection;
249 <    float elecMultiplicity;
250 <    std::vector<TrkVars> pionsInCone;
251 <    std::vector<TrkVars> pionsCurledOut;
252 <    std::vector<TrkVars> pionsCurledIn;
253 <    std::vector<TrkVars> elecsInCone;
254 <    std::vector<TrkVars> elecsCurledOut;
255 <    std::vector<TrkVars> elecsCurledIn;
256 <    std::vector<TrkVars> muonsInCone;
257 <    std::vector<TrkVars> muonsCurledOut;
258 <    std::vector<TrkVars> muonsCurledIn;
248 >    float zspCorrection;
249 >    int elecMultiplicity;
250 >    float calopT;
251 >    float caloEta;
252 >    //std::vector<TrkVars> pionsInCone;
253 >    //std::vector<TrkVars> pionsCurledOut;
254 >    //std::vector<TrkVars> pionsCurledIn;
255 >    //std::vector<TrkVars> elecsInCone;
256 >    //std::vector<TrkVars> elecsCurledOut;
257 >    //std::vector<TrkVars> elecsCurledIn;
258 >    //std::vector<TrkVars> muonsInCone;
259 >    //std::vector<TrkVars> muonsCurledOut;
260 >    //std::vector<TrkVars> muonsCurledIn;
261 >    std::vector< std::pair<unsigned int,double> > particleStatusPt;
262    };
263  
264    struct JPTPFJetVars{
# Line 244 | Line 278 | namespace HbbAnalysis {
278      double chargedMuEnergy;
279      double chargedMuEnergyFraction;
280      double neutralMultiplicity;
281 +    unsigned numberOfDaughters;
282 +    double HFHadronEnergy;
283    };
284  
285    struct JetBtagVars{
# Line 272 | Line 308 | namespace HbbAnalysis {
308      //double fSubDetector2;
309      //double fSubDetector3;
310      //double fSubDetector4;
311 <    //double restrictedEMF;
312 <    //int    nHCALTowers;
313 <    //int    nECALTowers;
311 >    double restrictedEMF;
312 >    int    nHCALTowers;
313 >    int    nECALTowers;
314      //double approximatefHPD;
315      //double approximatefRBX;
316      int hitsInN90;
# Line 284 | Line 320 | namespace HbbAnalysis {
320      //int numberOfHitsRPC;
321    };
322  
323 +  struct JetECorVars{
324 +    std::vector<std::pair<std::string,double> > Levels;
325 +  };
326 +
327  
328    struct MetVars{
329      double mET;
# Line 303 | Line 343 | namespace HbbAnalysis {
343  
344    struct VertexVars{
345      std::vector<float> trackWeights;
346 +    std::vector<float> trackpT;
347      double chi2;
348      double ndof;
349      double x;
350      double y;
351      double z;
352 +    double rho;
353      double xError;
354      double yError;
355      double zError;
# Line 316 | Line 358 | namespace HbbAnalysis {
358      double cov12;
359    };
360  
361 +  struct BeamSpotVars{
362 +    double x0;
363 +    double y0;
364 +    double z0;
365 +    double sigmaZ;
366 +    double BeamWidthX;
367 +    double BeamWidthY;
368 +    double x0Error;
369 +    double y0Error;
370 +    double z0Error;
371 +    double sigmaZ0Error;
372 +    double BeamWidthXError;
373 +    double BeamWidthYError;    
374 +    //double dxdz;
375 +    //double dydz;
376 +    //double dxdzError;
377 +    //double dydzError;
378 +    //BeamType type();
379 +    //enum BeamType { Unknown=-1, Fake=0, LHC=1, Tracker=2 };
380 +    //double emittanceX() const { return emittanceX_; }
381 +    //double emittanceY() const { return emittanceY_; }
382 +    //double betaStar() const { return betaStar_; }
383 +  };
384 +
385 +
386 +
387 +
388    double DeltaPhi(const double phi1, const double phi2);
389  
390    double DeltaR(const BaseVars & v1, const BaseVars & v2);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines