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
const edm::ESGetToken< GBRForestD, GBRDWrapperRcd > eeLowEtForestToken_
const edm::ESGetToken< GBRForestD, GBRDWrapperRcd > ebHighEtForestToken_
void setEventContent(const edm::EventSetup &iSetup)
bool useLowEtBin(const float et, const bool isSaturated) const
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
const edm::ESGetToken< GBRForestD, GBRDWrapperRcd > eeHighEtForestToken_
const EgammaBDTOutputTransformer outputTransformerHighEt_
const EgammaBDTOutputTransformer outputTransformerLowEt_
static edm::ParameterSetDescription makePSetDescription()
float operator()(const float et, const bool isEB, const bool isSaturated, const float *data) const
const edm::ESGetToken< GBRForestD, GBRDWrapperRcd > ebLowEtForestToken_
bool isSaturated(const Digi &digi, const int &maxADCvalue, int ifirst, int n)
HLT enums.
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
EgammaRegressionContainer(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)