#include <MuonDDDConstants.h>
this class reads the constant section of the muon-numbering xml-file
- Author
- Arno Straessner, CERN arno..nosp@m.stra.nosp@m.essne.nosp@m.r@ce.nosp@m.rn.ch modified by: Michael Case, micha.nosp@m.el.c.nosp@m.ase@c.nosp@m.ern..nosp@m.ch, 2006/10/05
Definition at line 21 of file MuonDDDConstants.h.
Definition at line 11 of file MuonDDDConstants.cc.
References addValue(), Exception, alcazmumu_cfi::filter, DDFilteredView::firstChild(), DDFilteredView::mergedSpecifics(), mps_check::msg, submitPVValidationJobs::params, and AlCaHLTBitMon_QueryRunRegistry::string.
13 edm::LogVerbatim(
"MuonGeom") <<
"MuonDDDConstants;:MuonDDDConstants ( const DDCompactView& cpv ) constructor ";
27 edm::LogVerbatim(
"MuonGeom") <<
"MuonDDDConstants::mySpecs.size() = " << mySpecs.size();
29 if (mySpecs.size() < 25) {
30 edm::LogError(
"MuonDDDConstants") <<
" MuonDDDConstants: Missing SpecPars from DetectorDescription.";
32 "MuonDDDConstants does not have the appropriate number of SpecPars associated with the part //MUON.";
36 DDsvalues_type::const_iterator bit = mySpecs.begin();
37 DDsvalues_type::const_iterator eit = mySpecs.end();
38 for (; bit != eit; ++bit) {
39 if (bit->second.isEvaluated()) {
40 this->
addValue(bit->second.name(), int(bit->second.doubles()[0]));
42 edm::LogVerbatim(
"MuonGeom") <<
"MuonDDDConstants::adding DDConstant of " << bit->second.name() <<
" = "
43 << int(bit->second.doubles()[0]);
Log< level::Info, true > LogVerbatim
Log< level::Error, false > LogError
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
void addValue(const std::string &name, const int &value)
MuonDDDConstants::MuonDDDConstants |
( |
| ) |
|
|
delete |
void MuonDDDConstants::addValue |
( |
const std::string & |
name, |
|
|
const int & |
value |
|
) |
| |
int MuonDDDConstants::getValue |
( |
const std::string & |
name | ) |
const |
Definition at line 49 of file MuonDDDConstants.cc.
References Exception, and namesAndValues_.
54 edm::LogWarning(
"MuonGeom") <<
"MuonDDDConstants::getValue HAS NO VALUES!";
55 throw cms::Exception(
"GeometryBuildFailure",
"MuonDDDConstants does not have requested value for " +
name);
61 edm::LogWarning(
"MuonGeom") <<
"MuonDDDConstants::getValue was asked for " <<
name <<
" and had NO clue!";
62 throw cms::Exception(
"GeometryBuildFailure",
"MuonDDDConstants does not have requested value for " +
name);
65 edm::LogVerbatim(
"MuonGeom") <<
"MuonDDDConstants::Value for " <<
name <<
" is " << findIt->second;
67 return findIt->second;
Log< level::Info, true > LogVerbatim
std::map< std::string, int > namesAndValues_
Log< level::Warning, false > LogWarning
std::map<std::string, int> MuonDDDConstants::namesAndValues_ |
|
private |