27 return StatusCode::SUCCESS;
42 for(
const auto& key :
m_keys ) {
55 DataVect numHits; numHits.reserve(NSegs);
60 for (SegmentItr=cont.
cptr()->begin(); SegmentItr!=cont.
cptr()->end(); ++SegmentItr) {
63 x.emplace_back((*SegmentItr)->globalPosition().x()/10.);
64 y.emplace_back((*SegmentItr)->globalPosition().y()/10.);
65 z.emplace_back((*SegmentItr)->globalPosition().z()/10.);
66 phi.emplace_back((*SegmentItr)->localParameters()[
Trk::phi]);
72 hits.reserve(hits.size()+(*SegmentItr)->containedMeasurements().size());
75 std::vector< const Trk::MeasurementBase * >::const_iterator measItr, measEnd;
76 measItr=(*SegmentItr)->containedMeasurements().begin();
77 measEnd=(*SegmentItr)->containedMeasurements().end();
80 for (; measItr!=measEnd; ++measItr) {
95 numHits.emplace_back(NRoTs);
109 std::string multiple =
"hits multiple=\"" +
DataType( hits.size()*1./numHits.size()).toString() +
"\"";
115 return StatusCode::RECOVERABLE;
126 return StatusCode::SUCCESS;
Scalar phi() const
phi method
Scalar theta() const
theta method
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
DataModel_detail::const_iterator< DataVector > const_iterator
typename DataVectorBase< Trk::Segment >::Base::size_type size_type
value_type get_compact() const
Get the compact id.
SegmentRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
SG::ReadHandleKeyArray< Trk::SegmentCollection > m_keys
virtual StatusCode initialize()
virtual std::string dataTypeName() const
Return the name of the data type.
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type cptr()
Dereference the pointer.
Class to handle RIO On Tracks ROT) for InDet and Muons, it inherits from the common MeasurementBase.
Identifier identify() const
return the identifier -extends MeasurementBase
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.