CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
EgammaRegressionContainer Class Reference

#include <EgammaRegressionContainer.h>

Public Member Functions

 EgammaRegressionContainer (const edm::ParameterSet &iConfig)
 
float operator() (const float et, const bool isEB, const bool isSaturated, const float *data) const
 
void setEventContent (const edm::EventSetup &iSetup)
 
bool useLowEtBin (const float et, const bool isSaturated) const
 
 ~EgammaRegressionContainer ()
 

Static Public Member Functions

static edm::ParameterSetDescription makePSetDescription ()
 

Private Attributes

const GBRForestDebHighEtForest_
 
const std::string ebHighEtForestName_
 
const GBRForestDebLowEtForest_
 
const std::string ebLowEtForestName_
 
const GBRForestDeeHighEtForest_
 
const std::string eeHighEtForestName_
 
const GBRForestDeeLowEtForest_
 
const std::string eeLowEtForestName_
 
bool forceHighEnergyTrainingIfSaturated_
 
const float lowEtHighEtBoundary_
 
const EgammaBDTOutputTransformer outputTransformerHighEt_
 
const EgammaBDTOutputTransformer outputTransformerLowEt_
 

Detailed Description

Definition at line 24 of file EgammaRegressionContainer.h.

Constructor & Destructor Documentation

EgammaRegressionContainer::EgammaRegressionContainer ( const edm::ParameterSet iConfig)

Definition at line 10 of file EgammaRegressionContainer.cc.

10  :
11  outputTransformerLowEt_(iConfig.getParameter<double>("rangeMinLowEt"),iConfig.getParameter<double>("rangeMaxLowEt")),
12  outputTransformerHighEt_(iConfig.getParameter<double>("rangeMinHighEt"),iConfig.getParameter<double>("rangeMaxHighEt")),
13  forceHighEnergyTrainingIfSaturated_(iConfig.getParameter<bool>("forceHighEnergyTrainingIfSaturated")),
14  lowEtHighEtBoundary_(iConfig.getParameter<double>("lowEtHighEtBoundary")),
15  ebLowEtForestName_(iConfig.getParameter<std::string>("ebLowEtForestName")),
16  ebHighEtForestName_(iConfig.getParameter<std::string>("ebHighEtForestName")),
17  eeLowEtForestName_(iConfig.getParameter<std::string>("eeLowEtForestName")),
18  eeHighEtForestName_(iConfig.getParameter<std::string>("eeHighEtForestName")),
19  ebLowEtForest_(nullptr),ebHighEtForest_(nullptr),
20  eeLowEtForest_(nullptr),eeHighEtForest_(nullptr)
21 {
22 
23 }
T getParameter(std::string const &) const
const EgammaBDTOutputTransformer outputTransformerHighEt_
const EgammaBDTOutputTransformer outputTransformerLowEt_
EgammaRegressionContainer::~EgammaRegressionContainer ( )
inline

Member Function Documentation

edm::ParameterSetDescription EgammaRegressionContainer::makePSetDescription ( )
static

Definition at line 25 of file EgammaRegressionContainer.cc.

References edm::ParameterSetDescription::add(), edm::EventSetup::get(), cmsBatch::handle, dataset::name, edm::ESHandle< T >::product(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by EpCombinationTool::makePSetDescription().

26 {
28  desc.add<double>("rangeMinLowEt",-1.);
29  desc.add<double>("rangeMaxLowEt",3.0);
30  desc.add<double>("rangeMinHighEt",-1.);
31  desc.add<double>("rangeMaxHighEt",3.0);
32  desc.add<double>("lowEtHighEtBoundary",50.);
33  desc.add<bool>("forceHighEnergyTrainingIfSaturated",false);
34  desc.add<std::string>("ebLowEtForestName","electron_eb_ECALTRK_lowpt");
35  desc.add<std::string>("ebHighEtForestName","electron_eb_ECALTRK");
36  desc.add<std::string>("eeLowEtForestName","electron_ee_ECALTRK_lowpt");
37  desc.add<std::string>("eeHighEtForestName","electron_ee_ECALTRK");
38  return desc;
39 }
ParameterDescriptionBase * add(U const &iLabel, T const &value)
float EgammaRegressionContainer::operator() ( const float  et,
const bool  isEB,
const bool  isSaturated,
const float *  data 
) const

Definition at line 57 of file EgammaRegressionContainer.cc.

References ebHighEtForest_, ebLowEtForest_, eeHighEtForest_, eeLowEtForest_, GBRForestD::GetResponse(), outputTransformerHighEt_, outputTransformerLowEt_, and useLowEtBin().

58 {
62  }else{
65  }
66 }
double GetResponse(const float *vector) const
Definition: GBRForestD.h:51
const EgammaBDTOutputTransformer outputTransformerHighEt_
const EgammaBDTOutputTransformer outputTransformerLowEt_
bool useLowEtBin(const float et, const bool isSaturated) const
et
define resolution functions of each parameter
bool isSaturated(const Digi &digi, const int &maxADCvalue, int ifirst, int n)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void EgammaRegressionContainer::setEventContent ( const edm::EventSetup iSetup)

