38 : m_restrictions(conf.getUntrackedParameter<std::
string>(
"Exclude")),
42 edm::LogInfo(
"HCAL") <<
"HcalTopologyIdealEP::HcalTopologyIdealEP";
46 std::vector<int> segmentation;
47 for (
int iring=1; iring<=29; ++iring) {
49 snprintf(name,10,
"Eta%d",iring);
50 if(conf.
existsAs<std::vector<int> >(name,
false)) {
69 hcalTopologyConstants.
add<
std::string>(
"mode",
"HcalTopologyMode::LHC" );
70 hcalTopologyConstants.
add<
int>(
"maxDepthHB", 2 );
71 hcalTopologyConstants.
add<
int>(
"maxDepthHE", 3 );
74 hcalSLHCTopologyConstants.
add<
std::string>(
"mode",
"HcalTopologyMode::SLHC" );
75 hcalSLHCTopologyConstants.add<
int>(
"maxDepthHB", 7 );
76 hcalSLHCTopologyConstants.add<
int>(
"maxDepthHE", 7 );
81 descriptions.
add(
"hcalTopologyIdeal", desc );
86 descriptions.
add(
"hcalTopologyIdealSLHC", descSLHC );
98 edm::LogInfo(
"HCAL") <<
"HcalTopologyIdealEP::produce(const IdealGeometryRecord& iRecord)";
100 using namespace edm::es;
121 if (!error.empty()) {
122 throw cms::Exception(
"Parse Error",
"Parse error on Exclude "+error);
127 for(std::vector<RingSegmentation>::const_iterator ringSegItr =
m_segmentation.begin();
129 myTopo->setDepthSegmentation(ringSegItr->ring, ringSegItr->segmentation);
T getParameter(std::string const &) const
const edm::ParameterSet m_pSet
T getUntrackedParameter(std::string const &, T const &) const
std::string m_restrictions
ParameterDescriptionBase * addOptional(U const &iLabel, T const &value)
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
std::string parse(const std::string &line)
bool exists(std::string const ¶meterName) const
checks if a parameter exists
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
boost::shared_ptr< HcalTopology > ReturnType
HcalTopology(HcalTopologyMode::Mode mode, int maxDepthHB, int maxDepthHE, HcalTopologyMode::TriggerMode tmode=HcalTopologyMode::tm_LHC_PreLS1)
HcalTopologyIdealEP(const edm::ParameterSet &)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
tuple hcalTopologyConstants
std::vector< int > segmentation
void add(std::string const &label, ParameterSetDescription const &psetDescription)
ReturnType produce(const IdealGeometryRecord &)
std::vector< RingSegmentation > m_segmentation
T parseString(const std::string &value)