CMS 3D CMS Logo

RegressionHelper.h
Go to the documentation of this file.
1 
2 #ifndef __EgammaElectronAlgos_RegressionHelper_h__
3 #define __EgammaElectronAlgos_RegressionHelper_h__
4 
10 
14 
22 
24 
25 
26 
27 class EcalClusterLocal;
28 
30  public:
32  {
33  // weight files for the regression
34  std::vector<std::string> ecalRegressionWeightLabels;
36  std::vector<std::string> ecalRegressionWeightFiles;
37  std::vector<std::string> combinationRegressionWeightLabels;
39  std::vector<std::string> combinationRegressionWeightFiles;
40  };
41 
42  RegressionHelper( const Configuration & ) ;
43  void checkSetup( const edm::EventSetup & ) ;
44  void readEvent( const edm::Event & ) ;
47  const edm::Handle<EcalRecHitCollection>& rechitsEB,
48  const edm::Handle<EcalRecHitCollection>& rechitsEE) const;
49 
52 
53  private:
56  const edm::Handle<EcalRecHitCollection>& rechitsEB,
57  const edm::Handle<EcalRecHitCollection>& rechitsEE,
58  double & energyFactor,
59  double & errorFactor) const ;
60 
61  private:
62 
68 
69  unsigned long long caloTopologyCacheId_;
70  unsigned long long caloGeometryCacheId_;
71  unsigned long long regressionCacheId_;
72 
73  // edm::ESHandle<GBRForest> ecalRegBarrel_ ;
79 
81 };
82 
83 #endif
84 
85 
86 
std::vector< std::string > ecalRegressionWeightFiles
unsigned long long caloGeometryCacheId_
void applyCombinationRegression(reco::GsfElectron &ele) const
std::vector< std::string > combinationRegressionWeightLabels
unsigned long long regressionCacheId_
const GBRForest * ecalRegEndcap_
std::vector< std::string > ecalRegressionWeightLabels
unsigned long long caloTopologyCacheId_
const Configuration cfg_
const CaloTopology * caloTopology_
const GBRForest * ecalRegBarrel_
const GBRForest * ecalRegErrorBarrel_
std::vector< std::string > combinationRegressionWeightFiles
void getEcalRegression(const reco::SuperCluster &sc, const edm::Handle< reco::VertexCollection > &vertices, const edm::Handle< EcalRecHitCollection > &rechitsEB, const edm::Handle< EcalRecHitCollection > &rechitsEE, double &energyFactor, double &errorFactor) const
void readEvent(const edm::Event &)
const GBRForest * ecalRegErrorEndcap_
void applyEcalRegression(reco::GsfElectron &electron, const edm::Handle< reco::VertexCollection > &vertices, const edm::Handle< EcalRecHitCollection > &rechitsEB, const edm::Handle< EcalRecHitCollection > &rechitsEE) const
RegressionHelper(const Configuration &)
bool combinationRegressionInitialized_
EcalClusterLocal ecl_
void checkSetup(const edm::EventSetup &)
const CaloGeometry * caloGeometry_
const GBRForest * combinationReg_