ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/DataStruct/interface/SimpleLepton.h
(Generate patch)

Comparing UserCode/MitHzz4l/DataStruct/interface/SimpleLepton.h (file contents):
Revision 1.3 by khahn, Wed May 9 14:57:19 2012 UTC vs.
Revision 1.4 by khahn, Thu May 10 00:14:34 2012 UTC

# Line 1 | Line 1
1   #ifndef SIMPLE_LEPTON
2   #define SIMPLE_LEPTON
3  
4 + #include <iostream>
5   #include "TROOT.h"
6   #include "TLorentzVector.h"
7 <
7 < #include <iostream>
7 > #include "SelectionStatus.h"
8  
9   class SimpleLepton {
10   public :
11  
12    SimpleLepton() {
13 <    vec = new TLorentzVector();
14 <    vecorig = new TLorentzVector();
13 >    //    vec = new TLorentzVector();
14 >    //    vecorig = new TLorentzVector();
15    }
16  
17    ~SimpleLepton() {
# Line 27 | Line 27 | class SimpleLepton {
27    unsigned bdtfail;
28    bool is4l, isEB, isTight, isLoose;
29    bool tightCutsApplied;
30 <  TLorentzVector *vec, *vecorig;
30 >  TLorentzVector  vec;
31    
32    float tche, tchp, csv, csvMva;
33    float FR;
34    
35    unsigned scID;
36 +
37 +  SelectionStatus status;
38    
39    inline void print() { std::cout <<
40        "type: " << type << "\t"
41 <      "pt: " << vec->Pt() << "\t"
42 <      "eta: " << vec->Eta() << std::endl;
41 >      "pt: " << vec.Pt() << "\t"
42 >      "eta: " << vec.Eta() << std::endl;
43    }
44    static bool lep_pt_sort( const SimpleLepton &l1,  const SimpleLepton &l2 ) {
45 <    if( l1.vec->Pt() > l2.vec->Pt() ) return true;
45 >    if( l1.vec.Pt() > l2.vec.Pt() ) return true;
46                  else return false;
47    };
48  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines