ATLAS Offline Software
|
#include <Segment.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 | |
Segment () | |
Default Constructor for POOL. More... | |
Segment (const Segment &seg) | |
Copy Constructor. More... | |
Segment (Segment &&) noexcept | |
Move Constructor. More... | |
Segment & | operator= (const Segment &seg) |
Assignment operator. More... | |
Segment & | operator= (Segment &&) noexcept |
Move assignment operator. More... | |
Segment (LocalParameters &&locpars, Amg::MatrixX &&locerr, DataVector< const MeasurementBase > &&measurements, FitQuality *fitq=nullptr, Author author=AuthorUnknown) | |
Constructor with parameters. More... | |
virtual | ~Segment () |
Destructor. More... | |
virtual Segment * | clone () const override=0 |
Pseudo-constructor: needed to avoid excessive RTTI. More... | |
std::unique_ptr< Segment > | uniqueClone () const |
NVI uniqueClone method. More... | |
virtual bool | type (MeasurementBaseType::Type type) const override final |
Extended method checking the type. More... | |
const std::vector< const Trk::MeasurementBase * > & | containedMeasurements () const |
returns the vector of Trk::MeasurementBase objects More... | |
const DataVector< const Trk::MeasurementBase > & | containedMeasurementsDataVector () const |
bool | hasContainedMeasurements () const |
unsigned int | numberOfMeasurementBases () const |
Return the number of contained Trk::MeasurementBase (s) More... | |
const MeasurementBase * | measurement (unsigned int) const |
returns the Trk::MeasurementBase objects depending on the integer More... | |
const FitQuality * | fitQuality () const |
return the FitQuality object, returns NULL if no FitQuality is defined More... | |
void | setAuthor (Author a) |
sets the segment author More... | |
Author | author () const |
return segment author More... | |
std::string | dumpAuthor () const |
returns human readble string version of author More... | |
const LocalParameters & | localParameters () const |
Interface method to get the LocalParameters. More... | |
const Amg::MatrixX & | localCovariance () const |
Interface method to get the localError. More... | |
virtual const Surface & | associatedSurface () const =0 |
Interface method to get the associated Surface. More... | |
virtual const Amg::Vector3D & | globalPosition () const =0 |
Interface method to get the global Position. More... | |
virtual MsgStream & | dump (MsgStream &out) const =0 |
Interface method for output, to be overloaded by child classes*. More... | |
virtual std::ostream & | dump (std::ostream &out) const =0 |
Interface method for output, to be overloaded by child classes*. More... | |
Static Public Member Functions | |
static std::size_t | numberOfInstantiations () |
Static Public Attributes | |
static std::atomic_size_t | s_numberOfInstantiations |
Protected Attributes | |
std::unique_ptr< FitQuality > | m_fitQuality |
The fit quality of the Segment. More... | |
DataVector< const MeasurementBase > | m_containedMeasBases |
The vector of contained (generic) Trk::MeasurementBase objects. More... | |
Author | m_author |
segment author More... | |
LocalParameters | m_localParams |
Amg::MatrixX | m_localCovariance |
Friends | |
class | ::SegmentCnv_p1 |
Base class for all TrackSegment implementations, extends the common MeasurementBase.
Trk::LocalParameters, an Trk::ErrorMatrix and a number of fitted RIOs are the commonalities of all track segments, the derived classes can overwrite the base class definitions of Trk::RIO_OnTrack, Trk::PrepRawData and Trk::Surface with derived classes for internal use and to avoid extensive RTTI.
The Surface is chosen not to be a private member of the base class, such that dedicated Segments can save specific Surface types and overwrite the return type by a child class to avoid extensive RTTI.
Access to any information of the contained ROTs, such as the underlying Trk::PrepRawData, the pointer to the Trk::DetectorElementBase such as identifiers have to be retrieved from the ROT itself.
Definition at line 53 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.
enum Trk::Segment::Author |
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.
Trk::Segment::Segment | ( | ) |
Definition at line 15 of file TrkEvent/TrkSegment/src/Segment.cxx.
|
noexcept |
Trk::Segment::Segment | ( | Trk::LocalParameters && | locpars, |
Amg::MatrixX && | locerr, | ||
DataVector< const MeasurementBase > && | measurements, | ||
FitQuality * | fitq = nullptr , |
||
Author | author = AuthorUnknown |
||
) |
|
virtualdefault |
Destructor.
Interface method to get the associated Surface.
Implemented in Trk::RIO_OnTrack, Muon::MdtDriftCircleOnTrack, InDet::PixelClusterOnTrack, Muon::MuonSegment, Muon::CscClusterOnTrack, InDet::TRT_DriftCircleOnTrack, InDet::SCT_ClusterOnTrack, Muon::RpcClusterOnTrack, Trk::TrackSegment, Trk::VertexOnTrack, HGTD_ClusterOnTrack, Muon::sTgcClusterOnTrack, Trk::PseudoMeasurementOnTrack, Trk::SpacePoint, Trk::CaloCluster_OnTrack, Muon::CompetingMuonClustersOnTrack, Muon::TgcClusterOnTrack, InDet::CompetingTRT_DriftCirclesOnTrack, InDet::CompetingPixelClustersOnTrack, Muon::MMClusterOnTrack, and InDet::CompetingSCT_ClustersOnTrack.
|
inline |
return segment author
Definition at line 199 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.
|
overridepure virtual |
Pseudo-constructor: needed to avoid excessive RTTI.
Implements Trk::MeasurementBase.
Implemented in Muon::MuonSegment, and Trk::TrackSegment.
|
inline |
returns the vector of Trk::MeasurementBase objects
Definition at line 166 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.
|
inline |
Definition at line 172 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.
|
pure virtualinherited |
Interface method for output, to be overloaded by child classes*.
Implemented in Muon::MdtDriftCircleOnTrack, Muon::CscClusterOnTrack, Muon::RpcClusterOnTrack, Muon::sTgcClusterOnTrack, Muon::MuonClusterOnTrack, Muon::TgcClusterOnTrack, Muon::MMClusterOnTrack, Trk::SpacePoint, Muon::MuonSegment, InDet::TRT_DriftCircleOnTrack, InDet::PixelClusterOnTrack, InDet::SCT_ClusterOnTrack, HGTD_ClusterOnTrack, Trk::VertexOnTrack, Trk::PseudoMeasurementOnTrack, Trk::TrackSegment, Trk::CaloCluster_OnTrack, InDet::SCT_SpacePoint, InDet::PixelSpacePoint, Trk::CompetingRIOsOnTrack, Trk::RIO_OnTrack, InDet::SiClusterOnTrack, Muon::CompetingMuonClustersOnTrack, InDet::CompetingTRT_DriftCirclesOnTrack, InDet::CompetingPixelClustersOnTrack, and InDet::CompetingSCT_ClustersOnTrack.
|
pure virtualinherited |
Interface method for output, to be overloaded by child classes*.
Implemented in Muon::MdtDriftCircleOnTrack, Muon::CscClusterOnTrack, Muon::RpcClusterOnTrack, Muon::sTgcClusterOnTrack, Muon::MuonClusterOnTrack, Muon::TgcClusterOnTrack, Muon::MMClusterOnTrack, Trk::SpacePoint, Muon::MuonSegment, InDet::PixelClusterOnTrack, InDet::TRT_DriftCircleOnTrack, InDet::SCT_ClusterOnTrack, HGTD_ClusterOnTrack, Trk::VertexOnTrack, Trk::TrackSegment, Trk::PseudoMeasurementOnTrack, Trk::CaloCluster_OnTrack, InDet::SCT_SpacePoint, InDet::PixelSpacePoint, Trk::CompetingRIOsOnTrack, Trk::RIO_OnTrack, InDet::SiClusterOnTrack, Muon::CompetingMuonClustersOnTrack, InDet::CompetingTRT_DriftCirclesOnTrack, InDet::CompetingPixelClustersOnTrack, and InDet::CompetingSCT_ClustersOnTrack.
std::string Trk::Segment::dumpAuthor | ( | ) | const |
returns human readble string version of author
Definition at line 97 of file TrkEvent/TrkSegment/src/Segment.cxx.
|
inline |
return the FitQuality object, returns NULL if no FitQuality is defined
Definition at line 160 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.
|
pure virtualinherited |
Interface method to get the global Position.
Implemented in Trk::RIO_OnTrack, Muon::MdtDriftCircleOnTrack, Muon::MuonSegment, HGTD_ClusterOnTrack, InDet::TRT_DriftCircleOnTrack, Trk::TrackSegment, Trk::VertexOnTrack, Trk::PseudoMeasurementOnTrack, Trk::SpacePoint, Trk::CaloCluster_OnTrack, InDet::SiClusterOnTrack, Muon::MuonClusterOnTrack, Muon::CompetingMuonClustersOnTrack, InDet::CompetingTRT_DriftCirclesOnTrack, InDet::CompetingPixelClustersOnTrack, and InDet::CompetingSCT_ClustersOnTrack.
|
inline |
Definition at line 178 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.
|
inlineinherited |
Interface method to get the localError.
Definition at line 138 of file MeasurementBase.h.
|
inlineinherited |
Interface method to get the LocalParameters.
Definition at line 132 of file MeasurementBase.h.
|
inline |
returns the Trk::MeasurementBase objects depending on the integer
Definition at line 184 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.
|
inlinestaticinherited |
Definition at line 25 of file TrkObjectCounter.h.
|
inline |
Return the number of contained Trk::MeasurementBase (s)
Definition at line 193 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.
Trk::Segment & Trk::Segment::operator= | ( | const Segment & | seg | ) |
|
noexcept |
void Trk::Segment::setAuthor | ( | Author | a | ) |
sets the segment author
Definition at line 148 of file TrkEvent/TrkSegment/src/Segment.cxx.
|
inlinefinaloverridevirtual |
Extended method checking the type.
Implements Trk::MeasurementBase.
Definition at line 114 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.
|
inline |
NVI uniqueClone method.
Definition at line 108 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.
|
friend |
Definition at line 147 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.
|
protected |
segment author
Definition at line 156 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.
|
protected |
The vector of contained (generic) Trk::MeasurementBase objects.
Definition at line 153 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.
|
protected |
The fit quality of the Segment.
Definition at line 150 of file Tracking/TrkEvent/TrkSegment/TrkSegment/Segment.h.
|
protectedinherited |
Definition at line 112 of file MeasurementBase.h.
|
protectedinherited |
Definition at line 111 of file MeasurementBase.h.
|
inlinestaticinherited |
Definition at line 22 of file TrkObjectCounter.h.