#include <StraightLineTOFcorrectionTool.h>
◆ StraightLineTOFcorrectionTool()
| HGTD::StraightLineTOFcorrectionTool::StraightLineTOFcorrectionTool |
( |
const std::string & | t, |
|
|
const std::string & | n, |
|
|
const IInterface * | p ) |
◆ correctTimeAndResolution()
| std::pair< float, float > HGTD::StraightLineTOFcorrectionTool::correctTimeAndResolution |
( |
const Trk::Track & | track, |
|
|
const HGTD_Cluster & | cluster, |
|
|
const float | time_of_arrival, |
|
|
const float | time_of_arrival_err ) const |
|
finaloverridevirtual |
Definition at line 32 of file StraightLineTOFcorrectionTool.cxx.
34 {
35
37
38
39
40 const InDetDD::HGTD_DetectorElement* det_el =
42
43
46
47 float dx = glob_hit_pos.x() - perigee->
position().x();
48 float dy = glob_hit_pos.y() - perigee->
position().y();
49 float dz = glob_hit_pos.z() - perigee->
position().z();
50
51
52
53
54 float tof = std::sqrt(dx * dx + dy * dy + dz * dz) / Gaudi::Units::c_light;
55 float corrected_toa = time_of_arrival - tof;
56
58
59
60
61
62
63
64 return {corrected_toa, time_of_arrival_err};
65}
HepGeom::Point3D< double > globalPosition(const HepGeom::Point3D< double > &localPos) const
transform a reconstruction local position into a global position (inline):
const Amg::Vector3D & position() const
Access method for the position.
const Amg::Vector2D & localPosition() const
return the local position reference
Identifier identify() const
return the identifier
Eigen::Matrix< double, 3, 1 > Vector3D
ParametersT< TrackParametersDim, Charged, PerigeeSurface > Perigee
◆ initialize()
| StatusCode HGTD::StraightLineTOFcorrectionTool::initialize |
( |
| ) |
|
|
finaloverridevirtual |
Definition at line 22 of file StraightLineTOFcorrectionTool.cxx.
22 {
23
25
27
28 return StatusCode::SUCCESS;
29}
#define ATH_CHECK
Evaluate an expression and check for errors.
retrieve(aClass, aKey=None)
◆ m_hgtd_det_mgr
The documentation for this class was generated from the following files: