CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
TtFullHadSignalSelEval.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/TtFullHadSignalSel.h"

Go to the source code of this file.

Functions

double evaluateTtFullHadSignalSel (PhysicsTools::MVAComputerCache &mvaComputer, const TtFullHadSignalSel &sigsel, double weight=1.0, const bool training=false, const bool isSignal=false)
 

Function Documentation

double evaluateTtFullHadSignalSel ( PhysicsTools::MVAComputerCache mvaComputer,
const TtFullHadSignalSel sigsel,
double  weight = 1.0,
const bool  training = false,
const bool  isSignal = false 
)
inline

Definition at line 13 of file TtFullHadSignalSelEval.h.

References TtFullHadSignalSel::aplanarity(), TtFullHadSignalSel::C(), TtFullHadSignalSel::centrality(), TtFullHadSignalSel::circularity(), TtFullHadSignalSel::CSV_Bjet1(), TtFullHadSignalSel::CSV_Bjet2(), TtFullHadSignalSel::CSV_Bjet3(), TtFullHadSignalSel::CSV_Bjet4(), TtFullHadSignalSel::CSV_Bjet5(), TtFullHadSignalSel::CSV_Bjet6(), TtFullHadSignalSel::CSV_Bjets(), TtFullHadSignalSel::D(), TtFullHadSignalSel::dRMin1(), TtFullHadSignalSel::dRMin1Mass(), TtFullHadSignalSel::dRMin2(), TtFullHadSignalSel::dRMin2Mass(), TtFullHadSignalSel::Et56(), PhysicsTools::MVAComputer::eval(), TtFullHadSignalSel::H(), TtFullHadSignalSel::Ht(), TtFullHadSignalSel::Ht123(), TtFullHadSignalSel::Ht3jet(), TtFullHadSignalSel::isotropy(), TtFullHadSignalSel::jet1_etaetaMoment(), TtFullHadSignalSel::jet1_etaphiMoment(), TtFullHadSignalSel::jet1_phiphiMoment(), TtFullHadSignalSel::jet2_etaetaMoment(), TtFullHadSignalSel::jet2_etaphiMoment(), TtFullHadSignalSel::jet2_phiphiMoment(), TtFullHadSignalSel::jet3_etaetaMoment(), TtFullHadSignalSel::jet3_etaphiMoment(), TtFullHadSignalSel::jet3_phiphiMoment(), TtFullHadSignalSel::jet4_etaetaMoment(), TtFullHadSignalSel::jet4_etaphiMoment(), TtFullHadSignalSel::jet4_phiphiMoment(), TtFullHadSignalSel::jet5_etaetaMoment(), TtFullHadSignalSel::jet5_etaphiMoment(), TtFullHadSignalSel::jet5_phiphiMoment(), TtFullHadSignalSel::jet6_etaetaMoment(), TtFullHadSignalSel::jet6_etaphiMoment(), TtFullHadSignalSel::jet6_phiphiMoment(), TtFullHadSignalSel::jets_etaetaMoment(), TtFullHadSignalSel::jets_etaphiMoment(), TtFullHadSignalSel::jets_phiphiMoment(), PhysicsTools::MVATrainer::kTargetId, PhysicsTools::MVATrainer::kWeightId, TtFullHadSignalSel::M3(), TtFullHadSignalSel::pt1(), TtFullHadSignalSel::pt1_pt2(), TtFullHadSignalSel::pt1_pt2_norm(), TtFullHadSignalSel::pt1_pt3(), TtFullHadSignalSel::pt1_pt3_norm(), TtFullHadSignalSel::pt1_pt4(), TtFullHadSignalSel::pt1_pt4_norm(), TtFullHadSignalSel::pt1_pt5(), TtFullHadSignalSel::pt1_pt5_norm(), TtFullHadSignalSel::pt1_pt6(), TtFullHadSignalSel::pt1_pt6_norm(), TtFullHadSignalSel::pt2(), TtFullHadSignalSel::pt2_pt3(), TtFullHadSignalSel::pt2_pt3_norm(), TtFullHadSignalSel::pt2_pt4(), TtFullHadSignalSel::pt2_pt4_norm(), TtFullHadSignalSel::pt2_pt5(), TtFullHadSignalSel::pt2_pt5_norm(), TtFullHadSignalSel::pt2_pt6(), TtFullHadSignalSel::pt2_pt6_norm(), TtFullHadSignalSel::pt3(), TtFullHadSignalSel::pt3_pt4(), TtFullHadSignalSel::pt3_pt4_norm(), TtFullHadSignalSel::pt3_pt5(), TtFullHadSignalSel::pt3_pt5_norm(), TtFullHadSignalSel::pt3_pt6(), TtFullHadSignalSel::pt3_pt6_norm(), TtFullHadSignalSel::pt4(), TtFullHadSignalSel::pt4_pt5(), TtFullHadSignalSel::pt4_pt5_norm(), TtFullHadSignalSel::pt4_pt6(), TtFullHadSignalSel::pt4_pt6_norm(), TtFullHadSignalSel::pt5(), TtFullHadSignalSel::pt5_pt6(), TtFullHadSignalSel::pt5_pt6_norm(), TtFullHadSignalSel::pt6(), TtFullHadSignalSel::SM_Bjet1(), TtFullHadSignalSel::SM_Bjet2(), TtFullHadSignalSel::SM_Bjet3(), TtFullHadSignalSel::SM_Bjet4(), TtFullHadSignalSel::SM_Bjet5(), TtFullHadSignalSel::SM_Bjet6(), TtFullHadSignalSel::SM_Bjets(), TtFullHadSignalSel::sphericity(), TtFullHadSignalSel::sqrt_s(), TtFullHadSignalSel::SSV_Bjet1(), TtFullHadSignalSel::SSV_Bjet2(), TtFullHadSignalSel::SSV_Bjet3(), TtFullHadSignalSel::SSV_Bjet4(), TtFullHadSignalSel::SSV_Bjet5(), TtFullHadSignalSel::SSV_Bjet6(), TtFullHadSignalSel::SSV_Bjets(), TtFullHadSignalSel::sumDR3JetMin1(), TtFullHadSignalSel::sumDR3JetMin1Mass(), TtFullHadSignalSel::sumDR3JetMin2(), TtFullHadSignalSel::sumDR3JetMin2Mass(), TtFullHadSignalSel::TCHP_Bjet1(), TtFullHadSignalSel::TCHP_Bjet2(), TtFullHadSignalSel::TCHP_Bjet3(), TtFullHadSignalSel::TCHP_Bjet4(), TtFullHadSignalSel::TCHP_Bjet5(), TtFullHadSignalSel::TCHP_Bjet6(), TtFullHadSignalSel::TCHP_Bjets(), makeHLTPrescaleTable::values, and CommonMethods::weight().

