CMS 3D CMS Logo

RegressionHelper.h
Go to the documentation of this file.
1 #ifndef __EgammaElectronAlgos_RegressionHelper_h__
2 #define __EgammaElectronAlgos_RegressionHelper_h__
3 
9 
13 
21 
24 
26 public:
27  struct Configuration {
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  struct ESGetTokens {
38  ESGetTokens(Configuration const& cfg, bool useEcalReg, bool useCombinationReg, edm::ConsumesCollector& cc);
39 
47  };
48 
49  RegressionHelper(Configuration const&, bool useEcalReg, bool useCombinationReg, edm::ConsumesCollector& cc);
50  void checkSetup(const edm::EventSetup&);
53  const EcalRecHitCollection& rechitsEB,
54  const EcalRecHitCollection& rechitsEE) const;
55 
57 
58 private:
61  const EcalRecHitCollection& rechitsEB,
62  const EcalRecHitCollection& rechitsEE,
63  double& energyFactor,
64  double& errorFactor) const;
65 
66 private:
69 
74 
80 };
81 
82 #endif
RegressionHelper::ESGetTokens
Definition: RegressionHelper.h:37
Handle.h
RegressionHelper::Configuration::ecalRegressionWeightLabels
std::vector< std::string > ecalRegressionWeightLabels
Definition: RegressionHelper.h:29
RegressionHelper::ecalRegEndcap_
const GBRForest * ecalRegEndcap_
Definition: RegressionHelper.h:76
ESHandle.h
RegressionHelper::ESGetTokens::caloGeometry
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeometry
Definition: RegressionHelper.h:41
RegressionHelper::Configuration::combinationRegressionWeightLabels
std::vector< std::string > combinationRegressionWeightLabels
Definition: RegressionHelper.h:32
reco::SuperCluster
Definition: SuperCluster.h:18
GBRWrapperRcd.h
RegressionHelper
Definition: RegressionHelper.h:25
GBRForest
Definition: GBRForest.h:25
reco::VertexCollection
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
RegressionHelper::combinationReg_
const GBRForest * combinationReg_
Definition: RegressionHelper.h:79
RegressionHelper::ESGetTokens::ecalRegErrorBarrel
edm::ESGetToken< GBRForest, GBRWrapperRcd > ecalRegErrorBarrel
Definition: RegressionHelper.h:44
edm::SortedCollection< EcalRecHit >
RegressionHelper::ecalRegErrorBarrel_
const GBRForest * ecalRegErrorBarrel_
Definition: RegressionHelper.h:77
RegressionHelper::RegressionHelper
RegressionHelper(Configuration const &, bool useEcalReg, bool useCombinationReg, edm::ConsumesCollector &cc)
Definition: RegressionHelper.cc:27
RegressionHelper::ESGetTokens::ecalRegEndcap
edm::ESGetToken< GBRForest, GBRWrapperRcd > ecalRegEndcap
Definition: RegressionHelper.h:43
RegressionHelper::ecalRegBarrel_
const GBRForest * ecalRegBarrel_
Definition: RegressionHelper.h:75
GBRForest.h
CaloTopology
Definition: CaloTopology.h:19
EcalRecHitCollections.h
RegressionHelper::Configuration::combinationWeightsFromDB
bool combinationWeightsFromDB
Definition: RegressionHelper.h:33
RegressionHelper::applyCombinationRegression
void applyCombinationRegression(reco::GsfElectron &ele) const
Definition: RegressionHelper.cc:114
CaloGeometry
Definition: CaloGeometry.h:21
RegressionHelper::cfg_
const Configuration cfg_
Definition: RegressionHelper.h:67
RegressionHelper::caloTopology_
const CaloTopology * caloTopology_
Definition: RegressionHelper.h:70
RegressionHelper::Configuration::combinationRegressionWeightFiles
std::vector< std::string > combinationRegressionWeightFiles
Definition: RegressionHelper.h:34
metsig::electron
Definition: SignAlgoResolutions.h:48
reco::GsfElectron
Definition: GsfElectron.h:35
GsfElectron.h
RegressionHelper::combinationRegressionInitialized_
bool combinationRegressionInitialized_
Definition: RegressionHelper.h:73
RegressionHelper::ESGetTokens::ESGetTokens
ESGetTokens(Configuration const &cfg, bool useEcalReg, bool useCombinationReg, edm::ConsumesCollector &cc)
Definition: RegressionHelper.cc:8
RegressionHelper::ecalRegErrorEndcap_
const GBRForest * ecalRegErrorEndcap_
Definition: RegressionHelper.h:78
RegressionHelper::ESGetTokens::caloTopology
edm::ESGetToken< CaloTopology, CaloTopologyRecord > caloTopology
Definition: RegressionHelper.h:40
Vertex.h
RegressionHelper::ESGetTokens::ecalRegErrorEndcap
edm::ESGetToken< GBRForest, GBRWrapperRcd > ecalRegErrorEndcap
Definition: RegressionHelper.h:45
RegressionHelper::caloGeometry_
const CaloGeometry * caloGeometry_
Definition: RegressionHelper.h:71
RegressionHelper::ESGetTokens::combinationReg
edm::ESGetToken< GBRForest, GBRWrapperRcd > combinationReg
Definition: RegressionHelper.h:46
Event.h
edm::EventSetup
Definition: EventSetup.h:57
cc
edm::ESGetToken< CaloTopology, CaloTopologyRecord >
RegressionHelper::ESGetTokens::ecalRegBarrel
edm::ESGetToken< GBRForest, GBRWrapperRcd > ecalRegBarrel
Definition: RegressionHelper.h:42
RegressionHelper::esGetTokens_
const ESGetTokens esGetTokens_
Definition: RegressionHelper.h:68
RegressionHelper::checkSetup
void checkSetup(const edm::EventSetup &)
Definition: RegressionHelper.cc:43
EcalRecHit.h
looper.cfg
cfg
Definition: looper.py:297
CaloTopology.h
VertexFwd.h
CaloTopologyRecord.h
SuperCluster.h
CaloGeometry.h
RegressionHelper::Configuration::ecalWeightsFromDB
bool ecalWeightsFromDB
Definition: RegressionHelper.h:30
RegressionHelper::ecalRegressionInitialized_
bool ecalRegressionInitialized_
Definition: RegressionHelper.h:72
EventSetup.h
ConsumesCollector.h
ParameterSet.h
RegressionHelper::applyEcalRegression
void applyEcalRegression(reco::GsfElectron &electron, const reco::VertexCollection &vertices, const EcalRecHitCollection &rechitsEB, const EcalRecHitCollection &rechitsEE) const
Definition: RegressionHelper.cc:33
RegressionHelper::Configuration::ecalRegressionWeightFiles
std::vector< std::string > ecalRegressionWeightFiles
Definition: RegressionHelper.h:31
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
RegressionHelper::getEcalRegression
void getEcalRegression(const reco::SuperCluster &sc, const reco::VertexCollection &vertices, const EcalRecHitCollection &rechitsEB, const EcalRecHitCollection &rechitsEE, double &energyFactor, double &errorFactor) const
Definition: RegressionHelper.cc:89
RegressionHelper::Configuration
Definition: RegressionHelper.h:27
pwdgSkimBPark_cfi.vertices
vertices
Definition: pwdgSkimBPark_cfi.py:7