CMS 3D CMS Logo

TtSemiLepSignalSelEval.h File Reference

#include "Math/VectorUtil.h"
#include "TMath.h"
#include "PhysicsTools/MVAComputer/interface/MVAComputerCache.h"
#include "PhysicsTools/MVATrainer/interface/MVATrainer.h"
#include "DataFormats/PatCandidates/interface/Jet.h"
#include "TopQuarkAnalysis/TopEventSelection/interface/TtSemiLepSignalSel.h"

Go to the source code of this file.

Functions

double evaluateTtSemiLepSignalSel (PhysicsTools::MVAComputerCache &mvaComputer, const TtSemiLepSignalSel &sigsel, float weight=1., const bool training=false, const bool isSignal=false)


Function Documentation

double evaluateTtSemiLepSignalSel ( PhysicsTools::MVAComputerCache mvaComputer,
const TtSemiLepSignalSel sigsel,
float  weight = 1.,
const bool  training = false,
const bool  isSignal = false 
) [inline]

Definition at line 13 of file TtSemiLepSignalSelEval.h.

References TtSemiLepSignalSel::detajet2jet3(), TtSemiLepSignalSel::detajet3jet4(), TtSemiLepSignalSel::dphiMETlepton(), TtSemiLepSignalSel::Et1(), PhysicsTools::MVATrainer::kTargetId, PhysicsTools::MVATrainer::kWeightId, TtSemiLepSignalSel::lepeta(), TtSemiLepSignalSel::maxdijetmass(), TtSemiLepSignalSel::MET(), TtSemiLepSignalSel::mindijetmass(), TtSemiLepSignalSel::mindRjetlepton(), TtSemiLepSignalSel::sumEt(), values, and weight.

Referenced by TtSemiLepSignalSelMVATrainer::analyze(), and TtSemiLepSignalSelMVAComputer::produce().

00016 {
00017   std::vector<PhysicsTools::Variable::Value> values;
00018   
00019   if(training) values.push_back( PhysicsTools::Variable::Value(PhysicsTools::MVATrainer::kTargetId, isSignal) );
00020   if(training) values.push_back( PhysicsTools::Variable::Value(PhysicsTools::MVATrainer::kWeightId, weight));  
00021 
00022   values.push_back( PhysicsTools::Variable::Value("sumEt",             sigsel.sumEt()   ) ); 
00023   values.push_back( PhysicsTools::Variable::Value("relEt1",            sigsel.Et1()   ) ); 
00024   values.push_back( PhysicsTools::Variable::Value("Abs_lepeta",        sigsel.lepeta()   ) ); 
00025   values.push_back( PhysicsTools::Variable::Value("MET",               sigsel.MET() ) ); 
00026   
00027   values.push_back( PhysicsTools::Variable::Value("dphiMETlepton",     sigsel.dphiMETlepton()     ) );
00028     
00029   values.push_back( PhysicsTools::Variable::Value("detajet2jet3",     sigsel.detajet2jet3()     ) ); 
00030   values.push_back( PhysicsTools::Variable::Value("detajet3jet4",     sigsel.detajet3jet4()     ) ); 
00031 
00032   values.push_back( PhysicsTools::Variable::Value("mindijetmass",     sigsel.mindijetmass()     ) ); 
00033   values.push_back( PhysicsTools::Variable::Value("maxdijetmass",     sigsel.maxdijetmass()     ) ); 
00034 
00035   values.push_back( PhysicsTools::Variable::Value("mindRjetlepton",     sigsel.mindRjetlepton()     ) );
00036   
00037 
00038   return mvaComputer->eval( values );
00039     
00040 }


Generated on Tue Jun 9 17:56:00 2009 for CMSSW by  doxygen 1.5.4