Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
PhysicsTools
MVATrainer
src
ProcCount.cc
Go to the documentation of this file.
1
#include <iostream>
2
#include <vector>
3
#include <string>
4
5
#include <xercesc/dom/DOM.hpp>
6
7
#include "
FWCore/Utilities/interface/Exception.h
"
8
9
#include "
PhysicsTools/MVAComputer/interface/AtomicId.h
"
10
11
#include "
PhysicsTools/MVATrainer/interface/MVATrainer.h
"
12
#include "
PhysicsTools/MVATrainer/interface/TrainProcessor.h
"
13
14
XERCES_CPP_NAMESPACE_USE
15
16
using namespace
PhysicsTools;
17
18
namespace
{
// anonymous
19
20
class
ProcCount :
public
TrainProcessor
{
21
public
:
22
typedef
TrainProcessor::Registry<ProcCount>::Type
Registry;
23
24
ProcCount(
const
char
*
name
,
const
AtomicId
*
id
,
25
MVATrainer
*trainer);
26
virtual
~ProcCount();
27
28
virtual
void
configure(DOMElement *
elem
)
override
;
29
virtual
Calibration::VarProcessor
*getCalibration()
const override
;
30
31
private
:
32
std::vector<double> neutrals;
33
};
34
35
static
ProcCount::Registry
registry
(
"ProcCount"
);
36
37
ProcCount::ProcCount(
const
char
*
name
,
const
AtomicId
*
id
,
38
MVATrainer
*trainer) :
39
TrainProcessor
(name, id, trainer)
40
{
41
}
42
43
ProcCount::~ProcCount()
44
{
45
}
46
47
void
ProcCount::configure(DOMElement *
elem
)
48
{
49
trained =
true
;
50
}
51
52
Calibration::VarProcessor
*ProcCount::getCalibration()
const
53
{
54
return
new
Calibration::ProcCount
;
55
}
56
57
}
// anonymous namespace
MVATrainer.h
PhysicsTools::ProcessRegistryImpl
template to generate a registry singleton for a type.
Definition:
ProcessRegistry.h:29
PhysicsTools::TrainProcessor
Definition:
TrainProcessor.h:28
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:77
AtomicId.h
TrainProcessor.h
PhysicsTools::AtomicId
Cheap generic unique keyword identifier class.
Definition:
AtomicId.h:31
HTMLExport.elem
def elem
Definition:
HTMLExport.py:18
PhysicsTools::MVATrainer
Definition:
MVATrainer.h:27
PhysicsTools::Calibration::ProcCount
Definition:
MVAComputer.h:84
Exception.h
PhysicsTools::registry
static Interceptor::Registry registry("Interceptor")
PhysicsTools::Calibration::VarProcessor
Definition:
MVAComputer.h:52
Generated for CMSSW Reference Manual by
1.8.5