CMS 3D CMS Logo

SoftElectronMVAEstimator.h
Go to the documentation of this file.
1 #ifndef __ElectronIdentification_SoftElectronMVAEstimator_H__
2 #define __ElectronIdentification_SoftElectronMVAEstimator_H__
3 
8 
9 #include <memory>
10 #include <string>
11 
13 public:
14  constexpr static unsigned int ExpectedNBins = 1;
15 
16  struct Configuration {
17  std::vector<std::string> vweightsfiles;
18  };
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:
29  std::vector<std::unique_ptr<const GBRForest> > gbr_;
30 };
31 
32 #endif
SoftElectronMVAEstimator::SoftElectronMVAEstimator
SoftElectronMVAEstimator(const Configuration &)
Definition: SoftElectronMVAEstimator.cc:9
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:24
SoftElectronMVAEstimator::mva
double mva(const reco::GsfElectron &myElectron, const reco::VertexCollection &) const
Definition: SoftElectronMVAEstimator.cc:26
SoftElectronMVAEstimator::Configuration::vweightsfiles
std::vector< std::string > vweightsfiles
Definition: SoftElectronMVAEstimator.h:17
vars
vars
Definition: DeepTauId.cc:164
reco::GsfElectron
Definition: GsfElectron.h:34
SoftElectronMVAEstimator::cfg_
const Configuration cfg_
Definition: SoftElectronMVAEstimator.h:28
SoftElectronMVAEstimator::bindVariables
void bindVariables(float vars[25]) const
Definition: SoftElectronMVAEstimator.cc:95
GsfElectron.h
Vertex.h
SoftElectronMVAEstimator::gbr_
std::vector< std::unique_ptr< const GBRForest > > gbr_
Definition: SoftElectronMVAEstimator.h:29
VertexFwd.h