 |
ATLAS Offline Software
|
Go to the documentation of this file.
27 return StatusCode::SUCCESS;
54 DataVect theta; theta.reserve(NSegs);
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]);
67 theta.emplace_back((*SegmentItr)->localParameters()[
Trk::theta]);
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;
Const iterator class for DataVector/DataList.
virtual std::string dataTypeName() const
Return the name of the data type.
const_pointer_type cptr()
Dereference the pointer.
std::vector< DataType > DataVect
Defines a map with a key and a vector of DataType objects e.g.
SG::ReadHandleKeyArray< Trk::SegmentCollection > m_keys
value_type get_compact() const
Get the compact id.
std::map< std::string, DataVect > DataMap
virtual StatusCode initialize()
::StatusCode StatusCode
StatusCode definition for legacy code.
SegmentRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.
#define ATH_MSG_WARNING(x)
Identifier identify() const
return the identifier -extends MeasurementBase
BASE::size_type size_type
size_type size() const noexcept
Returns the number of elements in the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.