ATLAS Offline Software
Classes | Namespaces | Functions
SpaceTimePoint.h File Reference
#include "TrkSpaceTimePoint/SpaceTimePointBase.h"
#include "TrkEventPrimitives/TrackStateDefs.h"
#include <ostream>
Include dependency graph for SpaceTimePoint.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Trk::SpaceTimePoint
 SpaceTimePoint. More...
 

Namespaces

 Trk
 Ensure that the ATLAS eigen extensions are properly loaded.
 

Functions

MsgStream & operator<< (MsgStream &sl, const Trk::SpaceTimePoint &stp)
 Overload of << operator for MsgStream for debug output. More...
 
std::ostream & operator<< (std::ostream &sl, const Trk::SpaceTimePoint &stp)
 Overload of << operator for std::ostream for debug output. More...
 

Function Documentation

◆ operator<<() [1/2]

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

Overload of << operator for MsgStream for debug 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 }

◆ operator<<() [2/2]

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

Overload of << operator for std::ostream for debug 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 }
Trk::SpaceTimePointBase::errorTime
float errorTime() const
access to the error on the measured time
Definition: SpaceTimePointBase.h:50
Trk::TrackState::RPC
@ RPC
Definition: TrackStateDefs.h:33
Trk::TrackState::TRT
@ TRT
Definition: TrackStateDefs.h:30
Trk::TrackState::MDT
@ MDT
Definition: TrackStateDefs.h:31
Trk::SpaceTimePoint::globalPosition
const Amg::Vector3D & globalPosition() const
access to the global position
Definition: SpaceTimePoint.h:40
Trk::SpaceTimePoint::measurementType
TrackState::MeasurementType measurementType() const
return information about detector from which timing info originates
Definition: SpaceTimePoint.h:43
Trk::SpaceTimePointBase::weight
float weight() const
access to the weight of the space time point
Definition: SpaceTimePointBase.h:53
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
Trk::TrackState::CSC
@ CSC
Definition: TrackStateDefs.h:32
Trk::SpaceTimePointBase::time
float time() const
access to the measured time
Definition: SpaceTimePointBase.h:47
Trk::TrackState::TileCal
@ TileCal
Definition: TrackStateDefs.h:40