ATLAS Offline Software
Loading...
Searching...
No Matches
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
9namespace Trk {
10
11std::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
27MsgStream&
28TrackRoad::dump(MsgStream& stream) const
29{
30 stream << MSG::DEBUG << "TrackRoad " << toString() << endmsg;
31 return stream;
32}
33
34std::ostream&
35TrackRoad::dump(std::ostream& stream) const
36{
37 stream << MSG::DEBUG << "TrackRoad " << toString() << std::endl;
38 return stream;
39}
40
41MsgStream&
42operator<<(MsgStream& stream, const TrackRoad& tr)
43{
44 return tr.dump(stream);
45}
46
47std::ostream&
48operator<<(std::ostream& stream, const TrackRoad& tr)
49{
50 return tr.dump(stream);
51}
52
53}
#define endmsg
Encapsulates the information required by the find() method of the muon segment makers.
Definition TrackRoad.h:21
double m_dDeltaEta
The width of the road in the eta direction.
Definition TrackRoad.h:104
Amg::Vector3D m_globalDir
The global direction of the road.
Definition TrackRoad.h:103
MsgStream & dump(MsgStream &stream) const
Dump the road into a message stream.
Definition TrackRoad.cxx:28
std::string toString() const
Get a readable form for debugging.
Definition TrackRoad.cxx:12
double m_weight
The weight of the road (default is 1.0)
Definition TrackRoad.h:107
Amg::Vector3D m_globalPos
The global position of the road.
Definition TrackRoad.h:102
double m_dDeltaPhi
The width of the road in the phi direction.
Definition TrackRoad.h:105
int m_type
The type of the road (Unknown, RPCTGC, MDT, IDSeeded)
Definition TrackRoad.h:106
Ensure that the ATLAS eigen extensions are properly loaded.
MsgStream & operator<<(MsgStream &sl, const AlignModule &alignModule)
overload of << operator for MsgStream for debug output