CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
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::MVAComputer::eval(), PhysicsTools::MVATrainer::kTargetId, PhysicsTools::MVATrainer::kWeightId, TtSemiLepSignalSel::lepeta(), TtSemiLepSignalSel::maxdijetmass(), TtSemiLepSignalSel::MET(), TtSemiLepSignalSel::mindijetmass(), TtSemiLepSignalSel::mindRjetlepton(), TtSemiLepSignalSel::sumEt(), makeHLTPrescaleTable::values, and CommonMethods::weight().

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

16 {
17  std::vector<PhysicsTools::Variable::Value> values;
18 
19  if(training) values.push_back( PhysicsTools::Variable::Value(PhysicsTools::MVATrainer::kTargetId, isSignal) );
21 
22  values.push_back( PhysicsTools::Variable::Value("sumEt", sigsel.sumEt() ) );
23  values.push_back( PhysicsTools::Variable::Value("relEt1", sigsel.Et1() ) );
24  values.push_back( PhysicsTools::Variable::Value("Abs_lepeta", sigsel.lepeta() ) );
25  values.push_back( PhysicsTools::Variable::Value("MET", sigsel.MET() ) );
26 
27  values.push_back( PhysicsTools::Variable::Value("dphiMETlepton", sigsel.dphiMETlepton() ) );
28 
29  values.push_back( PhysicsTools::Variable::Value("detajet2jet3", sigsel.detajet2jet3() ) );
30  values.push_back( PhysicsTools::Variable::Value("detajet3jet4", sigsel.detajet3jet4() ) );
31 
32  values.push_back( PhysicsTools::Variable::Value("mindijetmass", sigsel.mindijetmass() ) );
33  values.push_back( PhysicsTools::Variable::Value("maxdijetmass", sigsel.maxdijetmass() ) );
34 
35  values.push_back( PhysicsTools::Variable::Value("mindRjetlepton", sigsel.mindRjetlepton() ) );
36 
37 
38  return mvaComputer->eval( values );
39 
40 }
double mindRjetlepton() const
double eval(Iterator_t first, Iterator_t last) const
evaluate variables given by a range of iterators given by first and last
double dphiMETlepton() const
double lepeta() const
static const AtomicId kTargetId
Definition: MVATrainer.h:59
double detajet2jet3() const
static const AtomicId kWeightId
Definition: MVATrainer.h:60
double detajet3jet4() const
double mindijetmass() const
double maxdijetmass() const
double Et1() const
Helper class that can contain an identifier-value pair.
Definition: Variable.h:52
double sumEt() const
double MET() const