18 declareInterface<IDataRetriever>(
this);
30 return StatusCode::SUCCESS;
45 for (containerIt=cscContainer->begin(); containerIt!=cscContainer->end(); ++containerIt) {
46 ndata += (*containerIt)->size();
53 DataVect lengthVec; lengthVec.reserve(ndata);
54 DataVect chargeVec; chargeVec.reserve(ndata);
55 DataVect idVec; idVec.reserve(ndata);
56 DataVect identifierVec; identifierVec.reserve(ndata);
57 DataVect barcode; barcode.reserve(ndata);
59 for (containerIt=cscContainer->begin(); containerIt!=cscContainer->end(); ++containerIt) {
63 for (collectionIt=cscCollection->
begin(); collectionIt!=cscCollection->
end(); ++collectionIt) {
78 x.push_back(
DataType(globalPos.x()/CLHEP::cm));
79 y.push_back(
DataType(globalPos.y()/CLHEP::cm));
80 z.push_back(
DataType(globalPos.z()/CLHEP::cm));
84 idVec.push_back(
DataType(
id.get_compact() ));
93 myDataMap[
"length"] = lengthVec;
94 myDataMap[
"charge"] = chargeVec;
95 myDataMap[
"identifier"] = identifierVec;
96 myDataMap[
"id"] = idVec;
97 myDataMap[
"barcode"] = barcode;
106 std::string emptyStr=
"";
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
double charge(const T &p)
char data[hepevt_bytes_allocation_ATLAS]
DataModel_detail::const_iterator< DataVector > const_iterator
const_iterator end() const noexcept
const_iterator begin() const noexcept
CscPrepDataRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
virtual StatusCode initialize()
Default AthAlgTool methods.
SG::ReadHandleKey< Muon::CscPrepDataContainer > m_sgKey
The storegate key for the CSC collection.
virtual std::string dataTypeName() const
Return the name of the data type.
double stripLength(int chamberLayer, int measuresPhi, int stripNumber, double &epsilon) const
Amg::Vector3D stripPos(const Identifier &id) const
takes into account internal alignment parameters, hence gives accurate answer
Class representing clusters from the CSC.
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...
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
std::map< std::string, DataVect > DataMap
std::vector< DataType > DataVect
Defines a map with a key and a vector of DataType objects e.g.
MuonPrepDataCollection< CscPrepData > CscPrepDataCollection