TopQuarkAnalysis
TopEventSelection
interface
TtSemiLepSignalSelEval.h
Go to the documentation of this file.
1
#ifndef TtSemiLepSignalSelEval_h
2
#define TtSemiLepSignalSelEval_h
3
4
#include "Math/VectorUtil.h"
5
#include "TMath.h"
6
7
#include "
PhysicsTools/MVAComputer/interface/MVAComputerCache.h
"
8
#include "
PhysicsTools/MVAComputer/interface/MVAComputer.h
"
9
10
#include "
DataFormats/PatCandidates/interface/Jet.h
"
11
#include "
TopQuarkAnalysis/TopEventSelection/interface/TtSemiLepSignalSel.h
"
12
13
inline
double
evaluateTtSemiLepSignalSel
(
PhysicsTools::MVAComputerCache
& mvaComputer,
14
const
TtSemiLepSignalSel
& sigsel,
15
float
weight
= 1.,
16
const
bool
isSignal =
false
) {
17
std::vector<PhysicsTools::Variable::Value>
values
;
18
19
values
.push_back(
PhysicsTools::Variable::Value
(
"sumEt"
, sigsel.
sumEt
()));
20
values
.push_back(
PhysicsTools::Variable::Value
(
"relEt1"
, sigsel.
Et1
()));
21
values
.push_back(
PhysicsTools::Variable::Value
(
"Abs_lepeta"
, sigsel.
lepeta
()));
22
values
.push_back(
PhysicsTools::Variable::Value
(
"MET"
, sigsel.
MET
()));
23
24
values
.push_back(
PhysicsTools::Variable::Value
(
"dphiMETlepton"
, sigsel.
dphiMETlepton
()));
25
26
values
.push_back(
PhysicsTools::Variable::Value
(
"detajet2jet3"
, sigsel.
detajet2jet3
()));
27
values
.push_back(
PhysicsTools::Variable::Value
(
"detajet3jet4"
, sigsel.
detajet3jet4
()));
28
29
values
.push_back(
PhysicsTools::Variable::Value
(
"mindijetmass"
, sigsel.
mindijetmass
()));
30
values
.push_back(
PhysicsTools::Variable::Value
(
"maxdijetmass"
, sigsel.
maxdijetmass
()));
31
32
values
.push_back(
PhysicsTools::Variable::Value
(
"mindRjetlepton"
, sigsel.
mindRjetlepton
()));
33
34
return
mvaComputer->
eval
(
values
);
35
}
36
37
#endif
TtSemiLepSignalSel::Et1
double Et1() const
Definition:
TtSemiLepSignalSel.h:20
PhysicsTools::MVAComputer::eval
double eval(Iterator_t first, Iterator_t last) const
evaluate variables given by a range of iterators given by first and last
TtSemiLepSignalSel::MET
double MET() const
Definition:
TtSemiLepSignalSel.h:22
TtSemiLepSignalSel::detajet2jet3
double detajet2jet3() const
Definition:
TtSemiLepSignalSel.h:26
PhysicsTools::Variable::Value
Helper class that can contain an identifier-value pair.
Definition:
Variable.h:46
TtSemiLepSignalSel::detajet3jet4
double detajet3jet4() const
Definition:
TtSemiLepSignalSel.h:27
TtSemiLepSignalSel::lepeta
double lepeta() const
Definition:
TtSemiLepSignalSel.h:21
PhysicsTools::MVAComputerCache
Creates and and MVAComputer from calibrations via EventSetup.
Definition:
MVAComputerCache.h:28
contentValuesCheck.values
values
Definition:
contentValuesCheck.py:38
MVAComputer.h
TtSemiLepSignalSel::maxdijetmass
double maxdijetmass() const
Definition:
TtSemiLepSignalSel.h:30
TtSemiLepSignalSel.h
evaluateTtSemiLepSignalSel
double evaluateTtSemiLepSignalSel(PhysicsTools::MVAComputerCache &mvaComputer, const TtSemiLepSignalSel &sigsel, float weight=1., const bool isSignal=false)
Definition:
TtSemiLepSignalSelEval.h:13
TtSemiLepSignalSel::mindRjetlepton
double mindRjetlepton() const
Definition:
TtSemiLepSignalSel.h:32
Jet.h
MVAComputerCache.h
TtSemiLepSignalSel::dphiMETlepton
double dphiMETlepton() const
Definition:
TtSemiLepSignalSel.h:24
TtSemiLepSignalSel::sumEt
double sumEt() const
Definition:
TtSemiLepSignalSel.h:19
TtSemiLepSignalSel::mindijetmass
double mindijetmass() const
Definition:
TtSemiLepSignalSel.h:29
TtSemiLepSignalSel
Definition:
TtSemiLepSignalSel.h:11
weight
Definition:
weight.py:1
Generated for CMSSW Reference Manual by
1.8.16