|
ATLAS Offline Software
|
Go to the documentation of this file.
24 declareInterface<IDataRetriever>(
this);
37 return StatusCode::SUCCESS;
50 for (
const auto mmCollection : *mmContainer){
51 ndata += mmCollection->size();
57 DataVect lengthVec; lengthVec.reserve(ndata);
58 DataVect angleVec; angleVec.reserve(ndata);
59 DataVect idVec; idVec.reserve(ndata);
60 DataVect identifierVec; identifierVec.reserve(ndata);
63 for (
const auto mmCollection : *mmContainer){
64 for (
const auto data : *mmCollection){
88 idVec.push_back(
DataType(
id.get_compact() ));
98 myDataMap[
"length"] = lengthVec;
99 myDataMap[
"angle"] = angleVec;
100 myDataMap[
"identifier"] = identifierVec;
101 myDataMap[
"id"] = idVec;
102 myDataMap[
"barcode"] =
barcode;
110 std::string emptyStr=
"";
char data[hepevt_bytes_allocation_ATLAS]
MMPrepDataRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
virtual std::string dataTypeName() const
Return the name of the data type.
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.
std::vector< DataType > DataVect
Defines a map with a key and a vector of DataType objects e.g.
const MuonChannelDesign * getDesign(const Identifier &id) const
returns the MuonChannelDesign class for the given identifier
#define ATH_MSG_VERBOSE(x)
std::map< std::string, DataVect > DataMap
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
::StatusCode StatusCode
StatusCode definition for legacy code.
double angle(const GeoTrf::Vector2D &a, const GeoTrf::Vector2D &b)
bool stripGlobalPosition(const Identifier &id, Amg::Vector3D &gpos) const
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
StatusCode initialize()
Default AthAlgTool methods.
SG::ReadHandleKey< Muon::MMPrepDataContainer > m_sgKey
The storegate key for the MM collection.
Eigen::Matrix< double, 3, 1 > Vector3D
std::string getFullID(Identifier id, const MdtIdHelper &mdtHelper)
Get the identifier string for an MDT ID with the sequence: Detector/StationName/StationEta/StationPhi...
double channelLength(int channel) const
STRIPS ONLY: calculate channel length for a given strip number.
#define ATH_MSG_WARNING(x)
double stereoAngle() const
returns the stereo angle
An MMReadoutElement corresponds to a single STGC module; therefore typicaly a barrel muon station con...