TopQuarkAnalysis
TopEventSelection
plugins
TtFullHadSignalSelMVATrainer.h
Go to the documentation of this file.
1
#ifndef TtFullHadSignalSelMVATrainer_h
2
#define TtFullHadSignalSelMVATrainer_h
3
4
#include "
FWCore/Framework/interface/Event.h
"
5
#include "
FWCore/Framework/interface/EventSetup.h
"
6
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
7
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
8
#include "
FWCore/Framework/interface/MakerMacros.h
"
9
#include "
FWCore/Framework/interface/ESHandle.h
"
10
#include "
FWCore/Utilities/interface/InputTag.h
"
11
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
12
13
#include "
PhysicsTools/MVAComputer/interface/HelperMacros.h
"
14
#include "
PhysicsTools/MVAComputer/interface/MVAComputerCache.h
"
15
16
#include "
AnalysisDataFormats/TopObjects/interface/TtEvent.h
"
17
#include "
DataFormats/PatCandidates/interface/Jet.h
"
18
#include "
DataFormats/RecoCandidate/interface/RecoCandidate.h
"
19
20
#ifndef TtFullHadSignalSelMVARcd_defined // to avoid conflicts with the TtFullHadSignalSelMVAComputer
21
#define TtFullHadSignalSelMVARcd_defined
22
MVA_COMPUTER_CONTAINER_DEFINE
(TtFullHadSignalSelMVA);
// defines TtFullHadSignalSelMVA
23
#endif
24
25
class
TtFullHadSignalSelMVATrainer
:
public
edm::EDAnalyzer
{
26
public
:
27
explicit
TtFullHadSignalSelMVATrainer
(
const
edm::ParameterSet
&);
28
~TtFullHadSignalSelMVATrainer
()
override
;
29
30
private
:
31
void
analyze
(
const
edm::Event
& evt,
const
edm::EventSetup
&
setup
)
override
;
32
void
beginJob
()
override
;
33
34
edm::EDGetTokenT<std::vector<pat::Jet>
>
jetsToken_
;
35
edm::EDGetTokenT<TtGenEvent>
genEvtToken_
;
36
37
int
whatData_
;
38
int
maxEv_
;
39
int
selEv
;
40
double
weight_
;
41
42
PhysicsTools::MVAComputerCache
mvaComputer
;
43
};
44
45
#endif
ESHandle.h
edm::EDGetTokenT
Definition:
EDGetToken.h:33
TtFullHadSignalSelMVATrainer::beginJob
void beginJob() override
TtFullHadSignalSelMVATrainer::genEvtToken_
edm::EDGetTokenT< TtGenEvent > genEvtToken_
Definition:
TtFullHadSignalSelMVATrainer.h:35
EDAnalyzer.h
RecoCandidate.h
singleTopDQM_cfi.setup
setup
Definition:
singleTopDQM_cfi.py:37
edm::EDAnalyzer
Definition:
EDAnalyzer.h:28
PhysicsTools::MVAComputerCache
Creates and and MVAComputer from calibrations via EventSetup.
Definition:
MVAComputerCache.h:28
MakerMacros.h
TtFullHadSignalSelMVATrainer
Definition:
TtFullHadSignalSelMVATrainer.h:25
edm::ParameterSet
Definition:
ParameterSet.h:47
TtFullHadSignalSelMVATrainer::TtFullHadSignalSelMVATrainer
TtFullHadSignalSelMVATrainer(const edm::ParameterSet &)
Event.h
TtFullHadSignalSelMVATrainer::mvaComputer
PhysicsTools::MVAComputerCache mvaComputer
Definition:
TtFullHadSignalSelMVATrainer.h:42
HelperMacros.h
TtFullHadSignalSelMVATrainer::weight_
double weight_
Definition:
TtFullHadSignalSelMVATrainer.h:40
edm::EventSetup
Definition:
EventSetup.h:58
Jet.h
InputTag.h
TtFullHadSignalSelMVATrainer::whatData_
int whatData_
Definition:
TtFullHadSignalSelMVATrainer.h:37
TtFullHadSignalSelMVATrainer::~TtFullHadSignalSelMVATrainer
~TtFullHadSignalSelMVATrainer() override
MVAComputerCache.h
MVA_COMPUTER_CONTAINER_DEFINE
#define MVA_COMPUTER_CONTAINER_DEFINE(N)
Definition:
HelperMacros.h:51
TtFullHadSignalSelMVATrainer::analyze
void analyze(const edm::Event &evt, const edm::EventSetup &setup) override
TtFullHadSignalSelMVATrainer::selEv
int selEv
Definition:
TtFullHadSignalSelMVATrainer.h:39
Frameworkfwd.h
EventSetup.h
TtFullHadSignalSelMVATrainer::maxEv_
int maxEv_
Definition:
TtFullHadSignalSelMVATrainer.h:38
TtFullHadSignalSelMVATrainer::jetsToken_
edm::EDGetTokenT< std::vector< pat::Jet > > jetsToken_
Definition:
TtFullHadSignalSelMVATrainer.h:34
TtEvent.h
ParameterSet.h
edm::Event
Definition:
Event.h:73
Generated for CMSSW Reference Manual by
1.8.16