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
Handle.h
RegressionHelper::Configuration::ecalRegressionWeightLabels
std::vector< std::string > ecalRegressionWeightLabels
Definition: RegressionHelper.h:27
RegressionHelper::ecalRegEndcap_
const GBRForest * ecalRegEndcap_
Definition: RegressionHelper.h:67
ESHandle.h
RegressionHelper::RegressionHelper
RegressionHelper(const Configuration &)
Definition: RegressionHelper.cc:11
RegressionHelper::Configuration::combinationRegressionWeightLabels
std::vector< std::string > combinationRegressionWeightLabels
Definition: RegressionHelper.h:30
reco::SuperCluster
Definition: SuperCluster.h:18
RegressionHelper::caloGeometryCacheId_
unsigned long long caloGeometryCacheId_
Definition: RegressionHelper.h:62
RegressionHelper
Definition: RegressionHelper.h:23
GBRForest
Definition: GBRForest.h:25
RegressionHelper::combinationReg_
const GBRForest * combinationReg_
Definition: RegressionHelper.h:70
RegressionHelper::caloTopologyCacheId_
unsigned long long caloTopologyCacheId_
Definition: RegressionHelper.h:61
RegressionHelper::readEvent
void readEvent(const edm::Event &)
Definition: RegressionHelper.cc:125
RegressionHelper::ecalRegErrorBarrel_
const GBRForest * ecalRegErrorBarrel_
Definition: RegressionHelper.h:68
RegressionHelper::ecalRegBarrel_
const GBRForest * ecalRegBarrel_
Definition: RegressionHelper.h:66
GBRForest.h
edm::Handle< reco::VertexCollection >
CaloTopology
Definition: CaloTopology.h:19
EcalRecHitCollections.h
RegressionHelper::Configuration::combinationWeightsFromDB
bool combinationWeightsFromDB
Definition: RegressionHelper.h:31
RegressionHelper::applyCombinationRegression
void applyCombinationRegression(reco::GsfElectron &ele) const
Definition: RegressionHelper.cc:152
RegressionHelper::applyEcalRegression
void applyEcalRegression(reco::GsfElectron &electron, const edm::Handle< reco::VertexCollection > &vertices, const edm::Handle< EcalRecHitCollection > &rechitsEB, const edm::Handle< EcalRecHitCollection > &rechitsEE) const
Definition: RegressionHelper.cc:23
CaloGeometry
Definition: CaloGeometry.h:21
RegressionHelper::cfg_
const Configuration cfg_
Definition: RegressionHelper.h:55
RegressionHelper::caloTopology_
const CaloTopology * caloTopology_
Definition: RegressionHelper.h:56
RegressionHelper::Configuration::combinationRegressionWeightFiles
std::vector< std::string > combinationRegressionWeightFiles
Definition: RegressionHelper.h:32
metsig::electron
Definition: SignAlgoResolutions.h:48
reco::GsfElectron
Definition: GsfElectron.h:35
GsfElectron.h
RegressionHelper::combinationRegressionInitialized_
bool combinationRegressionInitialized_
Definition: RegressionHelper.h:59
RegressionHelper::ecalRegErrorEndcap_
const GBRForest * ecalRegErrorEndcap_
Definition: RegressionHelper.h:69
Vertex.h
RegressionHelper::regressionCacheId_
unsigned long long regressionCacheId_
Definition: RegressionHelper.h:63
RegressionHelper::caloGeometry_
const CaloGeometry * caloGeometry_
Definition: RegressionHelper.h:57
Event.h
edm::EventSetup
Definition: EventSetup.h:57
RegressionHelper::checkSetup
void checkSetup(const edm::EventSetup &)
Definition: RegressionHelper.cc:33
EcalRecHit.h
CaloTopology.h
VertexFwd.h
RegressionHelper::getEcalRegression
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
Definition: RegressionHelper.cc:127
SuperCluster.h
CaloGeometry.h
RegressionHelper::Configuration::ecalWeightsFromDB
bool ecalWeightsFromDB
Definition: RegressionHelper.h:28
RegressionHelper::ecalRegressionInitialized_
bool ecalRegressionInitialized_
Definition: RegressionHelper.h:58
EventSetup.h
ConsumesCollector.h
ParameterSet.h
RegressionHelper::~RegressionHelper
~RegressionHelper()
Definition: RegressionHelper.cc:21
edm::Event
Definition: Event.h:73
RegressionHelper::Configuration::ecalRegressionWeightFiles
std::vector< std::string > ecalRegressionWeightFiles
Definition: RegressionHelper.h:29
RegressionHelper::Configuration
Definition: RegressionHelper.h:25
pwdgSkimBPark_cfi.vertices
vertices
Definition: pwdgSkimBPark_cfi.py:7