ATLAS Offline Software
SpaceTimePoint.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include "GaudiKernel/MsgStream.h"
7 
9  SpaceTimePointBase(0.0, 0.0, 0.0),
10  m_position(Amg::Vector3D()),
11  m_detectorID(Trk::TrackState::unidentified)
12 {
13 
14 }
15 
17 (const Amg::Vector3D& position, const float& t, const float& t_error, const float& weight, const Trk::TrackState::MeasurementType detector) :
18  SpaceTimePointBase(t,t_error,weight),
19  m_position(position),
20  m_detectorID(detector)
21 {
22 
23 }
24 
26 MsgStream& operator << ( MsgStream& sl, const Trk::SpaceTimePoint& stp)
27 // if namespace, need to use MsgStream& Trk::operator :-(
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 }
50 
52 std::ostream& operator << ( std::ostream& sl, const Trk::SpaceTimePoint& stp)
53 // if namespace, need to use MsgStream& Rec::operator :-(
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 }
76 
77 
Trk::SpaceTimePointBase::errorTime
float errorTime() const
access to the error on the measured time
Definition: SpaceTimePointBase.h:50
Trk::SpaceTimePoint
SpaceTimePoint.
Definition: SpaceTimePoint.h:26
Trk::TrackState::RPC
@ RPC
Definition: TrackStateDefs.h:33
Trk::TrackState::TRT
@ TRT
Definition: TrackStateDefs.h:30
TRTCalib_cfilter.detector
detector
Definition: TRTCalib_cfilter.py:241
Trk::TrackState::MDT
@ MDT
Definition: TrackStateDefs.h:31
Trk::SpaceTimePointBase
SpaceTimePointBase.
Definition: SpaceTimePointBase.h:23
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
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SpaceTimePoint.h
Trk::TrackState::unidentified
@ unidentified
Definition: TrackStateDefs.h:27
Trk::SpaceTimePoint::SpaceTimePoint
SpaceTimePoint()
T/P framework default constructor.
Definition: SpaceTimePoint.cxx:8
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:189
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::MeasurementType
MeasurementType
enum describing the flavour of MeasurementBase
Definition: TrackStateDefs.h:26
xAOD::TrackState
TrackState_v1 TrackState
Definition: TrackState.h:11
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Amg
Definition of ATLAS Math & Geometry primitives (Amg)
Definition: AmgStringHelpers.h:19
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
Trk::operator<<
MsgStream & operator<<(MsgStream &sl, const AlignModule &alignModule)
overload of << operator for MsgStream for debug output
Definition: AlignModule.cxx:204
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