Definition at line 49 of file EgammaRegressionContainer.cc.

References ebHighEtForest_, ebHighEtForestName_, ebLowEtForest_, ebLowEtForestName_, eeHighEtForest_, eeHighEtForestName_, eeLowEtForest_, and eeLowEtForestName_.

Referenced by EGRegressionModifierV3::EleRegs::setEventContent(), EpCombinationTool::setEventContent(), and EGRegressionModifierV3::PhoRegs::setEventContent().

50 {
51  ebLowEtForest_ = getForest(iSetup,ebLowEtForestName_);
52  ebHighEtForest_ = getForest(iSetup,ebHighEtForestName_);
53  eeLowEtForest_ = getForest(iSetup,eeLowEtForestName_);
54  eeHighEtForest_ = getForest(iSetup,eeHighEtForestName_);
55 }
bool EgammaRegressionContainer::useLowEtBin ( const float  et,
const bool  isSaturated 
) const

Definition at line 68 of file EgammaRegressionContainer.cc.

References forceHighEnergyTrainingIfSaturated_, and lowEtHighEtBoundary_.

Referenced by operator()().

69 {
71  else return et<lowEtHighEtBoundary_;
72 }
et
define resolution functions of each parameter
bool isSaturated(const Digi &digi, const int &maxADCvalue, int ifirst, int n)

Member Data Documentation

const GBRForestD* EgammaRegressionContainer::ebHighEtForest_
private

Definition at line 50 of file EgammaRegressionContainer.h.

Referenced by operator()(), and setEventContent().

const std::string EgammaRegressionContainer::ebHighEtForestName_
private

Definition at line 45 of file EgammaRegressionContainer.h.

Referenced by setEventContent().

const GBRForestD* EgammaRegressionContainer::ebLowEtForest_
private

Definition at line 49 of file EgammaRegressionContainer.h.

Referenced by operator()(), and setEventContent().

const std::string EgammaRegressionContainer::ebLowEtForestName_
private

Definition at line 44 of file EgammaRegressionContainer.h.

Referenced by setEventContent().

const GBRForestD* EgammaRegressionContainer::eeHighEtForest_
private

Definition at line 52 of file EgammaRegressionContainer.h.

Referenced by operator()(), and setEventContent().

const std::string EgammaRegressionContainer::eeHighEtForestName_
private

Definition at line 47 of file EgammaRegressionContainer.h.

Referenced by setEventContent().

const GBRForestD* EgammaRegressionContainer::eeLowEtForest_
private

Definition at line 51 of file EgammaRegressionContainer.h.

Referenced by operator()(), and setEventContent().

const std::string EgammaRegressionContainer::eeLowEtForestName_
private

Definition at line 46 of file EgammaRegressionContainer.h.

Referenced by setEventContent().

bool EgammaRegressionContainer::forceHighEnergyTrainingIfSaturated_
private

Definition at line 42 of file EgammaRegressionContainer.h.

Referenced by useLowEtBin().

const float EgammaRegressionContainer::lowEtHighEtBoundary_
private

Definition at line 43 of file EgammaRegressionContainer.h.

Referenced by useLowEtBin().

const EgammaBDTOutputTransformer EgammaRegressionContainer::outputTransformerHighEt_
private

Definition at line 40 of file EgammaRegressionContainer.h.

Referenced by operator()().

const EgammaBDTOutputTransformer EgammaRegressionContainer::outputTransformerLowEt_
private

Definition at line 39 of file EgammaRegressionContainer.h.

Referenced by operator()().