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.3 by amagnan, Tue Oct 13 12:14:04 2009 UTC vs.
Revision 1.20 by agilbert, Wed May 4 14:21:43 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;
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 +    unsigned short 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 IPd0;
102 <    float IPdz;
103 <    unsigned int nHits;
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 {
# Line 93 | Line 126 | namespace HbbAnalysis {
126      unsigned int nMatchesTight;
127    };
128  
129 <  struct TauLeadTrkVars{
129 >  
130 >  struct TrkVars{
131      double pT;
132      double eta;
133      double phi;
# Line 102 | Line 136 | namespace HbbAnalysis {
136      double IPz;
137      float signedSipt;
138    };
139 +  
140  
141    struct CaloTauIsoVars{
142      unsigned int nIsoTracks;
# Line 148 | Line 183 | namespace HbbAnalysis {
183      float byIsolation;
184      float againstElectron;
185      float againstMuon;
186 +    float byIsolationUsingLeadingPion;
187 +    float byTaNC;
188 +    float byTaNCfrHalfPercent;
189 +    float byTaNCfrOnePercent;
190 +    float byTaNCfrQuarterPercent;
191 +    float byTaNCfrTenthPercent;
192 +    float ecalIsolationUsingLeadingPion;
193 +    float leadingPionPtCut;
194 +    float trackIsolationUsingLeadingPion;
195    };
196  
197    struct PFTauEleIDVars{
# Line 171 | Line 215 | namespace HbbAnalysis {
215      int partonFlavour;
216      unsigned int nAssociatedTracks;
217      double rawpT;
218 +    float etaMean;
219 +    float phiMean;
220 +    float etaEtaMoment;
221 +    float phiPhiMoment;
222 +    float etaPhiMoment;
223 +    bool l1Match;
224 +    bool hltMatch;
225      //double rawEta;
226      //double rawPhi;
227    };
# Line 192 | Line 243 | namespace HbbAnalysis {
243      double n60;
244    };
245  
246 <  struct PFJetVars{
246 >  struct JPTJetVars{
247 >    float zspCorrection;
248 >    int elecMultiplicity;
249 >    float calopT;
250 >    float caloEta;
251 >    //std::vector<TrkVars> pionsInCone;
252 >    //std::vector<TrkVars> pionsCurledOut;
253 >    //std::vector<TrkVars> pionsCurledIn;
254 >    //std::vector<TrkVars> elecsInCone;
255 >    //std::vector<TrkVars> elecsCurledOut;
256 >    //std::vector<TrkVars> elecsCurledIn;
257 >    //std::vector<TrkVars> muonsInCone;
258 >    //std::vector<TrkVars> muonsCurledOut;
259 >    //std::vector<TrkVars> muonsCurledIn;
260 >    std::vector< std::pair<unsigned int,double> > particleStatusPt;
261 >  };
262 >
263 >  struct JPTPFJetVars{
264      double chargedHadronEnergy;
265      double chargedHadronEnergyFraction;
266      double neutralHadronEnergy;
267      double neutralHadronEnergyFraction;
268      double chargedEmEnergy;
269      double chargedEmEnergyFraction;
202    double chargedMuEnergy;
203    double chargedMuEnergyFraction;
270      double neutralEmEnergy;
271      double neutralEmEnergyFraction;
272      double chargedMultiplicity;
207    double neutralMultiplicity;
273      double muonMultiplicity;
274    };
275  
276 +  struct PFJetVars{
277 +    double chargedMuEnergy;
278 +    double chargedMuEnergyFraction;
279 +    double neutralMultiplicity;
280 +  };
281 +
282    struct JetBtagVars{
283      double cSV;
284      double cSVMVA;
285      double iPMVA;
286      double bProba;
287      double probability;
288 <    double sSV;
289 <    double softElectron;
288 >    double sSVHE;
289 >    double sSVHP;
290 >    double softElectronByPt;
291 >    double softElectronByIP3d;
292      double softMuon;
293 <    double softMuonNoIP;
293 >    double softMuonByPt;
294 >    double softMuonByIP3d;
295      double tCHE;
296      double tCHP;
297    };
298  
299 +
300 +  struct JetIDVars{
301 +    double fHPD;
302 +    double fRBX;
303 +    int n90Hits;
304 +    //double fSubDetector1;
305 +    //double fSubDetector2;
306 +    //double fSubDetector3;
307 +    //double fSubDetector4;
308 +    double restrictedEMF;
309 +    int    nHCALTowers;
310 +    int    nECALTowers;
311 +    //double approximatefHPD;
312 +    //double approximatefRBX;
313 +    int hitsInN90;
314 +    // muon hits id
315 +    //int numberOfHits2RPC;
316 +    //int numberOfHits3RPC;
317 +    //int numberOfHitsRPC;
318 +  };
319 +
320 +  struct JetECorVars{
321 +    std::vector<std::pair<std::string,double> > Levels;
322 +  };
323 +
324 +
325    struct MetVars{
326      double mET;
327      double mEx;
# Line 237 | Line 337 | namespace HbbAnalysis {
337      bool accept;
338    };
339  
340 +
341 +  struct VertexVars{
342 +    std::vector<float> trackWeights;
343 +    double chi2;
344 +    double ndof;
345 +    double x;
346 +    double y;
347 +    double z;
348 +    double rho;
349 +    double xError;
350 +    double yError;
351 +    double zError;
352 +    double cov01;
353 +    double cov02;
354 +    double cov12;
355 +  };
356 +
357 +  struct BeamSpotVars{
358 +    double x0;
359 +    double y0;
360 +    double z0;
361 +    double sigmaZ;
362 +    double BeamWidthX;
363 +    double BeamWidthY;
364 +    double x0Error;
365 +    double y0Error;
366 +    double z0Error;
367 +    double sigmaZ0Error;
368 +    double BeamWidthXError;
369 +    double BeamWidthYError;    
370 +    //double dxdz;
371 +    //double dydz;
372 +    //double dxdzError;
373 +    //double dydzError;
374 +    //BeamType type();
375 +    //enum BeamType { Unknown=-1, Fake=0, LHC=1, Tracker=2 };
376 +    //double emittanceX() const { return emittanceX_; }
377 +    //double emittanceY() const { return emittanceY_; }
378 +    //double betaStar() const { return betaStar_; }
379 +  };
380 +
381 +
382 +
383 +
384    double DeltaPhi(const double phi1, const double phi2);
385  
386    double DeltaR(const BaseVars & v1, const BaseVars & v2);
387 +  double DeltaR(const BaseVars & v1, const GenVars & v2);
388  
389    double SameSign(const BaseVars & v1, const BaseVars & v2);
390  
# Line 266 | Line 411 | namespace HbbAnalysis {
411                                               double mEx,
412                                               double mEy);
413  
414 +  double EtaDetector(const BaseVars & v1);
415 +  double EtaDetector(const GenVars & v1);
416 +
417   }//namespace
418  
419   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines