![]() |
ATLAS Offline Software
|
Class for competing MuonClusters, it extends the Trk::CompetingRIOsOnTrack base class. More...
#include <CompetingMuonClustersOnTrack.h>
Public Types | |
| typedef double | AssignmentProb |
| Type def of Assignment probability: probability for a certain RIO_OnTrack to be assigned to the track. | |
Public Member Functions | |
| CompetingMuonClustersOnTrack () | |
| Default Constructor for POOL. | |
| CompetingMuonClustersOnTrack (const CompetingMuonClustersOnTrack &compROT) | |
| Copy Constructor. | |
| CompetingMuonClustersOnTrack & | operator= (const CompetingMuonClustersOnTrack &compROT) |
| Assignment operator. | |
| CompetingMuonClustersOnTrack & | operator= (CompetingMuonClustersOnTrack &&compROT) noexcept |
| CompetingMuonClustersOnTrack (std::vector< const MuonClusterOnTrack * > &&childrots, std::vector< AssignmentProb > &&assgnProb) | |
| Constructor with all parameters: PLEASE do not use directly, but call Muon::CompetingMuonClustersOnTrackTool, otherwise inconsistency of the data will be very probable. | |
| CompetingMuonClustersOnTrack (Trk::LocalParameters &&locPars, Amg::MatrixX &&error, const Trk::Surface *assSurf, std::vector< const MuonClusterOnTrack * > &&childrots, std::vector< AssignmentProb > &&assgnProb) | |
| constructor taking the local parameters + error matrix + associated surface directly, instead of using the base-class to recalculate them | |
| virtual | ~CompetingMuonClustersOnTrack () |
| Destructor. | |
| CompetingMuonClustersOnTrack * | clone () const |
| needed to avoid excessive RTTI | |
| const Trk::Surface & | associatedSurface () const |
| returns the surface for the local to global transformation . | |
| const Trk::Surface * | associatedSurfaceRaw () const |
| const Amg::Vector3D & | globalPosition () const |
| Interface method to get the global Position. | |
| unsigned int | numberOfContainedROTs () const |
| Number of RIO_OnTracks to be contained by this CompetingRIOsOnTrack. | |
| const std::vector< const MuonClusterOnTrack * > & | containedROTs () const |
| returns the vector of SCT_ClusterOnTrack objects . | |
| const MuonClusterOnTrack & | rioOnTrack (unsigned int) const |
| returns the RIO_OnTrack (also known as ROT) objects depending on the integer | |
| MsgStream & | dump (MsgStream &out) const |
| returns some information about this MeasurementBase/CompetingMuonClustersOnTrack. | |
| std::ostream & | dump (std::ostream &out) const |
| returns some information about this MeasurementBase/CompetingMuonClustersOnTrack. | |
| std::unique_ptr< CompetingRIOsOnTrack > | uniqueClone () const |
| NVI Clone. | |
| unsigned int | indexOfMaxAssignProb () const |
| Index of the ROT with the highest assignment probability. | |
| AssignmentProb | assignmentProbability (unsigned int indx) const |
| returns the AssignmentProbability depending on the integer. | |
| virtual void | setLocalParametersAndErrorMatrix () |
| recalculate the LocalParameters and ErrorMatrix | |
| virtual bool | type (MeasurementBaseType::Type type) const override final |
| Extended method checking the type. | |
| const LocalParameters & | localParameters () const |
| Interface method to get the LocalParameters. | |
| const Amg::MatrixX & | localCovariance () const |
| Interface method to get the localError. | |
| const Surface * | surfacePtr () |
| return the ptr we hold useful for tests | |
| const Surface * | 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 const Surface * | cloneHelper (const Surface *input) |
| Helper for cloning or not when we need depending on if we have an associatedDetectorElement. | |
Protected Attributes | |
| std::vector< AssignmentProb > | m_assignProb |
| assignment probabilities of the ROTs | |
| LocalParameters | m_localParams |
| Amg::MatrixX | m_localCovariance |
| const Surface * | m_associatedSurface |
Private Member Functions | |
| void | clearChildRotVector () |
| private method to clear the Trk::RIO_OnTrack vector | |
| bool | ROTsHaveCommonSurface (const bool withNonVanishingAssignProb=true) const |
| Have all the contained ROTs a common associated surface? | |
Private Attributes | |
| CxxUtils::CachedUniquePtr< const Amg::Vector3D > | m_globalPosition |
| The global Position. | |
| std::vector< const MuonClusterOnTrack * > | m_containedChildRots |
| The vector of contained Muon::MuonClusterOnTrack objects. | |
Friends | |
| class | CompetingMuonClustersOnTrackTool |
| Muon::CompetingMuonClustersOnTrackTool is a friend to allow for updates of the assignment probabilities. | |
Class for competing MuonClusters, it extends the Trk::CompetingRIOsOnTrack base class.
This class is used for two use cases:
Definition at line 51 of file CompetingMuonClustersOnTrack.h.
|
inherited |
Type def of Assignment probability: probability for a certain RIO_OnTrack to be assigned to the track.
Definition at line 69 of file CompetingRIOsOnTrack.h.
| Muon::CompetingMuonClustersOnTrack::CompetingMuonClustersOnTrack | ( | ) |
Definition at line 18 of file CompetingMuonClustersOnTrack.cxx.
| Muon::CompetingMuonClustersOnTrack::CompetingMuonClustersOnTrack | ( | const CompetingMuonClustersOnTrack & | compROT | ) |
Copy Constructor.
Definition at line 27 of file CompetingMuonClustersOnTrack.cxx.
| Muon::CompetingMuonClustersOnTrack::CompetingMuonClustersOnTrack | ( | std::vector< const MuonClusterOnTrack * > && | childrots, |
| std::vector< AssignmentProb > && | assgnProb ) |
Constructor with all parameters: PLEASE do not use directly, but call Muon::CompetingMuonClustersOnTrackTool, otherwise inconsistency of the data will be very probable.
| childrots | a vector of MuonClusterOnTrack objects that form the CompetingMuonClustersOnTrack |
| assgnProb | a vector with the assignment probabilities for each of the child ROTs |
Definition at line 48 of file CompetingMuonClustersOnTrack.cxx.
| Muon::CompetingMuonClustersOnTrack::CompetingMuonClustersOnTrack | ( | Trk::LocalParameters && | locPars, |
| Amg::MatrixX && | error, | ||
| const Trk::Surface * | assSurf, | ||
| std::vector< const MuonClusterOnTrack * > && | childrots, | ||
| std::vector< AssignmentProb > && | assgnProb ) |
constructor taking the local parameters + error matrix + associated surface directly, instead of using the base-class to recalculate them
| locPars | the Trk::LocalParameters of the new CompetingMuonClustersOnTrack |
| error | the Amg::MatrixX of the new CompetingMuonClustersOnTrack |
| assSurf | the surface at which the local parameters and erro are expressed |
| childrots | a vector of MuonClusterOnTrack objects that form the CompetingMuonClustersOnTrack |
| assgnProb | a vector with the assignment probabilities for each of the child ROTs |
Definition at line 59 of file CompetingMuonClustersOnTrack.cxx.
|
virtual |
Destructor.
Definition at line 116 of file CompetingMuonClustersOnTrack.cxx.
|
inlineinherited |
returns the AssignmentProbability depending on the integer.
Definition at line 139 of file CompetingRIOsOnTrack.h.
|
inlinevirtual |
returns the surface for the local to global transformation .
Implements Trk::MeasurementBase.
Definition at line 162 of file CompetingMuonClustersOnTrack.h.
|
inline |
Definition at line 172 of file CompetingMuonClustersOnTrack.h.
|
private |
private method to clear the Trk::RIO_OnTrack vector
Definition at line 122 of file CompetingMuonClustersOnTrack.cxx.
|
inlinevirtual |
needed to avoid excessive RTTI
Implements Trk::CompetingRIOsOnTrack.
Definition at line 156 of file CompetingMuonClustersOnTrack.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.
|
inline |
returns the vector of SCT_ClusterOnTrack objects .
Definition at line 184 of file CompetingMuonClustersOnTrack.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.
|
virtual |
returns some information about this MeasurementBase/CompetingMuonClustersOnTrack.
Reimplemented from Trk::CompetingRIOsOnTrack.
Definition at line 130 of file CompetingMuonClustersOnTrack.cxx.
|
virtual |
returns some information about this MeasurementBase/CompetingMuonClustersOnTrack.
Reimplemented from Trk::CompetingRIOsOnTrack.
Definition at line 142 of file CompetingMuonClustersOnTrack.cxx.
|
inlinevirtual |
Interface method to get the global Position.
Implements Trk::MeasurementBase.
Definition at line 196 of file CompetingMuonClustersOnTrack.h.
|
inherited |
Index of the ROT with the highest assignment probability.
Definition at line 101 of file CompetingRIOsOnTrack.cxx.
|
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.
|
inlinevirtual |
Number of RIO_OnTracks to be contained by this CompetingRIOsOnTrack.
Implements Trk::CompetingRIOsOnTrack.
Definition at line 178 of file CompetingMuonClustersOnTrack.h.
|
noexcept |
Definition at line 102 of file CompetingMuonClustersOnTrack.cxx.
| CompetingMuonClustersOnTrack & Muon::CompetingMuonClustersOnTrack::operator= | ( | const CompetingMuonClustersOnTrack & | compROT | ) |
Assignment operator.
Definition at line 75 of file CompetingMuonClustersOnTrack.cxx.
|
inlinenoexceptinherited |
|
inlinevirtual |
returns the RIO_OnTrack (also known as ROT) objects depending on the integer
Implements Trk::CompetingRIOsOnTrack.
Definition at line 190 of file CompetingMuonClustersOnTrack.h.
|
privatevirtual |
Have all the contained ROTs a common associated surface?
If withNonVanishingAssignProb==true just the ROTs with non-vanishing assignment probabilities are checked.
Implements Trk::CompetingRIOsOnTrack.
Definition at line 157 of file CompetingMuonClustersOnTrack.cxx.
|
virtualinherited |
recalculate the LocalParameters and ErrorMatrix
Reimplemented in InDet::CompetingSCT_ClustersOnTrack, and InDet::CompetingTRT_DriftCirclesOnTrack.
Definition at line 34 of file CompetingRIOsOnTrack.cxx.
|
inlineinherited |
|
inlinefinaloverridevirtualinherited |
Extended method checking the type.
Implements Trk::MeasurementBase.
Definition at line 116 of file CompetingRIOsOnTrack.h.
|
inlineinherited |
NVI Clone.
Definition at line 88 of file CompetingRIOsOnTrack.h.
|
friend |
Muon::CompetingMuonClustersOnTrackTool is a friend to allow for updates of the assignment probabilities.
Definition at line 59 of file CompetingMuonClustersOnTrack.h.
|
protectedinherited |
assignment probabilities of the ROTs
Definition at line 125 of file CompetingRIOsOnTrack.h.
|
protectedinherited |
Definition at line 221 of file SurfaceHolderImpl.h.
|
private |
The vector of contained Muon::MuonClusterOnTrack objects.
Definition at line 144 of file CompetingMuonClustersOnTrack.h.
|
private |
The global Position.
Definition at line 141 of file CompetingMuonClustersOnTrack.h.
|
protectedinherited |
Definition at line 112 of file MeasurementBase.h.
|
protectedinherited |
Definition at line 111 of file MeasurementBase.h.