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);
22 B2FATAL(
"Could not find component " << name);
24 return cached->second;
36 return cached->second;
44 std::map<string, VXDGeoSensorPar>::const_iterator cached =
m_sensorMap.find(sensorTypeID);
46 B2FATAL(
"Invalid SensorTypeID " << sensorTypeID);
48 return cached->second;
54 map<int, VXDGeoLadderPar>::const_iterator cached =
m_ladders.find(layer);
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);
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
std::map< int, VXDGeoLadderPar > m_ladders
Parameters of the detector ladders.
int getSensitiveChipID(std::string name) const
get Bkg sensitive chip Id
std::map< std::string, VXDAlignmentPar > m_alignment
Alignment parameters for all components.
std::map< std::string, VXDGeoComponentPar > m_componentCache
Cache of all previously created components.
std::map< std::string, int > m_sensitiveIDCache
Cache of all Bkg sensitive chip Ids.
std::map< std::string, VXDGeoSensorPar > m_sensorMap
Map containing Information about all defined sensor types.
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.