ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/DataStruct/interface/SimpleLepton.h
Revision: 1.3
Committed: Wed May 9 14:57:19 2012 UTC (13 years ago) by khahn
Content type: text/plain
Branch: MAIN
Changes since 1.2: +5 -1 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 #ifndef SIMPLE_LEPTON
2 #define SIMPLE_LEPTON
3
4 #include "TROOT.h"
5 #include "TLorentzVector.h"
6
7 #include <iostream>
8
9 class SimpleLepton {
10 public :
11
12 SimpleLepton() {
13 vec = new TLorentzVector();
14 vecorig = new TLorentzVector();
15 }
16
17 ~SimpleLepton() {
18 // vec->Delete();
19 // vecorig->Delete();
20 // delete(vec);
21 // delete(vecorig);
22 };
23
24 int type, index, charge;
25 double isoTrk, isoEcal, isoHcal, isoPF03, isoPF04, isoCombo;
26 double ip3dSig;
27 unsigned bdtfail;
28 bool is4l, isEB, isTight, isLoose;
29 bool tightCutsApplied;
30 TLorentzVector *vec, *vecorig;
31
32 float tche, tchp, csv, csvMva;
33 float FR;
34
35 unsigned scID;
36
37 inline void print() { std::cout <<
38 "type: " << type << "\t"
39 "pt: " << vec->Pt() << "\t"
40 "eta: " << vec->Eta() << std::endl;
41 }
42 static bool lep_pt_sort( const SimpleLepton &l1, const SimpleLepton &l2 ) {
43 if( l1.vec->Pt() > l2.vec->Pt() ) return true;
44 else return false;
45 };
46
47 };
48
49 #endif