13#include "GaudiKernel/PhysicalConstants.h"
19 const std::string& t,
const std::string& n,
const IInterface* p)
20 : base_class(t, n, p) {}
28 return StatusCode::SUCCESS;
31std::pair<float, float>
34 const float time_of_arrival,
const float time_of_arrival_err)
const {
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();
54 float tof = std::sqrt(dx * dx + dy * dy + dz * dz) / Gaudi::Units::c_light;
55 float corrected_toa = time_of_arrival - tof;
64 return {corrected_toa, time_of_arrival_err};
#define ATH_CHECK
Evaluate an expression and check for errors.
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration.
Class to hold geometrical description of an HGTD detector element.
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