Referenced by TtFullHadSignalSelMVATrainer::analyze(), and TtFullHadSignalSelMVAComputer::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("H", sigsel.H() ) );
23  values.push_back( PhysicsTools::Variable::Value("Ht", sigsel.Ht() ) );
24  values.push_back( PhysicsTools::Variable::Value("Ht123", sigsel.Ht123() ) );
25  values.push_back( PhysicsTools::Variable::Value("Ht3jet", sigsel.Ht3jet() ) );
26  values.push_back( PhysicsTools::Variable::Value("sqrt_s", sigsel.sqrt_s() ) );
27  values.push_back( PhysicsTools::Variable::Value("Et56", sigsel.Et56() ) );
28  values.push_back( PhysicsTools::Variable::Value("M3", sigsel.M3() ) );
29 
30  values.push_back( PhysicsTools::Variable::Value("TCHP_Bjets", sigsel.TCHP_Bjets() ) );
31  values.push_back( PhysicsTools::Variable::Value("SSV_Bjets", sigsel.SSV_Bjets() ) );
32  values.push_back( PhysicsTools::Variable::Value("CSV_Bjets", sigsel.CSV_Bjets() ) );
33  values.push_back( PhysicsTools::Variable::Value("SM_Bjets", sigsel.SM_Bjets() ) );
34 
35  values.push_back( PhysicsTools::Variable::Value("TCHP_Bjet1", sigsel.TCHP_Bjet1() ) );
36  values.push_back( PhysicsTools::Variable::Value("TCHP_Bjet2", sigsel.TCHP_Bjet2() ) );
37  values.push_back( PhysicsTools::Variable::Value("TCHP_Bjet3", sigsel.TCHP_Bjet3() ) );
38  values.push_back( PhysicsTools::Variable::Value("TCHP_Bjet4", sigsel.TCHP_Bjet4() ) );
39  values.push_back( PhysicsTools::Variable::Value("TCHP_Bjet5", sigsel.TCHP_Bjet5() ) );
40  values.push_back( PhysicsTools::Variable::Value("TCHP_Bjet6", sigsel.TCHP_Bjet6() ) );
41  values.push_back( PhysicsTools::Variable::Value("SSV_Bjet1", sigsel.SSV_Bjet1() ) );
42  values.push_back( PhysicsTools::Variable::Value("SSV_Bjet2", sigsel.SSV_Bjet2() ) );
43  values.push_back( PhysicsTools::Variable::Value("SSV_Bjet3", sigsel.SSV_Bjet3() ) );
44  values.push_back( PhysicsTools::Variable::Value("SSV_Bjet4", sigsel.SSV_Bjet4() ) );
45  values.push_back( PhysicsTools::Variable::Value("SSV_Bjet5", sigsel.SSV_Bjet5() ) );
46  values.push_back( PhysicsTools::Variable::Value("SSV_Bjet6", sigsel.SSV_Bjet6() ) );
47  values.push_back( PhysicsTools::Variable::Value("CSV_Bjet1", sigsel.CSV_Bjet1() ) );
48  values.push_back( PhysicsTools::Variable::Value("CSV_Bjet2", sigsel.CSV_Bjet2() ) );
49  values.push_back( PhysicsTools::Variable::Value("CSV_Bjet3", sigsel.CSV_Bjet3() ) );
50  values.push_back( PhysicsTools::Variable::Value("CSV_Bjet4", sigsel.CSV_Bjet4() ) );
51  values.push_back( PhysicsTools::Variable::Value("CSV_Bjet5", sigsel.CSV_Bjet5() ) );
52  values.push_back( PhysicsTools::Variable::Value("CSV_Bjet6", sigsel.CSV_Bjet6() ) );
53  values.push_back( PhysicsTools::Variable::Value("SM_Bjet1", sigsel.SM_Bjet1() ) );
54  values.push_back( PhysicsTools::Variable::Value("SM_Bjet2", sigsel.SM_Bjet2() ) );
55  values.push_back( PhysicsTools::Variable::Value("SM_Bjet3", sigsel.SM_Bjet3() ) );
56  values.push_back( PhysicsTools::Variable::Value("SM_Bjet4", sigsel.SM_Bjet4() ) );
57  values.push_back( PhysicsTools::Variable::Value("SM_Bjet5", sigsel.SM_Bjet5() ) );
58  values.push_back( PhysicsTools::Variable::Value("SM_Bjet6", sigsel.SM_Bjet6() ) );
59 
60  values.push_back( PhysicsTools::Variable::Value("pt1", sigsel.pt1() ) );
61  values.push_back( PhysicsTools::Variable::Value("pt2", sigsel.pt2() ) );
62  values.push_back( PhysicsTools::Variable::Value("pt3", sigsel.pt3() ) );
63  values.push_back( PhysicsTools::Variable::Value("pt4", sigsel.pt4() ) );
64  values.push_back( PhysicsTools::Variable::Value("pt5", sigsel.pt5() ) );
65  values.push_back( PhysicsTools::Variable::Value("pt6", sigsel.pt6() ) );
66 
67  values.push_back( PhysicsTools::Variable::Value("pt1_pt2", sigsel.pt1_pt2() ) );
68  values.push_back( PhysicsTools::Variable::Value("pt1_pt3", sigsel.pt1_pt3() ) );
69  values.push_back( PhysicsTools::Variable::Value("pt1_pt4", sigsel.pt1_pt4() ) );
70  values.push_back( PhysicsTools::Variable::Value("pt1_pt5", sigsel.pt1_pt5() ) );
71  values.push_back( PhysicsTools::Variable::Value("pt1_pt6", sigsel.pt1_pt6() ) );
72  values.push_back( PhysicsTools::Variable::Value("pt2_pt3", sigsel.pt2_pt3() ) );
73  values.push_back( PhysicsTools::Variable::Value("pt2_pt4", sigsel.pt2_pt4() ) );
74  values.push_back( PhysicsTools::Variable::Value("pt2_pt5", sigsel.pt2_pt5() ) );
75  values.push_back( PhysicsTools::Variable::Value("pt2_pt6", sigsel.pt2_pt6() ) );
76  values.push_back( PhysicsTools::Variable::Value("pt3_pt4", sigsel.pt3_pt4() ) );
77  values.push_back( PhysicsTools::Variable::Value("pt3_pt5", sigsel.pt3_pt5() ) );
78  values.push_back( PhysicsTools::Variable::Value("pt3_pt6", sigsel.pt3_pt6() ) );
79  values.push_back( PhysicsTools::Variable::Value("pt4_pt5", sigsel.pt4_pt5() ) );
80  values.push_back( PhysicsTools::Variable::Value("pt4_pt6", sigsel.pt4_pt6() ) );
81  values.push_back( PhysicsTools::Variable::Value("pt5_pt6", sigsel.pt5_pt6() ) );
82 
83  values.push_back( PhysicsTools::Variable::Value("pt1_pt2_norm", sigsel.pt1_pt2_norm() ) );
84  values.push_back( PhysicsTools::Variable::Value("pt1_pt3_norm", sigsel.pt1_pt3_norm() ) );
85  values.push_back( PhysicsTools::Variable::Value("pt1_pt4_norm", sigsel.pt1_pt4_norm() ) );
86  values.push_back( PhysicsTools::Variable::Value("pt1_pt5_norm", sigsel.pt1_pt5_norm() ) );
87  values.push_back( PhysicsTools::Variable::Value("pt1_pt6_norm", sigsel.pt1_pt6_norm() ) );
88  values.push_back( PhysicsTools::Variable::Value("pt2_pt3_norm", sigsel.pt2_pt3_norm() ) );
89  values.push_back( PhysicsTools::Variable::Value("pt2_pt4_norm", sigsel.pt2_pt4_norm() ) );
90  values.push_back( PhysicsTools::Variable::Value("pt2_pt5_norm", sigsel.pt2_pt5_norm() ) );
91  values.push_back( PhysicsTools::Variable::Value("pt2_pt6_norm", sigsel.pt2_pt6_norm() ) );
92  values.push_back( PhysicsTools::Variable::Value("pt3_pt4_norm", sigsel.pt3_pt4_norm() ) );
93  values.push_back( PhysicsTools::Variable::Value("pt3_pt5_norm", sigsel.pt3_pt5_norm() ) );
94  values.push_back( PhysicsTools::Variable::Value("pt3_pt6_norm", sigsel.pt3_pt6_norm() ) );
95  values.push_back( PhysicsTools::Variable::Value("pt4_pt5_norm", sigsel.pt4_pt5_norm() ) );
96  values.push_back( PhysicsTools::Variable::Value("pt4_pt6_norm", sigsel.pt4_pt6_norm() ) );
97  values.push_back( PhysicsTools::Variable::Value("pt5_pt6_norm", sigsel.pt5_pt6_norm() ) );
98 
99  values.push_back( PhysicsTools::Variable::Value("jet1_etaetaMoment", sigsel.jet1_etaetaMoment() ) );
100  values.push_back( PhysicsTools::Variable::Value("jet2_etaetaMoment", sigsel.jet2_etaetaMoment() ) );
101  values.push_back( PhysicsTools::Variable::Value("jet3_etaetaMoment", sigsel.jet3_etaetaMoment() ) );
102  values.push_back( PhysicsTools::Variable::Value("jet4_etaetaMoment", sigsel.jet4_etaetaMoment() ) );
103  values.push_back( PhysicsTools::Variable::Value("jet5_etaetaMoment", sigsel.jet5_etaetaMoment() ) );
104  values.push_back( PhysicsTools::Variable::Value("jet6_etaetaMoment", sigsel.jet6_etaetaMoment() ) );
105  values.push_back( PhysicsTools::Variable::Value("jet1_etaphiMoment", sigsel.jet1_etaphiMoment() ) );
106  values.push_back( PhysicsTools::Variable::Value("jet2_etaphiMoment", sigsel.jet2_etaphiMoment() ) );
107  values.push_back( PhysicsTools::Variable::Value("jet3_etaphiMoment", sigsel.jet3_etaphiMoment() ) );
108  values.push_back( PhysicsTools::Variable::Value("jet4_etaphiMoment", sigsel.jet4_etaphiMoment() ) );
109  values.push_back( PhysicsTools::Variable::Value("jet5_etaphiMoment", sigsel.jet5_etaphiMoment() ) );
110  values.push_back( PhysicsTools::Variable::Value("jet6_etaphiMoment", sigsel.jet6_etaphiMoment() ) );
111  values.push_back( PhysicsTools::Variable::Value("jet1_phiphiMoment", sigsel.jet1_phiphiMoment() ) );
112  values.push_back( PhysicsTools::Variable::Value("jet2_phiphiMoment", sigsel.jet2_phiphiMoment() ) );
113  values.push_back( PhysicsTools::Variable::Value("jet3_phiphiMoment", sigsel.jet3_phiphiMoment() ) );
114  values.push_back( PhysicsTools::Variable::Value("jet4_phiphiMoment", sigsel.jet4_phiphiMoment() ) );
115  values.push_back( PhysicsTools::Variable::Value("jet5_phiphiMoment", sigsel.jet5_phiphiMoment() ) );
116  values.push_back( PhysicsTools::Variable::Value("jet6_phiphiMoment", sigsel.jet6_phiphiMoment() ) );
117 
118  values.push_back( PhysicsTools::Variable::Value("jets_etaetaMoment", sigsel.jets_etaetaMoment() ) );
119  values.push_back( PhysicsTools::Variable::Value("jets_etaphiMoment", sigsel.jets_etaphiMoment() ) );
120  values.push_back( PhysicsTools::Variable::Value("jets_phiphiMoment", sigsel.jets_phiphiMoment() ) );
121 
122  values.push_back( PhysicsTools::Variable::Value("aplanarity", sigsel.aplanarity() ) );
123  values.push_back( PhysicsTools::Variable::Value("sphericity", sigsel.sphericity() ) );
124  values.push_back( PhysicsTools::Variable::Value("circularity", sigsel.circularity() ) );
125  values.push_back( PhysicsTools::Variable::Value("isotropy", sigsel.isotropy() ) );
126  values.push_back( PhysicsTools::Variable::Value("C", sigsel.C() ) );
127  values.push_back( PhysicsTools::Variable::Value("D", sigsel.D() ) );
128  values.push_back( PhysicsTools::Variable::Value("centrality", sigsel.centrality() ) );
129 
130  values.push_back( PhysicsTools::Variable::Value("dRMin1", sigsel.dRMin1() ) );
131  values.push_back( PhysicsTools::Variable::Value("dRMin2", sigsel.dRMin2() ) );
132  values.push_back( PhysicsTools::Variable::Value("sumDR3JetMin1", sigsel.sumDR3JetMin1() ) );
133  values.push_back( PhysicsTools::Variable::Value("sumDR3JetMin2", sigsel.sumDR3JetMin2() ) );
134 
135  values.push_back( PhysicsTools::Variable::Value("dRMin1Mass", sigsel.dRMin1Mass() ) );
136  values.push_back( PhysicsTools::Variable::Value("dRMin2Mass", sigsel.dRMin2Mass() ) );
137  values.push_back( PhysicsTools::Variable::Value("sumDR3JetMin1Mass", sigsel.sumDR3JetMin1Mass() ) );
138  values.push_back( PhysicsTools::Variable::Value("sumDR3JetMin2Mass", sigsel.sumDR3JetMin2Mass() ) );
139 
140  return mvaComputer->eval( values );
141 
142 }
double pt2_pt5_norm() const
double TCHP_Bjets() const
double SSV_Bjet4() const
double jet1_etaetaMoment() const
double pt2_pt5() const
double pt2() const
double pt3_pt6_norm() const
double SM_Bjet6() const
double pt1_pt2() const
double TCHP_Bjet6() const
double jet6_etaetaMoment() const
double jet3_etaphiMoment() const
double eval(Iterator_t first, Iterator_t last) const
evaluate variables given by a range of iterators given by first and last
double SSV_Bjet1() const
double TCHP_Bjet3() const
double TCHP_Bjet4() const
double pt1_pt5_norm() const
double dRMin1Mass() const
double CSV_Bjet4() const
double pt2_pt3_norm() const
double pt3_pt5_norm() const
double circularity() const
double pt3_pt6() const
double isotropy() const
double sumDR3JetMin2Mass() const
double pt1_pt2_norm() const
double pt2_pt6() const
double pt3_pt5() const
double pt1_pt3_norm() const
double centrality() const
double pt4_pt5() const
double SM_Bjet1() const
double pt3_pt4_norm() const
double sumDR3JetMin1() const
double sumDR3JetMin1Mass() const
double jet2_etaphiMoment() const
double jet1_etaphiMoment() const
double SSV_Bjet2() const
static const AtomicId kTargetId
Definition: MVATrainer.h:59
double jet6_phiphiMoment() const
double pt2_pt6_norm() const
double aplanarity() const
double jet2_etaetaMoment() const
double jet2_phiphiMoment() const
double pt3() const
double SM_Bjets() const
static const AtomicId kWeightId
Definition: MVATrainer.h:60
double pt1_pt6_norm() const
double jets_etaetaMoment() const
double Et56() const
double SM_Bjet5() const
double pt1_pt6() const
double SSV_Bjet3() const
double SM_Bjet2() const
double pt1_pt5() const
double jet5_phiphiMoment() const
double pt2_pt4_norm() const
double TCHP_Bjet1() const
double jets_etaphiMoment() const
double pt5_pt6() const
double Ht() const
double pt4_pt5_norm() const
double sqrt_s() const
double pt2_pt4() const
double sphericity() const
double jet5_etaphiMoment() const
double pt4_pt6() const
double CSV_Bjet2() const
Helper class that can contain an identifier-value pair.
Definition: Variable.h:52
double pt3_pt4() const
double SSV_Bjets() const
double pt1_pt4_norm() const
double M3() const
double TCHP_Bjet2() const
double pt1_pt3() const
double jet3_phiphiMoment() const
double jet3_etaetaMoment() const
double pt5_pt6_norm() const
double dRMin2Mass() const
double pt1() const
double SM_Bjet3() const
double jet4_etaphiMoment() const
double jet4_phiphiMoment() const
double Ht3jet() const
double jet4_etaetaMoment() const
double SM_Bjet4() const
double dRMin2() const
double sumDR3JetMin2() const
double TCHP_Bjet5() const
double CSV_Bjet5() const
double CSV_Bjet6() const
double Ht123() const
double jet6_etaphiMoment() const
double pt2_pt3() const
double CSV_Bjet1() const
double jets_phiphiMoment() const
double dRMin1() const
double SSV_Bjet5() const
double pt1_pt4() const
double pt5() const
double jet1_phiphiMoment() const
double CSV_Bjet3() const
double SSV_Bjet6() const
double CSV_Bjets() const
double pt4_pt6_norm() const
double pt6() const
double jet5_etaetaMoment() const
double pt4() const