ATLAS Offline Software
Loading...
Searching...
No Matches
SpaceTimePoint.cxx File Reference
#include "TrkSpaceTimePoint/SpaceTimePoint.h"
#include "GaudiKernel/MsgStream.h"
Include dependency graph for SpaceTimePoint.cxx:

Go to the source code of this file.

Functions

MsgStream & operator<< (MsgStream &sl, const Trk::SpaceTimePoint &stp)
 MsgStream output.
std::ostream & operator<< (std::ostream &sl, const Trk::SpaceTimePoint &stp)
 MsgStream output.

Function Documentation

◆ operator<<() [1/2]

MsgStream & operator<< ( MsgStream & sl,
const Trk::SpaceTimePoint & stp )

MsgStream output.

Overload of << operator for MsgStream for debug output.

Definition at line 26 of file SpaceTimePoint.cxx.

28{
29 sl <<"SpaceTimePoint from ";
30 switch (stp.measurementType())
31 {
33 sl << "TRT "; break;
35 sl << "Tile"; break;
37 sl << "MDT "; break;
39 sl << "RPC "; break;
41 sl << "CSC "; break;
42 default:
43 sl << "??? "; break;
44 }
45 sl << endmsg << "at "<< stp.globalPosition() << ", time= "<<stp.time()
46 << " +/- "<<stp.errorTime()<<", w=" << stp.weight();
47 sl << endmsg;
48 return sl;
49}
#define endmsg
float errorTime() const
access to the error on the measured time
float weight() const
access to the weight of the space time point
float time() const
access to the measured time
TrackState::MeasurementType measurementType() const
return information about detector from which timing info originates
const Amg::Vector3D & globalPosition() const
access to the global position

◆ operator<<() [2/2]

std::ostream & operator<< ( std::ostream & sl,
const Trk::SpaceTimePoint & stp )

MsgStream output.

Overload of << operator for std::ostream for debug output.

Definition at line 52 of file SpaceTimePoint.cxx.

54{
55 sl <<"SpaceTimePoint from ";
56 switch (stp.measurementType())
57 {
59 sl << "TRT "; break;
61 sl << "Tile"; break;
63 sl << "MDT "; break;
65 sl << "RPC "; break;
67 sl << "CSC "; break;
68 default:
69 sl << "??? "; break;
70 }
71 sl << " at "<< stp.globalPosition() << ", time= "<<stp.time()
72 << " +/- "<<stp.errorTime()<<", w=" << stp.weight();
73 sl << std::endl;
74 return sl;
75}