ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Utils/src/MVATools.cc
(Generate patch)

Comparing UserCode/MitPhysics/Utils/src/MVATools.cc (file contents):
Revision 1.8 by bendavid, Tue Dec 13 21:13:23 2011 UTC vs.
Revision 1.9 by bendavid, Sat Dec 17 20:00:40 2011 UTC

# Line 55 | Line 55 | MVATools::MVATools():
55    RelIsoHcal(0),
56    tIso1(0),
57    tIso3(0),
58 <  tIso2(0)
58 >  tIso2(0),
59 >  ScEta(0.)
60   {
61    // Constructor.
62   }
# Line 157 | Line 158 | void MVATools::InitializeMVA(int Variabl
158        readers[i]->AddVariable( "RelPreshowerEnergy", &RelPreshowerEnergy );
159        }
160      }
161 +    
162 +    if(VariableType==7){
163 +      readers[i]->AddVariable( "HoE", &HoE );
164 +      readers[i]->AddVariable( "covIEtaIEta", &covIEtaIEta );
165 +      readers[i]->AddVariable( "tIso1abs", &tIso1abs );
166 +      readers[i]->AddVariable( "tIso3abs", &tIso3abs );
167 +      readers[i]->AddVariable( "tIso2abs", &tIso2abs );
168 +      readers[i]->AddVariable( "R9", &R9 );
169 +      readers[i]->AddVariable( "absIsoEcal", &absIsoEcal );
170 +      readers[i]->AddVariable( "absIsoHcal", &absIsoHcal );
171 +      readers[i]->AddVariable( "NVertexes", &NVertexes );
172 +      readers[i]->AddVariable( "ScEta", &ScEta );
173 +    }    
174  
175    }
176    
# Line 211 | Line 225 | Int_t MVATools::PassElectronVetoInt(cons
225    
226    isbarrel = (fabs(ScEta_MVA)<1.4442);
227  
228 <  //R9 = p->R9();
229 <  R9 = p->E33()/p->SCluster()->RawEnergy();
228 >  R9 = p->R9();
229 >  //R9 = p->E33()/p->SCluster()->RawEnergy();
230    
231    // check which category it is ...
232    _tCat = 1;
# Line 249 | Line 263 | Float_t MVATools::GetMVAbdtValue(const P
263    
264    RawEnergy = p->SCluster()->RawEnergy();
265    
266 +  ScEta = p->SCluster()->Eta();
267 +  
268    //mva varialbes v1 and v2
269    tIso1 = (combIso1) *50./p->Et();
270    tIso3 = (trackIso1)*50./p->Et();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines