ATLAS Offline Software
TrackRoad.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "TrkRoad/TrackRoad.h"
6 #include "GaudiKernel/MsgStream.h"
7 #include <sstream>
8 
9 namespace Trk {
10 
11 std::string
13 {
14  std::ostringstream oss;
15  oss << "pos"
16  //<< " eta=" << m_globalPos.eta()
17  << " phi=" << m_globalPos.phi() << " perp=" << m_globalPos.perp()
18  << " z=" << m_globalPos.z()
19  << " dir"
20  //<< " eta=" << m_globalDir.eta()
21  << " phi=" << m_globalDir.phi() << " z=" << m_globalDir.z()
22  << " deta=" << m_dDeltaEta << " dphi=" << m_dDeltaPhi
23  << " type=" << m_type << " weight=" << m_weight;
24  return oss.str();
25 }
26 
27 MsgStream&
28 TrackRoad::dump(MsgStream& stream) const
29 {
30  stream << MSG::DEBUG << "TrackRoad " << toString() << endmsg;
31  return stream;
32 }
33 
34 std::ostream&
35 TrackRoad::dump(std::ostream& stream) const
36 {
37  stream << MSG::DEBUG << "TrackRoad " << toString() << std::endl;
38  return stream;
39 }
40 
41 MsgStream&
42 operator<<(MsgStream& stream, const TrackRoad& tr)
43 {
44  return tr.dump(stream);
45 }
46 
47 std::ostream&
48 operator<<(std::ostream& stream, const TrackRoad& tr)
49 {
50  return tr.dump(stream);
51 }
52 
53 }
Trk::TrackRoad
Encapsulates the information required by the find() method of the muon segment makers.
Definition: TrackRoad.h:21
Trk::TrackRoad::dump
MsgStream & dump(MsgStream &stream) const
Dump the road into a message stream.
Definition: TrackRoad.cxx:28
Trk::TrackRoad::toString
std::string toString() const
Get a readable form for debugging.
Definition: TrackRoad.cxx:12
Trk::TrackRoad::m_weight
double m_weight
The weight of the road (default is 1.0)
Definition: TrackRoad.h:107
Trk::TrackRoad::m_dDeltaEta
double m_dDeltaEta
The width of the road in the eta direction.
Definition: TrackRoad.h:104
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::operator<<
MsgStream & operator<<(MsgStream &sl, const AlignModule &alignModule)
overload of << operator for MsgStream for debug output
Definition: AlignModule.cxx:204
DEBUG
#define DEBUG
Definition: page_access.h:11
Trk::TrackRoad::m_globalDir
Amg::Vector3D m_globalDir
The global direction of the road.
Definition: TrackRoad.h:103
Trk::TrackRoad::m_type
int m_type
The type of the road (Unknown, RPCTGC, MDT, IDSeeded)
Definition: TrackRoad.h:106
Trk::TrackRoad::m_dDeltaPhi
double m_dDeltaPhi
The width of the road in the phi direction.
Definition: TrackRoad.h:105
TrackRoad.h
Trk::TrackRoad::m_globalPos
Amg::Vector3D m_globalPos
The global position of the road.
Definition: TrackRoad.h:102