![]() |
ATLAS Offline Software
|
This is the common class for 3D segments used in the muon spectrometer. More...
#include <MuonSegment.h>
Public Types | |
| enum | Author { AuthorUnknown = 0 , MooMdtSegmentMakerTool = 1 , MooCscSegmentMakerTool = 2 , Muonboy = 3 , DCMathSegmentMaker = 4 , MDT_DHoughSegmentMakerTool = 5 , CSC_DHoughSegmentMakerTool = 6 , Csc2dSegmentMaker = 7 , Csc4dSegmentMaker = 8 , TRT_SegmentMaker = 9 , CTBTracking = 10 , DCMathSegmentMakerCurved = 11 , NswStereoSeeded = 12 , NswStgcSeeded = 13 , NswPadSeeded = 14 , NswQuadAlign = 15 , NumberOfAuthors = 16 } |
| enum to identify who created the segment. More... | |
Public Member Functions | |
| MuonSegment () | |
| Default Constructor for POOL. | |
| MuonSegment (const MuonSegment &seg) | |
| Copy Constructor. | |
| MuonSegment & | operator= (const MuonSegment &seg) |
| Assignment operator. | |
| MuonSegment (MuonSegment &&seg) noexcept=default | |
| Move Constructor. | |
| MuonSegment & | operator= (MuonSegment &&seg) noexcept=default |
| Move Assignment operator. | |
| MuonSegment (Trk::LocalParameters &&locpars, Amg::MatrixX &&locerr, Trk::PlaneSurface *psf, DataVector< const Trk::MeasurementBase > &&cmeas, Trk::FitQuality *fqual, Segment::Author author=AuthorUnknown) | |
| Constructor within standard track parameters frame taking a vector of MeasurementBase. | |
| MuonSegment (const Amg::Vector2D &segLocPos, const Trk::LocalDirection &segLocDir, Amg::MatrixX &&segLocalErr, Trk::PlaneSurface *psf, DataVector< const Trk::MeasurementBase > &&cmeas, Trk::FitQuality *fqual, Segment::Author author=AuthorUnknown) | |
| Constructor within local parameters of the Segment taking a vector of MeasurementBase. | |
| virtual | ~MuonSegment () |
| Destructor. | |
| virtual MuonSegment * | clone () const override final |
| needed to avoid excessive RTTI | |
| virtual const Amg::Vector3D & | globalPosition () const override final |
| global position | |
| const Amg::Vector3D & | globalDirection () const |
| global direction | |
| const Trk::LocalDirection & | localDirection () const |
| local direction | |
| virtual const Trk::PlaneSurface & | associatedSurface () const override final |
| returns the surface for the local to global transformation | |
| unsigned int | numberOfContainedROTs () const |
| number of RIO_OnTracks | |
| const Trk::RIO_OnTrack * | rioOnTrack (unsigned int) const |
| returns the RIO_OnTrack (also known as ROT) objects depending on the integer | |
| void | setT0Error (float t0, float t0Error) |
| set the fitted time and error on the time | |
| bool | hasFittedT0 () const |
| returns whether the segment has a fitted t0 | |
| void | recalculateCache () |
| recalculate the cache | |
| std::unique_ptr< Segment > | uniqueClone () const |
| NVI uniqueClone method. | |
| virtual bool | type (MeasurementBaseType::Type type) const override final |
| Extended method checking the type. | |
| const std::vector< const Trk::MeasurementBase * > & | containedMeasurements () const |
| returns the vector of Trk::MeasurementBase objects | |
| const DataVector< const Trk::MeasurementBase > & | containedMeasurementsDataVector () const |
| bool | hasContainedMeasurements () const |
| unsigned int | numberOfMeasurementBases () const |
| Return the number of contained Trk::MeasurementBase (s) | |
| const MeasurementBase * | measurement (unsigned int) const |
| returns the Trk::MeasurementBase objects depending on the integer | |
| const FitQuality * | fitQuality () const |
| return the FitQuality object, returns NULL if no FitQuality is defined | |
| void | setAuthor (Author a) |
| sets the segment author | |
| Author | author () const |
| return segment author | |
| std::string | dumpAuthor () const |
| returns human readble string version of author | |
| const LocalParameters & | localParameters () const |
| Interface method to get the LocalParameters. | |
| const Amg::MatrixX & | localCovariance () const |
| Interface method to get the localError. | |
| float | time () const |
| access to the measured time | |
| float | errorTime () const |
| access to the error on the measured time | |
| float | weight () const |
| access to the weight of the space time point | |
| const Trk::PlaneSurface * | surfacePtr () |
| return the ptr we hold useful for tests | |
| const Trk::PlaneSurface * | release () noexcept |
| release ala unique_ptr release | |
| void | destroySurface () noexcept |
| destroySurface deletes the ptr if not null and the surface has not a associatedDetectorElement Usefull also for testing | |
Static Public Member Functions | |
| static std::size_t | numberOfInstantiations () |
| static const Trk::PlaneSurface * | cloneHelper (const Trk::PlaneSurface *input) |
| Helper for cloning or not when we need depending on if we have an associatedDetectorElement. | |
Static Public Attributes | |
| static const float | kNoValue = FLT_MAX |
| define invalid value, used when the segment has no fitted t0 | |
| static std::atomic_size_t | s_numberOfInstantiations |
Protected Member Functions | |
| virtual MsgStream & | dump (MsgStream &out) const override final |
| returns some information about this RIO_OnTrack/TrackSegment. | |
| virtual std::ostream & | dump (std::ostream &out) const override final |
| returns some information about this RIO_OnTrack/TrackSegment. | |
Protected Attributes | |
| std::unique_ptr< FitQuality > | m_fitQuality |
| The fit quality of the Segment. | |
| DataVector< const MeasurementBase > | m_containedMeasBases |
| The vector of contained (generic) Trk::MeasurementBase objects. | |
| Author | m_author |
| segment author | |
| LocalParameters | m_localParams |
| Amg::MatrixX | m_localCovariance |
| float | m_time |
| measured time | |
| float | m_errorTime |
| error on the time measurement | |
| float | m_weight |
| weight of the point | |
| const Trk::PlaneSurface * | m_associatedSurface |
Private Member Functions | |
| void | clearMeasVector () |
| private method to clear the Trk::MeasurementBase vector | |
Private Attributes | |
| Amg::Vector3D | m_globalPosition |
| The global position the surface can be associated to. | |
| Amg::Vector3D | m_globalDirection |
| cache global direction, not persistified | |
| Trk::LocalDirection | m_localDirection |
| LocalDirection. | |
This is the common class for 3D segments used in the muon spectrometer.
The Surface type for MuonSegments is restricted to be a PlaneSurface. The parameters of the MuonSegment are:
The MuonSegment stores a list of Trk::MeasurementBase objects allowing it to contain measurements from all detector types in the muon spectrometer.
Definition at line 41 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h.
|
inherited |
enum to identify who created the segment.
If you update this don't forget to update the dump method.
Definition at line 62 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.
| Muon::MuonSegment::MuonSegment | ( | ) |
Definition at line 22 of file MuonSegment.cxx.
| Muon::MuonSegment::MuonSegment | ( | const MuonSegment & | seg | ) |
Copy Constructor.
Definition at line 31 of file MuonSegment.cxx.
|
defaultnoexcept |
Move Constructor.
| Muon::MuonSegment::MuonSegment | ( | Trk::LocalParameters && | locpars, |
| Amg::MatrixX && | locerr, | ||
| Trk::PlaneSurface * | psf, | ||
| DataVector< const Trk::MeasurementBase > && | cmeas, | ||
| Trk::FitQuality * | fqual, | ||
| Segment::Author | author = AuthorUnknown ) |
Constructor within standard track parameters frame taking a vector of MeasurementBase.
| locpars | 4 dim or 5 dim standard track parameters representation |
| locerr | 4 x 4 error or 5 x 5 error on standard track parameters repr. |
| psf | plane surface |
| cmeas | vector of contained measurements on track |
| fqual | fit quality object |
| author | enum to indicate author, see Segment.h for the possible authors |
Definition at line 58 of file MuonSegment.cxx.
| Muon::MuonSegment::MuonSegment | ( | const Amg::Vector2D & | segLocPos, |
| const Trk::LocalDirection & | segLocDir, | ||
| Amg::MatrixX && | segLocalErr, | ||
| Trk::PlaneSurface * | psf, | ||
| DataVector< const Trk::MeasurementBase > && | cmeas, | ||
| Trk::FitQuality * | fqual, | ||
| Segment::Author | author = AuthorUnknown ) |
Constructor within local parameters of the Segment taking a vector of MeasurementBase.
| segLocPos | 2 local position coordinates |
| segLocalErr | 2 local direction coordinates |
| segLocalErr | 4 x 4 full local error |
| psf | plane surface |
| cmeas | vector of contained measurements on track |
| fqual | fit quality object |
| author | enum to indicate author, see Segment.h for the possible authors |
Definition at line 76 of file MuonSegment.cxx.
|
virtualdefault |
Destructor.
|
inlinefinaloverridevirtual |
returns the surface for the local to global transformation
Implements Trk::MeasurementBase.
Definition at line 175 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h.
|
inlineinherited |
return segment author
Definition at line 199 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.
|
private |
private method to clear the Trk::MeasurementBase vector
|
inlinefinaloverridevirtual |
needed to avoid excessive RTTI
Implements Trk::Segment.
Definition at line 181 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h.
|
inlinestaticinherited |
Helper for cloning or not when we need depending on if we have an associatedDetectorElement.
Definition at line 213 of file SurfaceHolderImpl.h.
|
inlineinherited |
returns the vector of Trk::MeasurementBase objects
Definition at line 166 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.
|
inlineinherited |
Definition at line 172 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.
|
inlinenoexceptinherited |
destroySurface deletes the ptr if not null and the surface has not a associatedDetectorElement Usefull also for testing
Definition at line 201 of file SurfaceHolderImpl.h.
|
finaloverrideprotectedvirtual |
returns some information about this RIO_OnTrack/TrackSegment.
It should be overloaded by any child classes
Implements Trk::MeasurementBase.
Definition at line 126 of file MuonSegment.cxx.
|
finaloverrideprotectedvirtual |
returns some information about this RIO_OnTrack/TrackSegment.
It should be overloaded by any child classes
Implements Trk::MeasurementBase.
Definition at line 158 of file MuonSegment.cxx.
|
inherited |
returns human readble string version of author
Definition at line 99 of file Tracking/TrkEvent/TrkSegment/src/Segment.cxx.
|
inlineinherited |
access to the error on the measured time
Definition at line 50 of file SpaceTimePointBase.h.
|
inlineinherited |
return the FitQuality object, returns NULL if no FitQuality is defined
Definition at line 160 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.
|
inline |
global direction
Definition at line 163 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h.
|
inlinefinaloverridevirtual |
global position
Implements Trk::MeasurementBase.
Definition at line 157 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h.
|
inlineinherited |
Definition at line 178 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.
|
inline |
returns whether the segment has a fitted t0
Definition at line 212 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h.
|
inlineinherited |
Interface method to get the localError.
Definition at line 138 of file MeasurementBase.h.
|
inline |
local direction
Definition at line 169 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h.
|
inlineinherited |
Interface method to get the LocalParameters.
Definition at line 132 of file MeasurementBase.h.
|
inlineinherited |
returns the Trk::MeasurementBase objects depending on the integer
Definition at line 184 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.
|
inline |
number of RIO_OnTracks
Definition at line 199 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h.
|
inlinestaticinherited |
Definition at line 25 of file TrkObjectCounter.h.
|
inlineinherited |
Return the number of contained Trk::MeasurementBase (s)
Definition at line 193 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.
| MuonSegment & Muon::MuonSegment::operator= | ( | const MuonSegment & | seg | ) |
Assignment operator.
Definition at line 45 of file MuonSegment.cxx.
|
defaultnoexcept |
Move Assignment operator.
| void Muon::MuonSegment::recalculateCache | ( | ) |
recalculate the cache
Definition at line 109 of file MuonSegment.cxx.
|
inlinenoexceptinherited |
|
inline |
returns the RIO_OnTrack (also known as ROT) objects depending on the integer
Definition at line 187 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h.
|
inherited |
sets the segment author
Definition at line 150 of file Tracking/TrkEvent/TrkSegment/src/Segment.cxx.
|
inline |
set the fitted time and error on the time
Definition at line 205 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h.
|
inlineinherited |
|
inlineinherited |
|
inlinefinaloverridevirtualinherited |
Extended method checking the type.
Implements Trk::MeasurementBase.
Definition at line 114 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.
|
inlineinherited |
NVI uniqueClone method.
Definition at line 108 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.
|
inlineinherited |
access to the weight of the space time point
Definition at line 53 of file SpaceTimePointBase.h.
|
static |
define invalid value, used when the segment has no fitted t0
Definition at line 48 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h.
|
protectedinherited |
Definition at line 221 of file SurfaceHolderImpl.h.
|
protectedinherited |
segment author
Definition at line 156 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.
|
protectedinherited |
The vector of contained (generic) Trk::MeasurementBase objects.
Definition at line 153 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.
|
protectedinherited |
error on the time measurement
Definition at line 61 of file SpaceTimePointBase.h.
|
protectedinherited |
The fit quality of the Segment.
Definition at line 150 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.
|
private |
cache global direction, not persistified
Definition at line 139 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h.
|
private |
The global position the surface can be associated to.
Cached (not persistified)
Definition at line 136 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h.
|
protectedinherited |
Definition at line 112 of file MeasurementBase.h.
|
private |
LocalDirection.
Definition at line 142 of file MuonSpectrometer/MuonReconstruction/MuonRecEvent/MuonSegment/MuonSegment/MuonSegment.h.
|
protectedinherited |
Definition at line 111 of file MeasurementBase.h.
|
protectedinherited |
measured time
Definition at line 58 of file SpaceTimePointBase.h.
|
protectedinherited |
weight of the point
Definition at line 64 of file SpaceTimePointBase.h.
|
inlinestaticinherited |
Definition at line 22 of file TrkObjectCounter.h.