22MuonSegment::MuonSegment()
98 std::array<Trk::DefinedParameter, 4> pars = {
106MuonSegment::~MuonSegment() =
default;
109MuonSegment::recalculateCache()
115 double sintheta = sctheta.
sn;
116 double costheta = sctheta.
cs;
117 double sinphi = scphi.
sn;
118 double cosphi = scphi.
cs;
120 Amg::Vector3D(cosphi * sintheta, sinphi * sintheta, costheta);
126MuonSegment::dump(MsgStream& out)
const
128 out <<
"Muon::MuonSegment " << std::endl;
129 out <<
" - global position : " << std::endl
132 out <<
" - local parameters : " << std::endl
134 out <<
" - local Err Matrix : ";
137 out <<
" - fit Quality : " << std::endl
140 out <<
" - fit Quality : NO " << std::endl;
141 out <<
" - associated Surface : " << std::endl
143 out <<
" - t0 (error) : " <<
time() <<
"(" <<
errorTime() <<
")"
146 <<
" RIO_OnTrack object" << std::endl;
147 unsigned int numRoT = 1;
151 out <<
"RoT " << numRoT++ << std::endl << *rot << std::endl;
158MuonSegment::dump(std::ostream& out)
const
160 out <<
"Muon::MuonSegment " << std::endl;
161 out <<
" - global position : " << std::endl
164 out <<
" - local parameters : " << std::endl
166 out <<
" - local Err Matrix : ";
169 out <<
" - fit Quality : " << std::endl
172 out <<
" - fit Quality : NO " << std::endl;
173 out <<
" - associated Surface : " << std::endl
175 out <<
" - t0 (error) : " <<
time() <<
"(" <<
errorTime() <<
")"
178 <<
" RIO_OnTrack object" << std::endl;
179 unsigned int numRoT = 1;
183 out <<
"RoT " << numRoT++ << std::endl << *rot << std::endl;
Scalar phi() const
phi method
Scalar theta() const
theta method
static const float kNoValue
define invalid value, used when the segment has no fitted t0
This is the common class for 3D segments used in the muon spectrometer.
void recalculateCache()
recalculate the cache
const Trk::LocalDirection & localDirection() const
local direction
MuonSegment()
Default Constructor for POOL.
Amg::Vector3D m_globalPosition
The global position the surface can be associated to.
unsigned int numberOfContainedROTs() const
number of RIO_OnTracks
Amg::Vector3D m_globalDirection
cache global direction, not persistified
virtual const Amg::Vector3D & globalPosition() const override final
global position
virtual const Trk::PlaneSurface & associatedSurface() const override final
returns the surface for the local to global transformation
Trk::LocalDirection m_localDirection
LocalDirection.
static const float kNoValue
define invalid value, used when the segment has no fitted t0
Class for a planaer rectangular or trapezoidal surface in the ATLAS detector.
Class to represent and store fit qualities from track reconstruction in terms of and number of degre...
represents the three-dimensional global direction with respect to a planar surface frame.
This class is the pure abstract base class for all fittable tracking measurements.
const LocalParameters & localParameters() const
Interface method to get the LocalParameters.
const Amg::MatrixX & localCovariance() const
Interface method to get the localError.
LocalParameters m_localParams
Class for a planaer rectangular or trapezoidal surface in the ATLAS detector.
void localToGlobalDirection(const Trk::LocalDirection &locdir, Amg::Vector3D &globdir) const
This method transforms a local direction wrt the plane to a global direction.
virtual PlaneSurface * clone() const override
Virtual constructor.
void globalToLocalDirection(const Amg::Vector3D &glodir, Trk::LocalDirection &locdir) const
This method transforms the global direction to a local direction wrt the plane.
Class to handle RIO On Tracks ROT) for InDet and Muons, it inherits from the common MeasurementBase.
Author author() const
return segment author
Segment()
Default Constructor for POOL.
std::unique_ptr< FitQuality > m_fitQuality
The fit quality of the Segment.
Segment & operator=(const Segment &seg)
Assignment operator.
const FitQuality * fitQuality() const
return the FitQuality object, returns NULL if no FitQuality is defined
const std::vector< const Trk::MeasurementBase * > & containedMeasurements() const
returns the vector of Trk::MeasurementBase objects
SpaceTimePointBase & operator=(const SpaceTimePointBase &stpb)=default
Assignment operator.
float errorTime() const
access to the error on the measured time
SpaceTimePointBase(const float &t, const float &t_error, const float &weight)
constructor taking a time, an error on the time and a weight
float time() const
access to the measured time
SurfacePtrHolderImplDetEl()=default
SurfacePtrHolderImplDetEl & operator=(const SurfacePtrHolderImplDetEl &other)
copy assingmemnt if surface is free we clone/copy.
const Trk::PlaneSurface * m_associatedSurface
const TrkDetElementBase * associatedDetectorElement() const
return associated Detector Element
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Eigen::Matrix< double, 2, 1 > Vector2D
Eigen::Matrix< double, 3, 1 > Vector3D
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Ensure that the ATLAS eigen extensions are properly loaded.
Helper to simultaneously calculate sin and cos of the same angle.
Helper to simultaneously calculate sin and cos of the same angle.