ATLAS Offline Software
|
#include <TrackParticleBase.h>
Protected Attributes | |
ElementLink< TrackCollection > | m_originalTrack |
ElementLink to the Track used to create this TrackParticleBase object Before writing to disk, should be made valid using setStorableObject(const VxContainer* vxColl). More... | |
TrackParticleOrigin | m_trackParticleOrigin |
specifies the origin type of the particle (prim.vertex, ...) More... | |
ElementLink< VxContainer > | m_elVxCandidate |
ElementLink to a VxCandidate. More... | |
std::vector< const TrackParameters * > | m_trackParameters |
DataVector of TrackParameters stored inside this TrackParticle. More... | |
const TrackSummary * | m_trackSummary |
the summary of this TrackParticle. More... | |
const FitQuality * | m_fitQuality |
the fit quality of this TrackParticle. More... | |
TrackInfo | m_trackInfo |
This is a class which stores the identity of where the track was created, fitted, which properties the reconstruction had More... | |
Friends | |
class | ::TrackParticleBaseCnv_p1 |
Definition at line 40 of file TrackParticleBase.h.
Trk::TrackParticleBase::TrackParticleBase | ( | ) |
Constructor 0 standard constructor which sets everything to 0, needed for persistency.
Definition at line 19 of file TrackParticleBase.cxx.
Trk::TrackParticleBase::TrackParticleBase | ( | const Track * | trk, |
const TrackParticleOrigin | vertexType, | ||
const VxCandidate * | vxCandidate, | ||
const TrackSummary * | trkSummary, | ||
std::vector< const TrackParameters * > & | parameters, | ||
const TrackParameters * | definingParameter, | ||
const FitQuality * | fitQuality | ||
) |
Main constructor.
Merged old Constructors 0.5a, 2a and 1a from old (pre 13) TrackParticle constructors & added new info.
I have tried to merge the various TrackParticle constructors (though perhaps we should split this into one which takes RecVertex and one which takes VxCandidate, since they seem to be exclusive)
trk | Track used to create this object. Since an ElementLink is used to store the object, setStorableObject(const TrackCollection* trackColl) must be called to set persistency. |
vertexType | See TrackParticleOrigin for definitions, but should be set to NoVtx if no VxCandidate pointer is passed. |
vxCandidate | Pointer to the VxCandidate used to create this TrackParticleBase. |
trkSummary | Summary object of this TrackParticleBase (should be created with TrackSummaryTool). Will be owned by this TrackParticleBase. |
parameters | std::vector of TrackParameters which describe this TrackParticleBase. Ownership of these TrackParameters objects passes to TrackParticleBase (so if you copied them from a Track, make sure you didn't just copy the pointers but actually created new objects, for example, by using clone() ) |
definingParameter | The parameter which defines the charge of this TrackParticleBase and which in derived classes (such as Rec::TrackParticle), could be used to define e.g. the 4-momentum. This will be appended to the vector of parameters passed before, so please make sure that it is NOT already contained in that! |
fitQuality | FitQuality which describes this TrackParticleBase. Will be owned by this TrackParticleBase. |
Definition at line 34 of file TrackParticleBase.cxx.
Trk::TrackParticleBase::TrackParticleBase | ( | const ElementLink< TrackCollection > & | trackLink, |
const Trk::TrackParticleOrigin | trkPrtOrigin, | ||
const ElementLink< VxContainer > & | vxCandidate, | ||
std::unique_ptr< Trk::TrackSummary > | trkSummary, | ||
std::vector< const Trk::TrackParameters * > && | parameters, | ||
std::unique_ptr< Trk::FitQuality > | fitQuality, | ||
const TrackInfo & | info | ||
) |
Definition at line 69 of file TrackParticleBase.cxx.
Trk::TrackParticleBase::TrackParticleBase | ( | const TrackParticleBase & | rhs | ) |
|
virtual |
|
inline |
Return charge of the particle.
Definition at line 200 of file TrackParticleBase.h.
|
inline |
Returns the 'defining' parameter of this TrackParticle.
Definition at line 239 of file TrackParticleBase.h.
|
virtual |
Dump methods to be used by the overloaded stream operator (inheritance!)
Reimplemented in Rec::TrackParticle.
Definition at line 190 of file TrackParticleBase.cxx.
|
virtual |
Reimplemented in Rec::TrackParticle.
Definition at line 219 of file TrackParticleBase.cxx.
|
inline |
accessor function for FitQuality.
Definition at line 259 of file TrackParticleBase.h.
TrackParticleBase & Trk::TrackParticleBase::operator= | ( | const TrackParticleBase & | rhs | ) |
|
noexcept |
Definition at line 147 of file TrackParticleBase.cxx.
Return pointer to associated track.
Definition at line 205 of file TrackParticleBase.h.
|
inline |
Get the particle origin type.
Definition at line 235 of file TrackParticleBase.h.
Attempts to cast the definingParameters() to Perigee.
The result is not cached, so there will be a (small) time penalty each time you call this.
Definition at line 263 of file TrackParticleBase.h.
|
inline |
Get a pointer to the primary vertex.
Definition at line 215 of file TrackParticleBase.h.
|
inline |
Definition at line 225 of file TrackParticleBase.h.
|
inline |
Definition at line 251 of file TrackParticleBase.h.
|
inline |
Definition at line 255 of file TrackParticleBase.h.
|
inline |
Definition at line 269 of file TrackParticleBase.h.
|
inline |
Return the ElementLink to the Track.
This is necessary to force backnavigation from AOD to ESD
Definition at line 230 of file TrackParticleBase.h.
|
inline |
Returns the track parameters.
"Various" may seem vague, but it is up to the clients of this class to decide what is needed (Perigee, MuonSpectrometer entrance etc). However, the size of this vector must be at least 1, since ALL TrackParticleBases are required to have ONE defining parameter
Definition at line 243 of file TrackParticleBase.h.
|
inline |
accessor function for TrackSummary.
Definition at line 247 of file TrackParticleBase.h.
|
friend |
Definition at line 160 of file TrackParticleBase.h.
|
protected |
ElementLink to a VxCandidate.
Before writing to disk, should be made valid using setStorableObject(const VxContainer* vxColl)
Definition at line 170 of file TrackParticleBase.h.
|
protected |
the fit quality of this TrackParticle.
Owned by this object.
Definition at line 179 of file TrackParticleBase.h.
|
protected |
ElementLink to the Track used to create this TrackParticleBase object Before writing to disk, should be made valid using setStorableObject(const VxContainer* vxColl).
Definition at line 164 of file TrackParticleBase.h.
|
protected |
This is a class which stores the identity of where the track
was created, fitted, which properties the reconstruction had
Definition at line 186 of file TrackParticleBase.h.
|
protected |
DataVector of TrackParameters stored inside this TrackParticle.
(This TrackParticleBase owns all the TrackParameters, and will delete them in the destructor)
Definition at line 173 of file TrackParticleBase.h.
|
protected |
specifies the origin type of the particle (prim.vertex, ...)
Definition at line 167 of file TrackParticleBase.h.
|
protected |
the summary of this TrackParticle.
Owned by this object.
Definition at line 176 of file TrackParticleBase.h.