11 #include <vxd/dbobjects/VXDGeometryPar.h>
12 #include <framework/logging/Logger.h>
13 #include <boost/format.hpp>
22 std::map<string, VXDGeoComponentPar>::const_iterator cached = m_componentCache.find(name);
23 if (cached == m_componentCache.end()) {
24 B2FATAL(
"Could not find component " << name);
26 return cached->second;
34 std::map<string, int>::const_iterator cached = m_sensitiveIDCache.find(name);
35 if (cached == m_sensitiveIDCache.end()) {
38 return cached->second;
46 std::map<string, VXDGeoSensorPar>::const_iterator cached = m_sensorMap.find(sensorTypeID);
47 if (cached == m_sensorMap.end()) {
48 B2FATAL(
"Invalid SensorTypeID " << sensorTypeID);
50 return cached->second;
56 map<int, VXDGeoLadderPar>::const_iterator cached = m_ladders.find(layer);
57 if (cached == m_ladders.end()) {
58 B2FATAL(
"Could not find ladder for layer " << (boost::format(
"%1%") % layer).str());
60 return cached->second;
67 map<string, VXDAlignmentPar>::const_iterator cached = m_alignment.find(name);
68 if (cached == m_alignment.end()) {
69 B2FATAL(
"Could not find alignment parameters for component " << name);
71 return cached->second;