ATLAS Offline Software
|
Class for competing TRT_DriftCircles, it extends the Trk::CompetingRIOsOnTrack base class. More...
#include <CompetingTRT_DriftCirclesOnTrack.h>
Public Types | |
typedef double | AssignmentProb |
Type def of Assignment probability: probability for a certain RIO_OnTrack to be assigned to the track. More... | |
Public Member Functions | |
CompetingTRT_DriftCirclesOnTrack () | |
Default Constructor for POOL. More... | |
CompetingTRT_DriftCirclesOnTrack (const CompetingTRT_DriftCirclesOnTrack &compROT) | |
Copy Constructor. More... | |
CompetingTRT_DriftCirclesOnTrack & | operator= (const CompetingTRT_DriftCirclesOnTrack &compROT) |
Assignment operator. More... | |
CompetingTRT_DriftCirclesOnTrack & | operator= (CompetingTRT_DriftCirclesOnTrack &&compROT) noexcept |
Move assignment operator. More... | |
CompetingTRT_DriftCirclesOnTrack (const Trk::Surface *sf, std::vector< const InDet::TRT_DriftCircleOnTrack * > &&childrots, std::vector< AssignmentProb > &&assgnProb, const Trk::LocalParameters &effecLocalPars, const Amg::MatrixX &effecLocalErrMat, int ROTsHaveComSrfc) | |
Constructor with all parameters: PLEASE do not use directly, but call InDet::CompetingTRT_DriftCirclesOnTrackTool, otherwise inconsistency of the data will be very probable. More... | |
virtual | ~CompetingTRT_DriftCirclesOnTrack () |
Destructor. More... | |
CompetingTRT_DriftCirclesOnTrack * | clone () const |
virtual constructor - needed to avoid excessive RTTI More... | |
const Trk::Surface & | associatedSurface () const |
returns the surface for the local to global transformation . More... | |
const Amg::Vector3D & | globalPosition () const |
Interface method to get the global Position. More... | |
unsigned int | numberOfContainedROTs () const |
Number of RIO_OnTracks to be contained by this CompetingRIOsOnTrack. More... | |
const std::vector< const InDet::TRT_DriftCircleOnTrack * > & | containedROTs () const |
returns the vector of TRT_DriftCircleOnTrack objects . More... | |
const InDet::TRT_DriftCircleOnTrack & | rioOnTrack (unsigned int) const |
returns the RIO_OnTrack (also known as ROT) objects depending on the integer More... | |
MsgStream & | dump (MsgStream &out) const |
returns some information about this MeasurementBase/CompetingTRT_DriftCirclesOnTrack. More... | |
std::ostream & | dump (std::ostream &out) const |
returns some information about this MeasurementBase/CompetingTRT_DriftCirclesOnTrack. More... | |
virtual void | setLocalParametersAndErrorMatrix () |
recalculate the LocalParameters and ErrorMatrix More... | |
std::unique_ptr< CompetingRIOsOnTrack > | uniqueClone () const |
NVI Clone. More... | |
unsigned int | indexOfMaxAssignProb () const |
Index of the ROT with the highest assignment probability. More... | |
AssignmentProb | assignmentProbability (unsigned int indx) const |
returns the AssignmentProbability depending on the integer. More... | |
virtual bool | type (MeasurementBaseType::Type type) const override final |
Extended method checking the type. More... | |
const LocalParameters & | localParameters () const |
Interface method to get the LocalParameters. More... | |
const Amg::MatrixX & | localCovariance () const |
Interface method to get the localError. More... | |
const S * | surfacePtr () |
return the ptr we hold useful for tests More... | |
const S * | release () noexcept |
release ala unique_ptr release More... | |
void | destroySurface () noexcept |
destroySurface deletes the ptr if not null and the surface has not a associatedDetectorElement Usefull also for testing More... | |
Static Public Member Functions | |
static const S * | cloneHelper (const S *input) |
Helper for cloning or not when we need depending on if we have an associatedDetectorElement. More... | |
Protected Attributes | |
std::vector< AssignmentProb > | m_assignProb |
assignment probabilities of the ROTs More... | |
LocalParameters | m_localParams |
Amg::MatrixX | m_localCovariance |
const S * | m_associatedSurface = nullptr |
Private Member Functions | |
void | clearChildRotVector () |
private method to clear the Trk::RIO_OnTrack vector More... | |
bool | ROTsHaveCommonSurface (const bool withNonVanishingAssignProb=true) const |
Have all the contained ROTs a common associated surface? If withNonVanishingAssignProb==true just the ROTs with non-vanishing assignment probabilities are checked. More... | |
Private Attributes | |
CxxUtils::CachedUniquePtr< const Amg::Vector3D > | m_globalPosition |
The global Position. More... | |
std::vector< const InDet::TRT_DriftCircleOnTrack * > | m_containedChildRots |
The vector of contained InDet::TRT_DriftCircleOnTrack objects. More... | |
int | m_ROTsHaveCommonSurface |
Friends | |
class | CompetingTRT_DriftCirclesOnTrackTool |
InDet::CompetingTRT_DriftCirclesOnTrackTool is a friend to allow for updates of the assignment probabilities. More... | |
Class for competing TRT_DriftCircles, it extends the Trk::CompetingRIOsOnTrack base class.
This class is used by the Deterministic Annealing Filter to handle several TRT_DriftCircleOnTrack in one "effective detector layer" (might be more than one DetectorElement), which compete against each other in being assigned to a track. localParameters() and localErrorMatrix() return the mean values according to the weights (assignment probabilities).
Definition at line 45 of file CompetingTRT_DriftCirclesOnTrack.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.
InDet::CompetingTRT_DriftCirclesOnTrack::CompetingTRT_DriftCirclesOnTrack | ( | ) |
Definition at line 19 of file CompetingTRT_DriftCirclesOnTrack.cxx.
InDet::CompetingTRT_DriftCirclesOnTrack::CompetingTRT_DriftCirclesOnTrack | ( | const CompetingTRT_DriftCirclesOnTrack & | compROT | ) |
InDet::CompetingTRT_DriftCirclesOnTrack::CompetingTRT_DriftCirclesOnTrack | ( | const Trk::Surface * | sf, |
std::vector< const InDet::TRT_DriftCircleOnTrack * > && | childrots, | ||
std::vector< AssignmentProb > && | assgnProb, | ||
const Trk::LocalParameters & | effecLocalPars, | ||
const Amg::MatrixX & | effecLocalErrMat, | ||
int | ROTsHaveComSrfc | ||
) |
Constructor with all parameters: PLEASE do not use directly, but call InDet::CompetingTRT_DriftCirclesOnTrackTool, otherwise inconsistency of the data will be very probable.
Definition at line 49 of file CompetingTRT_DriftCirclesOnTrack.cxx.
|
virtual |
Destructor.
Definition at line 115 of file CompetingTRT_DriftCirclesOnTrack.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 141 of file CompetingTRT_DriftCirclesOnTrack.h.
|
private |
private method to clear the Trk::RIO_OnTrack vector
Definition at line 121 of file CompetingTRT_DriftCirclesOnTrack.cxx.
|
inlinevirtual |
virtual constructor - needed to avoid excessive RTTI
Implements Trk::CompetingRIOsOnTrack.
Definition at line 135 of file CompetingTRT_DriftCirclesOnTrack.h.
|
inlinestaticinherited |
|
inline |
returns the vector of TRT_DriftCircleOnTrack objects .
Definition at line 147 of file CompetingTRT_DriftCirclesOnTrack.h.
|
inlinenoexceptinherited |
destroySurface deletes the ptr if not null and the surface has not a associatedDetectorElement Usefull also for testing
Definition at line 224 of file SurfaceHolderImpl.h.
|
virtual |
returns some information about this MeasurementBase/CompetingTRT_DriftCirclesOnTrack.
Reimplemented from Trk::CompetingRIOsOnTrack.
Definition at line 131 of file CompetingTRT_DriftCirclesOnTrack.cxx.
|
virtual |
returns some information about this MeasurementBase/CompetingTRT_DriftCirclesOnTrack.
Reimplemented from Trk::CompetingRIOsOnTrack.
Definition at line 151 of file CompetingTRT_DriftCirclesOnTrack.cxx.
|
virtual |
Interface method to get the global Position.
Implements Trk::MeasurementBase.
Definition at line 189 of file CompetingTRT_DriftCirclesOnTrack.cxx.
|
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 159 of file CompetingTRT_DriftCirclesOnTrack.h.
|
noexcept |
InDet::CompetingTRT_DriftCirclesOnTrack & InDet::CompetingTRT_DriftCirclesOnTrack::operator= | ( | const CompetingTRT_DriftCirclesOnTrack & | compROT | ) |
|
inlinenoexceptinherited |
|
inlinevirtual |
returns the RIO_OnTrack (also known as ROT) objects depending on the integer
Implements Trk::CompetingRIOsOnTrack.
Definition at line 153 of file CompetingTRT_DriftCirclesOnTrack.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 172 of file CompetingTRT_DriftCirclesOnTrack.cxx.
|
virtual |
recalculate the LocalParameters and ErrorMatrix
Reimplemented from Trk::CompetingRIOsOnTrack.
Definition at line 225 of file CompetingTRT_DriftCirclesOnTrack.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 |
InDet::CompetingTRT_DriftCirclesOnTrackTool is a friend to allow for updates of the assignment probabilities.
Definition at line 53 of file CompetingTRT_DriftCirclesOnTrack.h.
|
protectedinherited |
assignment probabilities of the ROTs
Definition at line 125 of file CompetingRIOsOnTrack.h.
|
protectedinherited |
Definition at line 244 of file SurfaceHolderImpl.h.
|
private |
The vector of contained InDet::TRT_DriftCircleOnTrack objects.
Definition at line 124 of file CompetingTRT_DriftCirclesOnTrack.h.
|
private |
The global Position.
Definition at line 121 of file CompetingTRT_DriftCirclesOnTrack.h.
|
protectedinherited |
Definition at line 112 of file MeasurementBase.h.
|
protectedinherited |
Definition at line 111 of file MeasurementBase.h.
|
private |
Definition at line 131 of file CompetingTRT_DriftCirclesOnTrack.h.