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 public:
25  struct Configuration {
26  // weight files for the regression
27  std::vector<std::string> ecalRegressionWeightLabels;
29  std::vector<std::string> ecalRegressionWeightFiles;
30  std::vector<std::string> combinationRegressionWeightLabels;
32  std::vector<std::string> combinationRegressionWeightFiles;
33  };
34 
36  void checkSetup(const edm::EventSetup&);
37  void readEvent(const edm::Event&);
40  const edm::Handle<EcalRecHitCollection>& rechitsEB,
41  const edm::Handle<EcalRecHitCollection>& rechitsEE) const;
42 
45 
46 private:
49  const edm::Handle<EcalRecHitCollection>& rechitsEB,
50  const edm::Handle<EcalRecHitCollection>& rechitsEE,
51  double& energyFactor,
52  double& errorFactor) const;
53 
54 private:
60 
61  unsigned long long caloTopologyCacheId_;
62  unsigned long long caloGeometryCacheId_;
63  unsigned long long regressionCacheId_;
64 
65  // edm::ESHandle<GBRForest> ecalRegBarrel_ ;
71 };
72 
73 #endif
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_