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.1 by mingyang, Thu Oct 13 17:28:29 2011 UTC vs.
Revision 1.2 by mingyang, Thu Oct 13 18:34:50 2011 UTC

# Line 116 | Line 116 | void MVATools::InitializeMVA(int Variabl
116  
117   //--------------------------------------------------------------------------------------------------
118  
119 < Bool_t MVATools::PassMVASelection(const Photon* p,const Vertex* vtx,const TrackCol* trackCol,const VertexCol* vtxCol,Double_t _tRho,const ElectronCol* els,double MVAPtMin) {
119 > Bool_t MVATools::PassMVASelection(const Photon* p,const Vertex* vtx,const TrackCol* trackCol,const VertexCol* vtxCol,Double_t _tRho,const ElectronCol* els,double MVAPtMin, Float_t bdtCutBarrel, Float_t bdtCutEndcap) {
120    
121    // these values are taken from the H2GGlobe code... (actually from Marco/s mail)
122    float cic4_allcuts_temp_sublead[] = {
# Line 217 | Line 217 | Bool_t MVATools::PassMVASelection(const
217      bdt = reader->EvaluateMVA( "BDT method" );
218      
219      if (isbarrel) {
220 <      if(bdt>0.0031324){
220 >      if(bdt>bdtCutBarrel){
221          PassMVA=kTRUE;  
222        }
223      }
224      else {
225 <      if(bdt>0.0086){
225 >      if(bdt>bdtCutEndcap){
226          PassMVA=kTRUE;  
227        }
228      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines