#include <MuonGeometryConstantsBuild.h>
◆ MuonGeometryConstantsBuild()
MuonGeometryConstantsBuild::MuonGeometryConstantsBuild |
( |
| ) |
|
|
inline |
◆ build() [1/2]
Definition at line 13 of file MuonGeometryConstantsBuild.cc.
References MuonGeometryConstants::addValue(), triggerObjects_cff::bit, Exception, ALCARECOTkAlBeamHalo_cff::filter, DDFilteredView::firstChild(), DDFilteredView::mergedSpecifics(), mps_check::msg, submitPVValidationJobs::params, and AlCaHLTBitMon_QueryRunRegistry::string.
16 <<
"MuonGeometryConstantsBuild;:build (const DDCompactView* cpv, MuonGeometryConstants& php)";
30 edm::LogVerbatim(
"MuonGeom") <<
"MuonGeometryConstantsBuild::mySpecs.size() = " << mySpecs.size();
32 if (mySpecs.size() < 25) {
34 <<
" MuonGeometryConstantsBuild: Missing SpecPars from DetectorDescription.";
36 "MuonGeometryConstantsBuild does not have the appropriate number of SpecPars associated with the part //MUON.";
40 DDsvalues_type::const_iterator
bit = mySpecs.begin();
41 DDsvalues_type::const_iterator eit = mySpecs.end();
42 for (;
bit != eit; ++
bit) {
43 if (
bit->second.isEvaluated()) {
44 php.
addValue(
bit->second.name(),
static_cast<int>(
bit->second.doubles()[0]));
46 edm::LogVerbatim(
"MuonGeom") <<
"MuonGeometryConstantsBuild::adding DDConstant of " <<
bit->second.name() <<
" = " 47 <<
static_cast<int>(
bit->second.doubles()[0]);
Log< level::Info, true > LogVerbatim
Log< level::Error, false > LogError
void addValue(const std::string &name, const int &value)
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
◆ build() [2/2]
Definition at line 54 of file MuonGeometryConstantsBuild.cc.
References MuonGeometryConstants::addValue(), mps_fire::end, dqmdumpme::k, MainPageGenerator::l, and cms::DDCompactView::specpars().
57 <<
"MuonGeometryConstantsBuild;:build (const cms::DDCompactView* cpv, MuonGeometryConstants& php)";
60 auto it = registry.specpars.find(
"MuonCommonNumbering");
61 if (it !=
end(registry.specpars)) {
62 for (
const auto&
l : it->second.spars) {
63 if (
l.first ==
"OnlyForMuonNumbering") {
64 for (
const auto&
k : it->second.numpars) {
65 for (
const auto& ik :
k.second) {
66 php.
addValue(
k.first, static_cast<int>(ik));
68 edm::LogVerbatim(
"MuonGeom") <<
"MuonGeometryConstantsBuild::adding DDConstant of " <<
k.first <<
" = " 69 <<
static_cast<int>(ik);
Log< level::Info, true > LogVerbatim
DDSpecParRegistry const & specpars() const
void addValue(const std::string &name, const int &value)
dd4hep::SpecParRegistry DDSpecParRegistry