CMS 3D CMS Logo

EgammaRegressionContainer.h
Go to the documentation of this file.
1 #ifndef RecoEgamma_EgammaTools_EgammaRegressionContainer_h
2 #define RecoEgamma_EgammaTools_EgammaRegressionContainer_h
3 
4 //author: Sam Harper (RAL)
5 //description:
6 // egamma energy regressions are binned in barrel/endcap and pt
7 // this simply contains the regression for each of (currently) 4 bins
8 // as well as the parameters to convert the raw BDT output back to
9 // the physical real value
10 // currently e/gamma also can optionally force saturated electrons
11 // to always be in the high et training
12 
17 
18 #include <string>
19 
20 namespace edm {
21  class ParameterSet;
23  class EventSetup;
24  class ConsumesCollector;
25 } // namespace edm
26 
28 public:
31 
33 
34  void setEventContent(const edm::EventSetup& iSetup);
35 
36  float operator()(const float et, const bool isEB, const bool isSaturated, const float* data) const;
37 
38  bool useLowEtBin(const float et, const bool isSaturated) const;
39 
40 private:
43 
45  const float lowEtHighEtBoundary_;
46 
51 
52  const GBRForestD* ebLowEtForest_ = nullptr; //not owned
53  const GBRForestD* ebHighEtForest_ = nullptr; //not owned
54  const GBRForestD* eeLowEtForest_ = nullptr; //not owned
55  const GBRForestD* eeHighEtForest_ = nullptr; //not owned
56 };
57 
58 #endif
EgammaRegressionContainer::forceHighEnergyTrainingIfSaturated_
bool forceHighEnergyTrainingIfSaturated_
Definition: EgammaRegressionContainer.h:44
EgammaRegressionContainer::~EgammaRegressionContainer
~EgammaRegressionContainer()
Definition: EgammaRegressionContainer.h:30
EgammaRegressionContainer::outputTransformerLowEt_
const EgammaBDTOutputTransformer outputTransformerLowEt_
Definition: EgammaRegressionContainer.h:41
EgammaRegressionContainer::eeHighEtForestToken_
const edm::ESGetToken< GBRForestD, GBRDWrapperRcd > eeHighEtForestToken_
Definition: EgammaRegressionContainer.h:50
EgammaBDTOutputTransformer.h
edm
HLT enums.
Definition: AlignableModifier.h:19
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
ESGetToken.h
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
GBRDWrapperRcd.h
GBRForestD
Definition: GBRForestD.h:25
GBRForestD.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
ParameterSet
Definition: Functions.h:16
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::ESGetToken< GBRForestD, GBRDWrapperRcd >
EgammaBDTOutputTransformer
Definition: EgammaBDTOutputTransformer.h:11
EgammaRegressionContainer::eeLowEtForest_
const GBRForestD * eeLowEtForest_
Definition: EgammaRegressionContainer.h:54
ParameterSetDescription
EgammaRegressionContainer
Definition: EgammaRegressionContainer.h:27
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
EgammaRegressionContainer::outputTransformerHighEt_
const EgammaBDTOutputTransformer outputTransformerHighEt_
Definition: EgammaRegressionContainer.h:42
EventSetup
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