ATLAS Offline Software
Loading...
Searching...
No Matches
RIO_OnTrack.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5
7// RIO_OnTrack.cxx, (c) ATLAS Detector software
9
10//Trk
14// Gaudi & AthenaCommon
16#include "GaudiKernel/MsgStream.h"
17#include <string>
18#include <typeinfo>
19
20
21// Constructor with parameters:
23 Amg::MatrixX&& loccov,
24 const Identifier& id)
25 : MeasurementBase(std::move(locpars), std::move(loccov))
27 , m_identifier(id)
28{
29}
30
31
32MsgStream& Trk::RIO_OnTrack::dump( MsgStream& sl ) const
33{
34 sl << "Trk::RIO_OnTrack { "<< endmsg;
35 sl << "\t identifier = "<< identify() << endmsg;
36 sl << "\t position = ("
38 << endmsg;
39 sl << "\t has Error Matrix: "<< endmsg;
40 sl<< localCovariance() <<"}"<< endmsg;
41
42 if (prepRawData()!=nullptr) {
43 sl<<"PrepRawData: "<< (*prepRawData()) << endmsg;
44 }else{
45 sl<<"PrepRawData: NULL"<<endmsg;
46 }
47 return sl;
48}
49
50std::ostream& Trk::RIO_OnTrack::dump( std::ostream& sl ) const
51{
52 sl << "Trk::RIO_OnTrack { "<<std::endl;
53 sl << "\t identifier = "<< identify() << std::endl;
54 sl << "\t position = ("
56 << std::endl;
57 sl << "\t has Error Matrix: " << std::endl;
58 sl << localCovariance() <<" }" << std::endl;
59
60 if (prepRawData()!=nullptr) {
61 sl <<"PrepRawData: "<< (*prepRawData()) << std::endl;
62 }else{
63 sl<<"PrepRawData: NULL" << std::endl;
64 }
65 return sl;
66}
67
#define endmsg
const LocalParameters & localParameters() const
Interface method to get the LocalParameters.
MeasurementBase()=default
Default constructor - needed for POOL/SEAL.
const Amg::MatrixX & localCovariance() const
Interface method to get the localError.
virtual MsgStream & dump(MsgStream &out) const override
returns the some information about this RIO_OnTrack.
RIO_OnTrack(LocalParameters &&locpars, Amg::MatrixX &&loccov, const Identifier &id)
Constructor with parameters and without externalPrediction.
virtual const Trk::PrepRawData * prepRawData() const =0
returns the PrepRawData (also known as RIO) object to which this RIO_OnTrack is associated.
Identifier identify() const
return the identifier -extends MeasurementBase
Identifier m_identifier
Identifier of the RIO_OnTrack (comes from the associated Trk::PrepRawData)
RIO_OnTrack()=default
Default Constructor for POOL.
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Ensure that the ATLAS eigen extensions are properly loaded.
STL namespace.