ATLAS Offline Software
|
#include <AlignTSOS.h>
Public Types | |
enum | TrackStateOnSurfaceType { Measurement = 0, InertMaterial = 1, BremPoint = 2, Scatterer = 3, Perigee = 4, Outlier = 5, Hole = 6, Unknown = 7, CaloDeposit = 8, Parameter = 9, FitQuality = 10, Alignment = 11, NumberOfTrackStateOnSurfaceTypes = 12 } |
enum | PersistencyHint { PartialPersistification = 0, PersistifyMeasurement = 1, PersistifyTrackParameters = 2, PersistifySlimCaloDeposit = 3, NumberOfPersistencyHints = 4 } |
enum | Variety { SingleComponent = 0, MultiComponent = 1, Align = 2 } |
Public Member Functions | |
AlignTSOS (const TrackStateOnSurface &tsos, AlignModule *module, const RIO_OnTrack *rio, TrackState::MeasurementType detType) | |
constructor takes: 1) the TSOS from the original track, 2) the AlignModule containing the TrkDetElementBase in which the TSOS was measured (NULL for a scatterer), 3) nresdim, the dimensionality of the measurement, 4) the RIO if the TSOS is a RIO, or the leading RIO if a CompetingRIOsOnTrack, 5) and the detector type (from TrackStateDefs.h) More... | |
AlignTSOS (const TrackStateOnSurface &tsos, AlignModule *module, const CompetingRIOsOnTrack *crio, TrackState::MeasurementType detType) | |
AlignTSOS (const TrackStateOnSurface &tsos, TrackState::MeasurementType measType) | |
AlignTSOS (const AlignTSOS &atsos) | |
copy constructor More... | |
virtual | ~AlignTSOS () |
destructor More... | |
AlignTSOS & | operator= (const AlignTSOS &atsos) |
asignment operator More... | |
const AlignModule * | module () const |
accessor method for AlignModule to which tsos belongs More... | |
AlignModule * | module () |
void | setValid (bool isvalid) |
set and retrieve flag to indicate whether hit valid for alignment More... | |
bool | isValid () const |
int | nResDim () const |
returns number of measurement residual + scatterer residual dimensions More... | |
TrackState::MeasurementType | measType () const |
returns measurement type enum More... | |
Identifier | identify () const |
returns Identifier of RIO More... | |
const RIO_OnTrack * | rio () const |
returns RIO_OnTrack or leading RIO of CompetingRIOsOnTrack (assigned by c'tor) More... | |
void | setCompetingRIOsOnTrack (const CompetingRIOsOnTrack *crio) |
sets CompetingRIOsOnTrack More... | |
const CompetingRIOsOnTrack * | crio () const |
returns CompetingRIOsOnTrack More... | |
void | addResidual (const Residual &residual) |
pushes back vector of Residuals to alignTSOS residuals More... | |
const std::vector< Residual > & | residuals () const |
returns vector of Residuals More... | |
void | clearResiduals () |
clears vector of residuals More... | |
std::vector< Residual >::const_iterator | firstResidual () const |
returns first Residual iterator More... | |
std::vector< Residual >::const_iterator | lastResidual () const |
returns last Residual iterator More... | |
const TrkDetElementBase * | detelement (int i=0) const |
method for retrieving detector elements (one if RIO, more if CRIO) More... | |
int | nDetElements () const |
method for retrieving number of detector elements More... | |
std::string | dumpMeasType () const |
returns string corresponding to the measurement type More... | |
void | setAlphaStrip (double alpha) |
returns strip angle for fan-out structured modules (SCT endcap) More... | |
double | alphaStrip () const |
returns strip angle for fan-out structured modules (SCT endcap) More... | |
void | setMeasDir (Trk::ParamDefs dir) |
set the measurement direction More... | |
Trk::ParamDefs | measDir () const |
retrieve the measurement direction More... | |
std::string | dumpMeasDir () const |
returns string corresponding to the measurement direction More... | |
const TrackParameters * | unbiasedTrackPars () const |
returns pointer to unbiased track parameters if present More... | |
void | setUnbiasedTrackPars (const TrackParameters *trkPars) |
setter for unbiased track parameters More... | |
const std::vector< Amg::VectorX > * | derivatives () const |
returns pointer to vector of derivatives More... | |
const std::vector< Amg::VectorX > * | derivativesVtx () const |
returns pointer to vector of derivatives w.r.t. More... | |
void | setDerivatives (std::vector< Amg::VectorX > *derivs) |
setter for the derivatives More... | |
void | setDerivativesVtx (std::vector< Amg::VectorX > *derivs) |
setter for the derivatives w.r.t. More... | |
virtual TrackStateOnSurface::Variety | variety () const override final |
Use this method to find if this is a Single, Multi or Align TrackStateOnsurface. More... | |
virtual TrackStateOnSurface * | clone () const |
Pseudo-constructor: needed to avoid excessive RTTI. More... | |
const FitQualityOnSurface & | fitQualityOnSurface () const |
return FitQuality On Surface const overload More... | |
FitQualityOnSurface & | fitQualityOnSurface () |
return FitQuality On Surface non-const overload More... | |
const TrackParameters * | trackParameters () const |
return ptr to trackparameters const overload More... | |
TrackParameters * | trackParameters () |
return ptr to trackparameters non-const overload More... | |
const MeasurementBase * | measurementOnTrack () const |
returns MeasurementBase const overload More... | |
MeasurementBase * | measurementOnTrack () |
returns MeasurementBase non-const overload More... | |
const MaterialEffectsBase * | materialEffectsOnTrack () const |
return material effects const overload More... | |
MaterialEffectsBase * | materialEffectsOnTrack () |
return material effects non-const overload More... | |
const AlignmentEffectsOnTrack * | alignmentEffectsOnTrack () const |
return the the alignment effects const overload More... | |
AlignmentEffectsOnTrack * | alignmentEffectsOnTrack () |
return the the alignment effects non-const overload More... | |
bool | type (const TrackStateOnSurfaceType type) const |
Use this method to find out if the TSoS is of a certain type: i.e. More... | |
std::string | dumpType () const |
returns a string with the expanded type of the object (i.e. More... | |
const std::bitset< NumberOfTrackStateOnSurfaceTypes > | types () const |
returns a bitset with the types of this bitset. More... | |
void | setHints (const uint8_t hints) const |
Use this method to set persistification hints. More... | |
const std::bitset< NumberOfPersistencyHints > | hints () const |
Use this method to get the persistification hints. More... | |
const Trk::Surface & | surface () const |
return associated surface More... | |
bool | isSane () const |
Static Public Member Functions | |
static unsigned int long | joinBitsets (const std::bitset< NumberOfTrackStateOnSurfaceTypes > &types, const std::bitset< NumberOfPersistencyHints > &hints) |
static void | splitToBitsets (const unsigned int long input, std::bitset< NumberOfTrackStateOnSurfaceTypes > &types, std::bitset< NumberOfPersistencyHints > &hints) |
Protected Attributes | |
uint16_t | m_typeFlags {} |
std::atomic< uint8_t > | m_hints {} |
Private Member Functions | |
AlignTSOS () | |
void | setFlags () |
set sensible default flags More... | |
Private Attributes | |
AlignModule * | m_module |
const RIO_OnTrack * | m_rio |
const CompetingRIOsOnTrack * | m_crio |
const TrackParameters * | m_unbiasedTrackPars |
std::vector< Residual > | m_residuals |
std::vector< const TrkDetElementBase * > | m_detelements |
std::vector< Amg::VectorX > * | m_derivatives |
bool | m_isvalid |
TrackState::MeasurementType | m_measType |
Trk::ParamDefs | m_measDir |
direction of measurement (set to Trk::x by default) More... | |
double | m_alphaStrip |
std::vector< Amg::VectorX > * | m_derivativesVtx |
FitQualityOnSurface | m_fitQualityOnSurface {} |
std::unique_ptr< TrackParameters > | m_trackParameters {} |
std::unique_ptr< MeasurementBase > | m_measurementOnTrack {} |
std::unique_ptr< MaterialEffectsBase > | m_materialEffectsOnTrack {} |
std::unique_ptr< AlignmentEffectsOnTrack > | m_alignmentEffectsOnTrack {} |
Definition at line 37 of file AlignTSOS.h.
|
inherited |
Definition at line 155 of file TrackStateOnSurface.h.
|
inherited |
Enumerator | |
---|---|
Measurement | This is a measurement, and will at least contain a Trk::MeasurementBase. |
InertMaterial | This represents inert material, and so will contain MaterialEffectsBase. |
BremPoint | This represents a brem point on the track, and so will contain TrackParameters and MaterialEffectsBase. |
Scatterer | This represents a scattering point on the track, and so will contain TrackParameters and MaterialEffectsBase. |
Perigee | This represents a perigee, and so will contain a Perigee object only. |
Outlier | This TSoS contains an outlier, that is, it contains a MeasurementBase/RIO_OnTrack which was not used in the track fit. |
Hole | A hole on the track - this is defined in the following way. A hole is a missing measurement BETWEEN the first and last actual measurements. i.e. if your track starts in the SCT, you should not consider a missing b-layer hit as a hole. |
Unknown | For some reason this does not fall into any of the other categories PLEASE DO NOT USE THIS - DEPRECATED! |
CaloDeposit | This TSOS contains a CaloEnergy object. |
Parameter | This TSOS contains a Trk::ParameterBase. |
FitQuality | This TSOS contains a Trk::FitQualityOnSurface. |
Alignment | This TSOS contains a Trk::AlignmentEffectsOnTrack. |
NumberOfTrackStateOnSurfaceTypes |
Definition at line 97 of file TrackStateOnSurface.h.
|
inherited |
Enumerator | |
---|---|
SingleComponent | |
MultiComponent | |
Align |
Definition at line 211 of file TrackStateOnSurface.h.
AlignTSOS::AlignTSOS | ( | const TrackStateOnSurface & | tsos, |
AlignModule * | module, | ||
const RIO_OnTrack * | rio, | ||
TrackState::MeasurementType | detType | ||
) |
constructor takes: 1) the TSOS from the original track, 2) the AlignModule containing the TrkDetElementBase in which the TSOS was measured (NULL for a scatterer), 3) nresdim, the dimensionality of the measurement, 4) the RIO if the TSOS is a RIO, or the leading RIO if a CompetingRIOsOnTrack, 5) and the detector type (from TrackStateDefs.h)
Definition at line 16 of file AlignTSOS.cxx.
AlignTSOS::AlignTSOS | ( | const TrackStateOnSurface & | tsos, |
AlignModule * | module, | ||
const CompetingRIOsOnTrack * | crio, | ||
TrackState::MeasurementType | detType | ||
) |
Definition at line 42 of file AlignTSOS.cxx.
AlignTSOS::AlignTSOS | ( | const TrackStateOnSurface & | tsos, |
TrackState::MeasurementType | measType | ||
) |
Definition at line 68 of file AlignTSOS.cxx.
copy constructor
Definition at line 93 of file AlignTSOS.cxx.
|
virtual |
destructor
Definition at line 86 of file AlignTSOS.cxx.
|
private |
|
inherited |
return the the alignment effects non-const overload
|
inherited |
return the the alignment effects const overload
|
inline |
returns strip angle for fan-out structured modules (SCT endcap)
Definition at line 122 of file AlignTSOS.h.
|
inline |
|
virtualinherited |
Pseudo-constructor: needed to avoid excessive RTTI.
Reimplemented in Trk::MultiComponentStateOnSurface.
|
inline |
|
inline |
|
inline |
returns pointer to vector of derivatives w.r.t.
the vertex
Definition at line 143 of file AlignTSOS.h.
|
inline |
method for retrieving detector elements (one if RIO, more if CRIO)
Definition at line 110 of file AlignTSOS.h.
std::string AlignTSOS::dumpMeasDir | ( | ) | const |
std::string AlignTSOS::dumpMeasType | ( | ) | const |
|
inherited |
returns a string with the expanded type of the object (i.e.
if it has several type bits set, they all will be returned)
Definition at line 147 of file TrackStateOnSurface.cxx.
|
inline |
|
inherited |
return FitQuality On Surface non-const overload
|
inherited |
return FitQuality On Surface const overload
|
inherited |
Use this method to get the persistification hints.
Identifier AlignTSOS::identify | ( | ) | const |
|
inherited |
Definition at line 203 of file TrackStateOnSurface.cxx.
|
inline |
Definition at line 74 of file AlignTSOS.h.
|
inlinestaticinherited |
Definition at line 183 of file TrackStateOnSurface.h.
|
inline |
|
inherited |
return material effects non-const overload
|
inherited |
return material effects const overload
|
inline |
|
inline |
|
inherited |
returns MeasurementBase non-const overload
|
inherited |
returns MeasurementBase const overload
|
inline |
Definition at line 70 of file AlignTSOS.h.
|
inline |
|
inline |
|
inline |
returns number of measurement residual + scatterer residual dimensions
Definition at line 77 of file AlignTSOS.h.
asignment operator
Definition at line 111 of file AlignTSOS.cxx.
const RIO_OnTrack * AlignTSOS::rio | ( | ) | const |
returns RIO_OnTrack or leading RIO of CompetingRIOsOnTrack (assigned by c'tor)
Definition at line 157 of file AlignTSOS.cxx.
|
inline |
returns strip angle for fan-out structured modules (SCT endcap)
Definition at line 119 of file AlignTSOS.h.
|
inline |
|
inline |
|
inline |
|
privateinherited |
set sensible default flags
|
inherited |
Use this method to set persistification hints.
This can be called only once per TSOS It will set a cached Value which we can not reset But this allows it to be const..
Definition at line 235 of file TrackStateOnSurface.cxx.
|
inline |
|
inline |
|
inline |
set and retrieve flag to indicate whether hit valid for alignment
Definition at line 73 of file AlignTSOS.h.
|
inlinestaticinherited |
Definition at line 196 of file TrackStateOnSurface.h.
return associated surface
Used to perform sanity checks on this object (i.e. all consistuents are on the same surface). Returns 'true' if it seems okay.
Definition at line 188 of file TrackStateOnSurface.cxx.
|
inherited |
return ptr to trackparameters non-const overload
|
inherited |
return ptr to trackparameters const overload
|
inherited |
Use this method to find out if the TSoS is of a certain type: i.e.
if ( tsos->type(TrackStateOnSurface::Measurement) { //etc }
|
inherited |
returns a bitset with the types of this bitset.
As an example of how this is used, see the type( const TrackStateOnSurfaceType& type ) method but a better example would be if you wanted to check several type flags at once.
|
inline |
|
inlinefinaloverridevirtual |
Use this method to find if this is a Single, Multi or Align TrackStateOnsurface.
Reimplemented from Trk::TrackStateOnSurface.
Definition at line 151 of file AlignTSOS.h.
|
privateinherited |
Definition at line 371 of file TrackStateOnSurface.h.
|
private |
Definition at line 177 of file AlignTSOS.h.
|
private |
Definition at line 161 of file AlignTSOS.h.
|
private |
Definition at line 169 of file AlignTSOS.h.
|
private |
Definition at line 179 of file AlignTSOS.h.
|
private |
Definition at line 167 of file AlignTSOS.h.
|
privateinherited |
Definition at line 367 of file TrackStateOnSurface.h.
|
mutableprotectedinherited |
Definition at line 374 of file TrackStateOnSurface.h.
|
private |
Definition at line 171 of file AlignTSOS.h.
|
privateinherited |
Definition at line 370 of file TrackStateOnSurface.h.
|
private |
direction of measurement (set to Trk::x by default)
Definition at line 175 of file AlignTSOS.h.
|
private |
Definition at line 173 of file AlignTSOS.h.
|
privateinherited |
Definition at line 369 of file TrackStateOnSurface.h.
|
private |
Definition at line 159 of file AlignTSOS.h.
|
private |
Definition at line 165 of file AlignTSOS.h.
|
private |
Definition at line 160 of file AlignTSOS.h.
|
privateinherited |
Definition at line 368 of file TrackStateOnSurface.h.
|
protectedinherited |
Definition at line 373 of file TrackStateOnSurface.h.
|
private |
Definition at line 163 of file AlignTSOS.h.