Main Page
Namespaces
Classes
Package Documentation
src
PhysicsTools
MVATrainer
interface
MVATrainerFileSave.h
Go to the documentation of this file.
1
#ifndef PhysicsTools_MVATrainer_MVATrainerFileSave_h
2
#define PhysicsTools_MVATrainer_MVATrainerFileSave_h
3
4
#include <memory>
5
#include <vector>
6
#include <string>
7
8
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
9
#include "
FWCore/Framework/interface/Event.h
"
10
#include "
FWCore/Framework/interface/EventSetup.h
"
11
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
12
13
#include "
CondFormats/PhysicsToolsObjects/interface/MVAComputer.h
"
14
15
namespace
PhysicsTools
{
16
17
class
MVATrainerFileSave
:
public
edm::EDAnalyzer
{
18
public
:
19
explicit
MVATrainerFileSave
(
const
edm::ParameterSet
¶ms);
20
21
void
analyze
(
const
edm::Event
&
iEvent
,
22
const
edm::EventSetup
& iSetup)
override
;
23
24
void
endJob
()
override
;
25
26
protected
:
27
virtual
const
Calibration::MVAComputerContainer
*
28
getToPut
(
const
edm::EventSetup
& es)
const
= 0;
29
30
bool
trained
;
31
32
private
:
33
typedef
std::map<std::string, std::string>
LabelFileMap
;
34
35
LabelFileMap
toPut
;
36
std::unique_ptr<Calibration::MVAComputerContainer>
calib
;
37
bool
saved
;
38
};
39
40
}
// namespace PhysicsTools
41
42
#endif // PhysicsTools_MVATrainer_MVATrainerFileSave_h
PhysicsTools::MVATrainerFileSave
Definition:
MVATrainerFileSave.h:17
Event.h
EventSetup.h
MVAComputer.h
PhysicsTools::MVATrainerFileSave::getToPut
virtual const Calibration::MVAComputerContainer * getToPut(const edm::EventSetup &es) const =0
PhysicsTools::MVATrainerFileSave::MVATrainerFileSave
MVATrainerFileSave(const edm::ParameterSet ¶ms)
Definition:
MVATrainerFileSave.cc:23
ParameterSet.h
iEvent
int iEvent
Definition:
GenABIO.cc:224
PhysicsTools::MVATrainerFileSave::trained
bool trained
Definition:
MVATrainerFileSave.h:30
PhysicsTools
Definition:
Histogram.h:13
edm::EventSetup
Definition:
EventSetup.h:57
PhysicsTools::MVATrainerFileSave::saved
bool saved
Definition:
MVATrainerFileSave.h:37
edm::EDAnalyzer
Definition:
EDAnalyzer.h:29
EDAnalyzer.h
PhysicsTools::MVATrainerFileSave::toPut
LabelFileMap toPut
Definition:
MVATrainerFileSave.h:35
PhysicsTools::MVATrainerFileSave::analyze
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
Definition:
MVATrainerFileSave.cc:38
PhysicsTools::MVATrainerFileSave::calib
std::unique_ptr< Calibration::MVAComputerContainer > calib
Definition:
MVATrainerFileSave.h:36
PhysicsTools::Calibration::MVAComputerContainer
Definition:
MVAComputer.h:247
PhysicsTools::MVATrainerFileSave::LabelFileMap
std::map< std::string, std::string > LabelFileMap
Definition:
MVATrainerFileSave.h:33
PhysicsTools::MVATrainerFileSave::endJob
void endJob() override
Definition:
MVATrainerFileSave.cc:58
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::Event
Definition:
Event.h:71
Generated for CMSSW Reference Manual by
1.8.11