9 #include <vxd/dbobjects/VXDGeometryPar.h>
10 #include <framework/logging/Logger.h>
11 #include <boost/format.hpp>
20 std::map<string, VXDGeoComponentPar>::const_iterator cached = m_componentCache.find(name);
21 if (cached == m_componentCache.end()) {
22 B2FATAL(
"Could not find component " << name);
24 return cached->second;
32 std::map<string, int>::const_iterator cached = m_sensitiveIDCache.find(name);
33 if (cached == m_sensitiveIDCache.end()) {
36 return cached->second;
44 std::map<string, VXDGeoSensorPar>::const_iterator cached = m_sensorMap.find(sensorTypeID);
45 if (cached == m_sensorMap.end()) {
46 B2FATAL(
"Invalid SensorTypeID " << sensorTypeID);
48 return cached->second;
54 map<int, VXDGeoLadderPar>::const_iterator cached = m_ladders.find(layer);
55 if (cached == m_ladders.end()) {
56 B2FATAL(
"Could not find ladder for layer " << (boost::format(
"%1%") % layer).str());
58 return cached->second;
65 map<string, VXDAlignmentPar>::const_iterator cached = m_alignment.find(name);
66 if (cached == m_alignment.end()) {
67 B2FATAL(
"Could not find alignment parameters for component " << name);
69 return cached->second;
The Class for VXD Alignment payload.
The Class for VXD geometry component.
The Class for VXD Ladder payload.
The Class for VXD Sensor payload.
VXDAlignmentPar getAlignment(std::string name) const
get alignment parameters for component name
int getSensitiveChipID(std::string name) const
get Bkg sensitive chip Id
const VXDGeoComponentPar & getComponent(std::string name) const
get component
const VXDGeoSensorPar & getSensor(std::string sensorTypeID) const
get sensor type
const VXDGeoLadderPar & getLadder(int layerID) const
get ladder for given layer
Abstract base class for different kinds of events.