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 
23 
25  public:
27  {
28  // weight files for the regression
29  std::vector<std::string> ecalRegressionWeightLabels;
31  std::vector<std::string> ecalRegressionWeightFiles;
32  std::vector<std::string> combinationRegressionWeightLabels;
34  std::vector<std::string> combinationRegressionWeightFiles;
35  };
36 
37  RegressionHelper( const Configuration & ) ;
38  void checkSetup( const edm::EventSetup & ) ;
39  void readEvent( const edm::Event & ) ;
42  const edm::Handle<EcalRecHitCollection>& rechitsEB,
43  const edm::Handle<EcalRecHitCollection>& rechitsEE) const;
44 
47 
48  private:
51  const edm::Handle<EcalRecHitCollection>& rechitsEB,
52  const edm::Handle<EcalRecHitCollection>& rechitsEE,
53  double & energyFactor,
54  double & errorFactor) const ;
55 
56  private:
57 
63 
64  unsigned long long caloTopologyCacheId_;
65  unsigned long long caloGeometryCacheId_;
66  unsigned long long regressionCacheId_;
67 
68  // edm::ESHandle<GBRForest> ecalRegBarrel_ ;
74 
75 };
76 
77 #endif
78 
79 
80 
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_
void checkSetup(const edm::EventSetup &)
const CaloGeometry * caloGeometry_
const GBRForest * combinationReg_