CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
ShiftedParticleProducer::binningEntryType Struct Reference

Public Member Functions

 binningEntryType (std::string uncertainty, std::string moduleLabel)
 
 binningEntryType (const edm::ParameterSet &cfg, std::string moduleLabel)
 
 ~binningEntryType ()
 

Public Attributes

std::unique_ptr< StringCutObjectSelector< reco::Candidate > > binSelection_
 
std::string binUncertainty_
 
std::unique_ptr< TF2 > binUncFormula_
 
bool energyDep_
 

Detailed Description

Definition at line 52 of file ShiftedParticleProducer.h.

Constructor & Destructor Documentation

ShiftedParticleProducer::binningEntryType::binningEntryType ( std::string  uncertainty,
std::string  moduleLabel 
)
inline

Definition at line 54 of file ShiftedParticleProducer.h.

References binUncertainty_, binUncFormula_, and AlCaHLTBitMon_QueryRunRegistry::string.

55  : binSelection_(nullptr),
56  binUncertainty_(uncertainty),
57  energyDep_(false)
58  {
59  binUncFormula_ = std::make_unique<TF2>(std::string(moduleLabel).append("_uncFormula").c_str(), binUncertainty_.c_str() );
60  }
std::unique_ptr< StringCutObjectSelector< reco::Candidate > > binSelection_
ShiftedParticleProducer::binningEntryType::binningEntryType ( const edm::ParameterSet cfg,
std::string  moduleLabel 
)
inline

Definition at line 61 of file ShiftedParticleProducer.h.

References binUncertainty_, binUncFormula_, energyDep_, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.

63  binUncertainty_(cfg.getParameter<std::string>("binUncertainty")),
64  energyDep_(false)
65  {
66  binUncFormula_ = std::make_unique<TF2>(std::string(moduleLabel).append("_uncFormula").c_str(), binUncertainty_.c_str() );
67  if(cfg.exists("energyDependency") ) {energyDep_=cfg.getParameter<bool>("energyDependency");
68  }
69  }
T getParameter(std::string const &) const
bool exists(std::string const &parameterName) const
checks if a parameter exists
std::unique_ptr< StringCutObjectSelector< reco::Candidate > > binSelection_
ShiftedParticleProducer::binningEntryType::~binningEntryType ( )
inline

Definition at line 70 of file ShiftedParticleProducer.h.

71  {
72  }

Member Data Documentation

std::unique_ptr<StringCutObjectSelector<reco::Candidate> > ShiftedParticleProducer::binningEntryType::binSelection_

Definition at line 73 of file ShiftedParticleProducer.h.

std::string ShiftedParticleProducer::binningEntryType::binUncertainty_

Definition at line 75 of file ShiftedParticleProducer.h.

Referenced by binningEntryType().

std::unique_ptr<TF2> ShiftedParticleProducer::binningEntryType::binUncFormula_

Definition at line 76 of file ShiftedParticleProducer.h.

Referenced by binningEntryType().

bool ShiftedParticleProducer::binningEntryType::energyDep_

Definition at line 77 of file ShiftedParticleProducer.h.

Referenced by binningEntryType().