RecoEgamma
ElectronIdentification
interface
SoftElectronMVAEstimator.h
Go to the documentation of this file.
1
#ifndef __ElectronIdentification_SoftElectronMVAEstimator_H__
2
#define __ElectronIdentification_SoftElectronMVAEstimator_H__
3
4
#include "
DataFormats/EgammaCandidates/interface/GsfElectron.h
"
5
#include "
DataFormats/VertexReco/interface/Vertex.h
"
6
#include "
DataFormats/VertexReco/interface/VertexFwd.h
"
7
#include "
CondFormats/EgammaObjects/interface/GBRForest.h
"
8
9
#include <memory>
10
#include <string>
11
12
class
SoftElectronMVAEstimator
{
13
public
:
14
constexpr
static
unsigned
int
ExpectedNBins
= 1;
15
16
struct
Configuration
{
17
std::vector<std::string>
vweightsfiles
;
18
};
19
SoftElectronMVAEstimator
(
const
Configuration
&);
20
~SoftElectronMVAEstimator
();
21
double
mva
(
const
reco::GsfElectron
& myElectron,
const
reco::VertexCollection
&)
const
;
22
23
private
:
24
void
bindVariables
(
float
vars
[25])
const
;
25
void
init
();
26
27
private
:
28
const
Configuration
cfg_
;
29
std::vector<std::unique_ptr<const GBRForest> >
gbr_
;
30
};
31
32
#endif
SoftElectronMVAEstimator::SoftElectronMVAEstimator
SoftElectronMVAEstimator(const Configuration &)
Definition:
SoftElectronMVAEstimator.cc:8
SoftElectronMVAEstimator
Definition:
SoftElectronMVAEstimator.h:12
SoftElectronMVAEstimator::Configuration
Definition:
SoftElectronMVAEstimator.h:16
SoftElectronMVAEstimator::init
void init()
reco::VertexCollection
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition:
VertexFwd.h:9
SoftElectronMVAEstimator::ExpectedNBins
constexpr static unsigned int ExpectedNBins
Definition:
SoftElectronMVAEstimator.h:14
GBRForest.h
SoftElectronMVAEstimator::~SoftElectronMVAEstimator
~SoftElectronMVAEstimator()
Definition:
SoftElectronMVAEstimator.cc:23
SoftElectronMVAEstimator::mva
double mva(const reco::GsfElectron &myElectron, const reco::VertexCollection &) const
Definition:
SoftElectronMVAEstimator.cc:25
SoftElectronMVAEstimator::Configuration::vweightsfiles
std::vector< std::string > vweightsfiles
Definition:
SoftElectronMVAEstimator.h:17
vars
vars
Definition:
DeepTauId.cc:163
reco::GsfElectron
Definition:
GsfElectron.h:35
SoftElectronMVAEstimator::cfg_
const Configuration cfg_
Definition:
SoftElectronMVAEstimator.h:28
SoftElectronMVAEstimator::bindVariables
void bindVariables(float vars[25]) const
Definition:
SoftElectronMVAEstimator.cc:94
GsfElectron.h
Vertex.h
SoftElectronMVAEstimator::gbr_
std::vector< std::unique_ptr< const GBRForest > > gbr_
Definition:
SoftElectronMVAEstimator.h:29
VertexFwd.h
Generated for CMSSW Reference Manual by
1.8.16