CMS 3D CMS Logo

EgammaRegressionContainer.cc
Go to the documentation of this file.
2 
8 
10  : outputTransformerLowEt_(iConfig.getParameter<double>("rangeMinLowEt"),
11  iConfig.getParameter<double>("rangeMaxLowEt")),
12  outputTransformerHighEt_(iConfig.getParameter<double>("rangeMinHighEt"),
13  iConfig.getParameter<double>("rangeMaxHighEt")),
14  forceHighEnergyTrainingIfSaturated_(iConfig.getParameter<bool>("forceHighEnergyTrainingIfSaturated")),
15  lowEtHighEtBoundary_(iConfig.getParameter<double>("lowEtHighEtBoundary")),
16  ebLowEtForestToken_{cc.esConsumes(iConfig.getParameter<edm::ESInputTag>("ebLowEtForestName"))},
17  ebHighEtForestToken_{cc.esConsumes(iConfig.getParameter<edm::ESInputTag>("ebHighEtForestName"))},
18  eeLowEtForestToken_{cc.esConsumes(iConfig.getParameter<edm::ESInputTag>("eeLowEtForestName"))},
19  eeHighEtForestToken_{cc.esConsumes(iConfig.getParameter<edm::ESInputTag>("eeHighEtForestName"))} {}
20 
23  desc.add<double>("rangeMinLowEt", -1.);
24  desc.add<double>("rangeMaxLowEt", 3.0);
25  desc.add<double>("rangeMinHighEt", -1.);
26  desc.add<double>("rangeMaxHighEt", 3.0);
27  desc.add<double>("lowEtHighEtBoundary", 50.);
28  desc.add<bool>("forceHighEnergyTrainingIfSaturated", false);
29  desc.add<edm::ESInputTag>("ebLowEtForestName", edm::ESInputTag{"", "electron_eb_ECALTRK_lowpt"});
30  desc.add<edm::ESInputTag>("ebHighEtForestName", edm::ESInputTag{"", "electron_eb_ECALTRK"});
31  desc.add<edm::ESInputTag>("eeLowEtForestName", edm::ESInputTag{"", "electron_ee_ECALTRK_lowpt"});
32  desc.add<edm::ESInputTag>("eeHighEtForestName", edm::ESInputTag{"", "electron_ee_ECALTRK"});
33  return desc;
34 }
35 
41 }
42 
44  const bool isEB,
45  const bool isSaturated,
46  const float* data) const {
47  if (useLowEtBin(et, isSaturated)) {
48  if (isEB)
50  else
52  } else {
53  if (isEB)
55  else
57  }
58 }
59 
60 bool EgammaRegressionContainer::useLowEtBin(const float et, const bool isSaturated) const {
62  return false;
63  else
64  return et < lowEtHighEtBoundary_;
65 }
EgammaRegressionContainer::forceHighEnergyTrainingIfSaturated_
bool forceHighEnergyTrainingIfSaturated_
Definition: EgammaRegressionContainer.h:44
EgammaRegressionContainer::outputTransformerLowEt_
const EgammaBDTOutputTransformer outputTransformerLowEt_
Definition: EgammaRegressionContainer.h:41
electrons_cff.bool
bool
Definition: electrons_cff.py:366
edm::ESInputTag
Definition: ESInputTag.h:87
GBRForestD::GetResponse
double GetResponse(const float *vector) const
Definition: GBRForestD.h:49
EgammaRegressionContainer::eeHighEtForestToken_
const edm::ESGetToken< GBRForestD, GBRDWrapperRcd > eeHighEtForestToken_
Definition: EgammaRegressionContainer.h:50
ESHandle.h
EgammaRegressionContainer::lowEtHighEtBoundary_
const float lowEtHighEtBoundary_
Definition: EgammaRegressionContainer.h:45
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
EgammaRegressionContainer::setEventContent
void setEventContent(const edm::EventSetup &iSetup)
Definition: EgammaRegressionContainer.cc:36
EgammaRegressionContainer::ebLowEtForest_
const GBRForestD * ebLowEtForest_
Definition: EgammaRegressionContainer.h:52
EgammaRegressionContainer::ebLowEtForestToken_
const edm::ESGetToken< GBRForestD, GBRDWrapperRcd > ebLowEtForestToken_
Definition: EgammaRegressionContainer.h:47
EgammaRegressionContainer::makePSetDescription
static edm::ParameterSetDescription makePSetDescription()
Definition: EgammaRegressionContainer.cc:21
EgammaRegressionContainer::ebHighEtForestToken_
const edm::ESGetToken< GBRForestD, GBRDWrapperRcd > ebHighEtForestToken_
Definition: EgammaRegressionContainer.h:48
CastorSimpleRecAlgoImpl::isSaturated
bool isSaturated(const Digi &digi, const int &maxADCvalue, int ifirst, int n)
Definition: CastorSimpleRecAlgo.cc:97
EgammaRegressionContainer::EgammaRegressionContainer
EgammaRegressionContainer(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
Definition: EgammaRegressionContainer.cc:9
EgammaRegressionContainer::eeLowEtForestToken_
const edm::ESGetToken< GBRForestD, GBRDWrapperRcd > eeLowEtForestToken_
Definition: EgammaRegressionContainer.h:49
ParameterSetDescription.h
EgammaRegressionContainer.h
EgammaRegressionContainer::operator()
float operator()(const float et, const bool isEB, const bool isSaturated, const float *data) const
Definition: EgammaRegressionContainer.cc:43
edm::ParameterSet
Definition: ParameterSet.h:47
EgammaRegressionContainer::eeHighEtForest_
const GBRForestD * eeHighEtForest_
Definition: EgammaRegressionContainer.h:55
EgHLTOffHistBins_cfi.et
et
Definition: EgHLTOffHistBins_cfi.py:8
edm::EventSetup
Definition: EventSetup.h:58
cc
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
EgammaRegressionContainer::eeLowEtForest_
const GBRForestD * eeLowEtForest_
Definition: EgammaRegressionContainer.h:54
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
EventSetup.h
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
ConsumesCollector.h
EgammaRegressionContainer::outputTransformerHighEt_
const EgammaBDTOutputTransformer outputTransformerHighEt_
Definition: EgammaRegressionContainer.h:42
ParameterSet.h
EgammaRegressionContainer::useLowEtBin
bool useLowEtBin(const float et, const bool isSaturated) const
Definition: EgammaRegressionContainer.cc:60
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
EgammaRegressionContainer::ebHighEtForest_
const GBRForestD * ebHighEtForest_
Definition: EgammaRegressionContainer.h:53