src
RecoEgamma
ElectronIdentification
interface
ElectronMVAEstimator.h
Go to the documentation of this file.
1
#ifndef __RecoEgamma_ElectronIdentification_ElectronMVAEstimator_H__
2
#define __RecoEgamma_ElectronIdentification_ElectronMVAEstimator_H__
3
4
#include "
DataFormats/EgammaCandidates/interface/GsfElectron.h
"
5
#include "
CondFormats/GBRForest/interface/GBRForest.h
"
6
7
#include <memory>
8
#include <string>
9
10
class
ElectronMVAEstimator
{
11
public
:
12
struct
Configuration
{
13
std::vector<std::string>
vweightsfiles
;
14
};
15
ElectronMVAEstimator
();
16
ElectronMVAEstimator
(
const
std::string
&
fileName
);
17
ElectronMVAEstimator
(
const
Configuration
&);
18
~ElectronMVAEstimator
() { ; }
19
double
mva
(
const
reco::GsfElectron
& myElectron,
int
nvertices = 0)
const
;
20
21
private
:
22
const
Configuration
cfg_
;
23
void
bindVariables
(
float
vars
[18])
const
;
24
25
std::vector<std::unique_ptr<const GBRForest> >
gbr_
;
26
};
27
28
#endif
reco::GsfElectron
Definition:
GsfElectron.h:36
ElectronMVAEstimator::gbr_
std::vector< std::unique_ptr< const GBRForest > > gbr_
Definition:
ElectronMVAEstimator.h:25
ElectronMVAEstimator
Definition:
ElectronMVAEstimator.h:10
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
ElectronMVAEstimator::cfg_
const Configuration cfg_
Definition:
ElectronMVAEstimator.h:22
ElectronMVAEstimator::mva
double mva(const reco::GsfElectron &myElectron, int nvertices=0) const
Definition:
ElectronMVAEstimator.cc:23
ElectronMVAEstimator::Configuration
Definition:
ElectronMVAEstimator.h:12
GsfElectron.h
ElectronMVAEstimator::~ElectronMVAEstimator
~ElectronMVAEstimator()
Definition:
ElectronMVAEstimator.h:18
ElectronMVAEstimator::bindVariables
void bindVariables(float vars[18]) const
Definition:
ElectronMVAEstimator.cc:85
ElectronMVAEstimator::ElectronMVAEstimator
ElectronMVAEstimator()
Definition:
ElectronMVAEstimator.cc:8
GBRForest.h
ElectronMVAEstimator::Configuration::vweightsfiles
std::vector< std::string > vweightsfiles
Definition:
ElectronMVAEstimator.h:13
MillePedeFileConverter_cfg.fileName
fileName
Definition:
MillePedeFileConverter_cfg.py:32
vars
vars
Definition:
DeepTauId.cc:117
Generated for CMSSW Reference Manual by
1.8.14