ATLAS Offline Software
Loading...
Searching...
No Matches
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
14namespace 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
62
64 float m_weight;
65
66 };
67
68} // end of namespace
69
70#endif
float m_weight
weight of the point
SpaceTimePointBase & operator=(const SpaceTimePointBase &stpb)=default
Assignment operator.
float errorTime() const
access to the error on the measured time
SpaceTimePointBase(SpaceTimePointBase &&)=default
default move constructor
virtual const Amg::Vector3D & globalPosition() const =0
access to the global position (implemented in concrete classes)
virtual ~SpaceTimePointBase()
default destructor
SpaceTimePointBase(const SpaceTimePointBase &stpb)=default
copy ctor
SpaceTimePointBase(const float &t, const float &t_error, const float &weight)
constructor taking a time, an error on the time and a weight
float m_errorTime
error on the time measurement
float m_time
measured time
float weight() const
access to the weight of the space time point
float time() const
access to the measured time
Eigen::Matrix< double, 3, 1 > Vector3D
Ensure that the ATLAS eigen extensions are properly loaded.