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.1 by amagnan, Thu Sep 17 19:39:51 2009 UTC vs.
Revision 1.9 by amagnan, Mon May 10 18:45:09 2010 UTC

# Line 3 | Line 3
3  
4   #include <vector>
5   #include <string>
6 + #include <iostream>
7 +
8 + #include "TLorentzVector.h"
9  
10   namespace HbbAnalysis {
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;
# Line 17 | Line 22 | namespace HbbAnalysis {
22  
23    struct GenVars {
24      bool valid;
25 +    double E;
26      double pT;
27      double eta;
28 +    double y;
29      double phi;
30      int charge;
31      int pdgId;
# Line 30 | Line 37 | namespace HbbAnalysis {
37    };
38  
39    struct BaseVars {
40 +    double E;
41      double pT;
42      double eta;
43 +    double y;
44      double phi;
45      float charge;
46      double vx;
# Line 60 | Line 69 | namespace HbbAnalysis {
69      float hOverE;
70      float deltaPhiIn;
71      float deltaEtaIn;
72 +    bool ecalDrivenSeed;
73 +    bool trackerDrivenSeed;
74    };
75  
76 +  struct MuTrkVars {
77 +    float IPd0;
78 +    float IPdz;
79 +    unsigned int nHits;
80 +  };
81 +  
82    struct MuIsoVars {
83      float sumPt;
84      float emEt;
# Line 81 | Line 98 | namespace HbbAnalysis {
98      unsigned int nMatchesTight;
99    };
100  
101 <  struct TauLeadTrkVars{
101 >  struct TrkVars{
102      double pT;
103      double eta;
104      double phi;
# Line 136 | Line 153 | namespace HbbAnalysis {
153      float byIsolation;
154      float againstElectron;
155      float againstMuon;
156 +    float byIsolationUsingLeadingPion;
157 +    float byTaNC;
158 +    float byTaNCfrHalfPercent;
159 +    float byTaNCfrOnePercent;
160 +    float byTaNCfrQuarterPercent;
161 +    float byTaNCfrTenthPercent;
162 +    float ecalIsolationUsingLeadingPion;
163 +    float leadingPionPtCut;
164 +    float trackIsolationUsingLeadingPion;
165    };
166  
167    struct PFTauEleIDVars{
# Line 159 | Line 185 | namespace HbbAnalysis {
185      int partonFlavour;
186      unsigned int nAssociatedTracks;
187      double rawpT;
188 +    float etaMean;
189 +    float phiMean;
190 +    float etaEtaMoment;
191 +    float phiPhiMoment;
192 +    float etaPhiMoment;
193 +    bool l1Match;
194 +    bool hltMatch;
195      //double rawEta;
196      //double rawPhi;
197    };
# Line 180 | Line 213 | namespace HbbAnalysis {
213      double n60;
214    };
215  
216 <  struct PFJetVars{
216 >  struct JPTJetVars{
217 >    int zspCorrection;
218 >    float elecMultiplicity;
219 >    std::vector<TrkVars> pionsInCone;
220 >    std::vector<TrkVars> pionsCurledOut;
221 >    std::vector<TrkVars> pionsCurledIn;
222 >    std::vector<TrkVars> elecsInCone;
223 >    std::vector<TrkVars> elecsCurledOut;
224 >    std::vector<TrkVars> elecsCurledIn;
225 >    std::vector<TrkVars> muonsInCone;
226 >    std::vector<TrkVars> muonsCurledOut;
227 >    std::vector<TrkVars> muonsCurledIn;
228 >  };
229 >
230 >  struct JPTPFJetVars{
231      double chargedHadronEnergy;
232      double chargedHadronEnergyFraction;
233      double neutralHadronEnergy;
234      double neutralHadronEnergyFraction;
235      double chargedEmEnergy;
236      double chargedEmEnergyFraction;
190    double chargedMuEnergy;
191    double chargedMuEnergyFraction;
237      double neutralEmEnergy;
238      double neutralEmEnergyFraction;
239      double chargedMultiplicity;
195    double neutralMultiplicity;
240      double muonMultiplicity;
241    };
242  
243 +  struct PFJetVars{
244 +    double chargedMuEnergy;
245 +    double chargedMuEnergyFraction;
246 +    double neutralMultiplicity;
247 +  };
248 +
249    struct JetBtagVars{
250      double cSV;
251      double cSVMVA;
252      double iPMVA;
253      double bProba;
254      double probability;
255 <    double sSV;
256 <    double softElectron;
255 >    double sSVHE;
256 >    double sSVHP;
257 >    double softElectronByPt;
258 >    double softElectronByIP3d;
259      double softMuon;
260 <    double softMuonNoIP;
260 >    double softMuonByPt;
261 >    double softMuonByIP3d;
262      double tCHE;
263      double tCHP;
264    };
265  
266 +
267 +  struct JetIDVars{
268 +    double fHPD;
269 +    double fRBX;
270 +    int n90Hits;
271 +    //double fSubDetector1;
272 +    //double fSubDetector2;
273 +    //double fSubDetector3;
274 +    //double fSubDetector4;
275 +    //double restrictedEMF;
276 +    //int    nHCALTowers;
277 +    //int    nECALTowers;
278 +    //double approximatefHPD;
279 +    //double approximatefRBX;
280 +    int hitsInN90;
281 +    // muon hits id
282 +    //int numberOfHits2RPC;
283 +    //int numberOfHits3RPC;
284 +    //int numberOfHitsRPC;
285 +  };
286 +
287 +
288    struct MetVars{
289      double mET;
290      double mEx;
# Line 226 | Line 301 | namespace HbbAnalysis {
301    };
302  
303  
304 +  struct VertexVars{
305 +    std::vector<float> trackWeights;
306 +    double chi2;
307 +    double ndof;
308 +    double x;
309 +    double y;
310 +    double z;
311 +    double xError;
312 +    double yError;
313 +    double zError;
314 +    double cov01;
315 +    double cov02;
316 +    double cov12;
317 +  };
318 +
319 +  double DeltaPhi(const double phi1, const double phi2);
320 +
321 +  double DeltaR(const BaseVars & v1, const BaseVars & v2);
322 +  double DeltaR(const BaseVars & v1, const GenVars & v2);
323 +
324 +  double SameSign(const BaseVars & v1, const BaseVars & v2);
325 +
326 +  double OppSign(const BaseVars & v1, const BaseVars & v2);
327 +
328 +  TLorentzVector FourMomentum(const BaseVars & v, const double scale=1) ;
329 +
330 +  double TransverseMass(const BaseVars & leg1,
331 +                        const BaseVars & leg2,
332 +                        const double mEx,
333 +                        const double mEy);
334 +
335 +  double TransverseMass(const BaseVars & leg1,
336 +                        const double mEx,
337 +                        const double mEy);
338 +
339 +  TLorentzVector FourMomentumCDFmethod(const BaseVars & leg1,
340 +                                       const BaseVars & leg2,
341 +                                       double mEx,
342 +                                       double mEy);
343 +
344 +  TLorentzVector FourMomentumCollinearApprox(const BaseVars & leg1,
345 +                                             const BaseVars & leg2,
346 +                                             double mEx,
347 +                                             double mEy);
348 +
349 +  double EtaDetector(const BaseVars & v1);
350 +  double EtaDetector(const GenVars & v1);
351  
352   }//namespace
353 +
354   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines