ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HbbAnalysis/interface/Electron.hh
(Generate patch)

Comparing UserCode/HbbAnalysis/interface/Electron.hh (file contents):
Revision 1.1 by amagnan, Thu Sep 17 19:39:50 2009 UTC vs.
Revision 1.6 by amagnan, Mon Jan 24 09:21:53 2011 UTC

# Line 56 | Line 56 | namespace HbbAnalysis {
56        return id_;
57      };
58  
59 +    inline const bool WPc60() {
60 +      return (id_.idAndIso & 0x1);
61 +    };
62 +    inline const bool WPc70() {
63 +      return (id_.idAndIso & 0x2) >> 1;
64 +    };
65 +    inline const bool WPc80() {
66 +      return (id_.idAndIso & 0x4) >> 2;
67 +    };
68 +    inline const bool WPc85() {
69 +      return (id_.idAndIso & 0x8) >> 3;
70 +    };
71 +    inline const bool WPc90() {
72 +      return (id_.idAndIso & 0x10) >> 4;
73 +    };
74 +    inline const bool WPc95() {
75 +      return (id_.idAndIso & 0x20) >> 5;
76 +    };
77 +    inline const bool WPrel60() {
78 +      return (id_.idAndIso & 0x40) >> 6;
79 +    };
80 +    inline const bool WPrel70() {
81 +      return (id_.idAndIso & 0x80) >> 7;
82 +    };
83 +    inline const bool WPrel80() {
84 +      return (id_.idAndIso & 0x100) >> 8;
85 +    };
86 +    inline const bool WPrel85() {
87 +      return (id_.idAndIso & 0x200) >> 9;
88 +    };
89 +    inline const bool WPrel90() {
90 +      return (id_.idAndIso & 0x400) >> 10;
91 +    };
92 +    inline const bool WPrel95() {
93 +      return (id_.idAndIso & 0x800) >> 11;
94 +    };
95 +
96 +
97      inline void genVars(const HbbAnalysis::GenVars & aGen) {
98        gen_ = aGen;
99      };
# Line 78 | Line 116 | namespace HbbAnalysis {
116  
117      inline void Clear(){
118        gen_.valid = false;
119 +      gen_.E = 0;
120        gen_.pT = 0;
121        gen_.eta = 0;
122 +      gen_.y = 0;
123        gen_.phi = 0;
124        gen_.charge = 0;
125        gen_.pdgId = 0;
# Line 89 | Line 129 | namespace HbbAnalysis {
129        gen_.vy = 0;
130        gen_.vz = 0;
131  
132 +      reco_.E = 0;
133        reco_.pT = 0;
134        reco_.eta = 0;
135 +      reco_.y = 0;
136        reco_.phi = 0;
137        reco_.charge = 0;
138        reco_.vx = 0;
# Line 109 | Line 151 | namespace HbbAnalysis {
151        iso_.ecal = 0;
152        iso_.hcal = 0;
153  
154 +      id_.idAndIso = 0;
155        id_.electronIDs.clear();
156        id_.hOverE = 0;
157        id_.deltaPhiIn = 0;
158        id_.deltaEtaIn = 0;
159 +      id_.ecalDrivenSeed = false;
160 +      id_.trackerDrivenSeed = false;
161      };
162  
163    private:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines