Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
18 declareInterface<IDataRetriever>(
this);
32 return StatusCode::SUCCESS;
47 for (containerIt=mdtContainer->
begin(); containerIt!=mdtContainer->
end(); ++containerIt) {
48 ndata += (*containerIt)->size();
55 DataVect lengthVec; lengthVec.reserve(ndata);
56 DataVect driftRVec; driftRVec.reserve(ndata);
57 DataVect idVec; idVec.reserve(ndata);
58 DataVect identifierVec; identifierVec.reserve(ndata);
61 bool notMasked =
true;
63 for (containerIt=mdtContainer->
begin(); containerIt!=mdtContainer->
end(); ++containerIt) {
67 for (collectionIt=mdtCollection->
begin(); collectionIt!=mdtCollection->
end(); ++collectionIt) {
83 const int adcCount =
data->adc();
92 if ( ( adcCount >=
m_adcCut ) && notMasked ){
99 idVec.push_back(
DataType(
id.get_compact() ));
103 ATH_MSG_DEBUG(
" MdtPrepData x, y, z, driftR, lenght " << globalPos.x() <<
" "
104 << globalPos.y() <<
" " << globalPos.z() <<
" " << localPos[
Trk::driftRadius]
105 <<
" " <<
tubeLength <<
" adc: " << adcCount);
114 myDataMap[
"length"] = lengthVec;
115 myDataMap[
"driftR"] = driftRVec;
116 myDataMap[
"identifier"] = identifierVec;
117 myDataMap[
"id"] = idVec;
118 myDataMap[
"barcode"] =
barcode;
127 std::string emptyStr=
"";
char data[hepevt_bytes_allocation_ATLAS]
Const iterator class for DataVector/DataList.
double tubeLength(const int tubeLayer, const int tube) const
SG::ReadHandleKey< Muon::MdtPrepDataContainer > m_sgKey
The storegate key for the MDT collection.
StatusCode initialize()
Default AthAlgTool methods.
Eigen::Matrix< double, 2, 1 > Vector2D
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::vector< DataType > DataVect
Defines a map with a key and a vector of DataType objects e.g.
#define ATH_MSG_VERBOSE(x)
virtual std::string dataTypeName() const
Return the name of the data type.
std::map< std::string, DataVect > DataMap
MdtPrepDataRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.
@ MdtStatusMasked
A hit during a previous bunch crossing occured which rendered the tube dead for this bunch crossing.
::StatusCode StatusCode
StatusCode definition for legacy code.
const_iterator end() const
return const_iterator for end of container
const_iterator begin() const
return const_iterator for first entry
Template to hold collections of MuonPrepRawData objects.
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
Class to represent measurements from the Monitored Drift Tubes.
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...
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
Amg::Vector3D tubePos(const Identifier &id) const
Returns the global position of the given tube.
#define ATH_MSG_WARNING(x)
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.