9#include "CLHEP/Units/SystemOfUnits.h"
29 declareInterface<IDataRetriever>(
this);
46 std::string clustersStr =
"clusters multiple=\"2\"";
49 if (
msgLvl(MSG::DEBUG))
msg(MSG::DEBUG) <<
"Trig SP Pixel container not found at "
53 if (
msgLvl(MSG::DEBUG))
msg(MSG::DEBUG) <<
" Retrieving TrigSPPixel with size "
57 for(
int id=0;
id<maxHash;++id){
59 if(spCollIt==
nullptr)
continue;
65 clustersVec.push_back(
DataType(((*spIt)->clusters()).first->identify().get_compact()));
71 if (
msgLvl(MSG::DEBUG))
msg(MSG::DEBUG) <<
"Trig SP Pixel container not found at "
75 if (
msgLvl(MSG::DEBUG))
msg(MSG::DEBUG) <<
" Retrieving TrigSPPixel with size "
79 for(
int id=0;
id<maxHash;++id){
81 if(spCollIt==
nullptr)
continue;
87 clustersVec.push_back(
DataType(((*spIt)->clusters()).first->identify().get_compact()));
88 clustersVec.push_back(
DataType(((*spIt)->clusters()).second->identify().get_compact()));
96 myDataMap[
"layer"] = layer;
97 myDataMap[clustersStr] = clustersVec;
102 std::string emptyStr=
"";
103 return FormatTool->AddToEvent(
dataTypeName(), emptyStr, &myDataMap);
111 if (
msgLvl(MSG::ERROR))
msg(MSG::ERROR) <<
"Could not get Pixel ID helper" <<
endmsg;
112 return StatusCode::RECOVERABLE;
116 if (
msgLvl(MSG::ERROR))
msg(MSG::ERROR) <<
"Could not get SCT ID helper" <<
endmsg;
117 return StatusCode::RECOVERABLE;
120 return StatusCode::SUCCESS;
This is an Identifier helper class for the Pixel subdetector.
This is an Identifier helper class for the SCT subdetector.
Trk::PrepRawDataContainer< TrigSiSpacePointCollection > TrigSiSpacePointContainer
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
const ServiceHandle< StoreGateSvc > & detStore() const
bool msgLvl(const MSG::Level lvl) const
DataModel_detail::const_iterator< DataVector > const_iterator
virtual const T * indexFindPtr(IdentifierHash hashId) const override final
return pointer on the found entry or null if out of range using hashed index - fast version,...
size_t size() const
Duplicate of fullSize for backwards compatability.
TrigSiSpacePointRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
const SCT_ID * m_sctHelper
std::string m_SCT_SpContainerName
virtual StatusCode initialize()
int calcSCTLayer(const Identifier &)
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.
const std::string m_typeName
The data type that is generated by this retriever.
std::string m_pixelSpContainerName
int calcPixelLayer(const Identifier &)
const PixelID * m_pixelHelper
virtual std::string dataTypeName() const
Return the name of the data type.
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.