ATLAS Offline Software
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 
32 MsgStream& Trk::RIO_OnTrack::dump( MsgStream& sl ) const
33 {
34  sl << "Trk::RIO_OnTrack { "<< endmsg;
35  sl << "\t identifier = "<< identify() << endmsg;
36  sl << "\t position = ("
37  << localParameters()
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 
50 std::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 = ("
55  << localParameters()
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 
Trk::LocalParameters
Definition: LocalParameters.h:98
xAOD::identify
const Identifier & identify(const UncalibratedMeasurement *meas)
Returns the associated identifier from the muon measurement.
Definition: MuonSpectrometer/MuonPhaseII/Event/xAOD/xAODMuonPrepData/Root/UtilFunctions.cxx:61
Trk::RIO_OnTrack::dump
virtual MsgStream & dump(MsgStream &out) const override
returns the some information about this RIO_OnTrack.
Definition: RIO_OnTrack.cxx:32
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition: EventPrimitives.h:27
Trk::RIO_OnTrack
Definition: RIO_OnTrack.h:70
PrepRawData.h
Trk::ObjectCounter
Helper to enable counting number of instantiations in debug builds.
Definition: TrkObjectCounter.h:18
Trk::RIO_OnTrack::RIO_OnTrack
RIO_OnTrack()=default
Default Constructor for POOL.
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
Trk::MeasurementBase
Definition: MeasurementBase.h:58
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:227
RIO_OnTrack.h
IdentifierHash.h
LocalParameters.h
Identifier
Definition: IdentifierFieldParser.cxx:14