ATLAS Offline Software
SpaceTimePointBase.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // SpaceTimePoint.h, (c) ATLAS Detector software
8 
9 #ifndef TRKSPACETIMEPOINTBASE_H
10 #define TRKSPACETIMEPOINTBASE_H
13 
14 namespace Trk {
15 
24  public:
26  SpaceTimePointBase(const float& t, const float& t_error, const float& weight);
27 
29  SpaceTimePointBase(const SpaceTimePointBase& stpb) = default;
30 
33 
35  virtual ~SpaceTimePointBase() {};
36 
39 
42 
44  virtual const Amg::Vector3D& globalPosition() const = 0;
45 
47  float time() const {return m_time;}
48 
50  float errorTime() const {return m_errorTime;}
51 
53  float weight() const {return m_weight;}
54 
55  protected:
56 
58  float m_time;
59 
61  float m_errorTime;
62 
64  float m_weight;
65 
66  };
67 
68 } // end of namespace
69 
70 #endif
Trk::SpaceTimePointBase::errorTime
float errorTime() const
access to the error on the measured time
Definition: SpaceTimePointBase.h:50
Trk::SpaceTimePointBase::operator=
SpaceTimePointBase & operator=(const SpaceTimePointBase &stpb)=default
Assignment operator.
Trk::SpaceTimePointBase
SpaceTimePointBase.
Definition: SpaceTimePointBase.h:23
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
Trk::SpaceTimePointBase::SpaceTimePointBase
SpaceTimePointBase(SpaceTimePointBase &&)=default
default move constructor
GeoPrimitives.h
Trk::SpaceTimePointBase::weight
float weight() const
access to the weight of the space time point
Definition: SpaceTimePointBase.h:53
Trk::SpaceTimePointBase::m_weight
float m_weight
weight of the point
Definition: SpaceTimePointBase.h:64
Trk::SpaceTimePointBase::globalPosition
virtual const Amg::Vector3D & globalPosition() const =0
access to the global position (implemented in concrete classes)
Trk::SpaceTimePointBase::~SpaceTimePointBase
virtual ~SpaceTimePointBase()
default destructor
Definition: SpaceTimePointBase.h:35
Trk::SpaceTimePointBase::SpaceTimePointBase
SpaceTimePointBase(const float &t, const float &t_error, const float &weight)
constructor taking a time, an error on the time and a weight
Definition: SpaceTimePointBase.cxx:7
EventPrimitives.h
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
Trk::SpaceTimePointBase::SpaceTimePointBase
SpaceTimePointBase(const SpaceTimePointBase &stpb)=default
copy ctor
Trk::SpaceTimePointBase::m_errorTime
float m_errorTime
error on the time measurement
Definition: SpaceTimePointBase.h:61
Trk::SpaceTimePointBase::time
float time() const
access to the measured time
Definition: SpaceTimePointBase.h:47
Trk::SpaceTimePointBase::m_time
float m_time
measured time
Definition: SpaceTimePointBase.h:58