#include <tmp/HcalTopologyIdealEP/interface/HcalTopologyIdealEP.h>
Public Types | |
typedef boost::shared_ptr < HcalTopology > | ReturnType |
Public Member Functions | |
HcalTopologyIdealEP (const edm::ParameterSet &) | |
ReturnType | produce (const IdealGeometryRecord &) |
~HcalTopologyIdealEP () | |
Private Attributes | |
bool | m_h2mode |
std::string | m_restrictions |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 21 of file HcalTopologyIdealEP.h.
typedef boost::shared_ptr<HcalTopology> HcalTopologyIdealEP::ReturnType |
Definition at line 26 of file HcalTopologyIdealEP.h.
HcalTopologyIdealEP::HcalTopologyIdealEP | ( | const edm::ParameterSet & | conf | ) |
Definition at line 35 of file HcalTopologyIdealEP.cc.
References edm::ESProducer::setWhatProduced().
: m_restrictions(conf.getUntrackedParameter<std::string>("Exclude","")), m_h2mode(conf.getUntrackedParameter<bool>("H2Mode",false)) { //the following line is needed to tell the framework what // data is being produced setWhatProduced(this); }
HcalTopologyIdealEP::~HcalTopologyIdealEP | ( | ) |
Definition at line 45 of file HcalTopologyIdealEP.cc.
{ }
HcalTopologyIdealEP::ReturnType HcalTopologyIdealEP::produce | ( | const IdealGeometryRecord & | iRecord | ) |
Definition at line 56 of file HcalTopologyIdealEP.cc.
References error, Exception, HcalTopology::HcalTopology(), m_h2mode, m_restrictions, HcalTopologyRestrictionParser::parse(), and geometryXMLtoCSV::parser.
{ if (m_h2mode) edm::LogInfo("HCAL") << "Using H2 Topology"; ReturnType myTopo(new HcalTopology(m_h2mode)); HcalTopologyRestrictionParser parser(*myTopo); if (!m_restrictions.empty()) { std::string error=parser.parse(m_restrictions); if (!error.empty()) { throw cms::Exception("Parse Error","Parse error on Exclude "+error); } } return myTopo ; }
bool HcalTopologyIdealEP::m_h2mode [private] |
Definition at line 32 of file HcalTopologyIdealEP.h.
Referenced by produce().
std::string HcalTopologyIdealEP::m_restrictions [private] |
Definition at line 31 of file HcalTopologyIdealEP.h.
Referenced by produce().