ATLAS Offline Software
Loading...
Searching...
No Matches
TrackHandle_TrackParticle::Imp Class Reference
Collaboration diagram for TrackHandle_TrackParticle::Imp:

Public Member Functions

const Trk::TrackcreateTrack (Trk::TrackStates *trackStateOnSurfaces) const

Public Attributes

TrackHandle_TrackParticletheclass
const Rec::TrackParticletrackparticle
const Trk::TracktrkTrack
bool trkTrackInit

Detailed Description

Definition at line 24 of file TrackHandle_TrackParticle.cxx.

Member Function Documentation

◆ createTrack()

const Trk::Track * TrackHandle_TrackParticle::Imp::createTrack ( Trk::TrackStates * trackStateOnSurfaces) const
inline

Definition at line 27 of file TrackHandle_TrackParticle.cxx.

28 {
29 if (!trackStateOnSurfaces) {
30 VP1Msg::messageDebug("TrackHandle_TrackParticle WARNING: Could not create track due to null TSOS vector");
31 return nullptr;
32 }
33 if (trackStateOnSurfaces->empty()) {
34 VP1Msg::messageDebug("TrackHandle_TrackParticle WARNING: Could not create track due to empty TSOS vector");
35 delete trackStateOnSurfaces;
36 return nullptr;
37 }
38 Trk::TrackInfo ti(Trk::TrackInfo::Unknown,theclass->extrapolationParticleHypothesis());
39 std::unique_ptr<Trk::TrackStates> sink(trackStateOnSurfaces);
40 const Trk::Track* trk =
41 new Trk::Track(ti,
42 std::move(sink),
43 nullptr /*fitquality*/);
44 if (VP1Msg::verbose())
45 VP1Msg::messageVerbose("TrackHandle_TrackParticle created track with "
46 +QString::number(trackStateOnSurfaces->size())+" parameters");
47 return trk;
48 }
size_type size() const noexcept
Returns the number of elements in the collection.
bool empty() const noexcept
Returns true if the collection is empty.
static void messageVerbose(const QString &)
Definition VP1Msg.cxx:84
static bool verbose()
Definition VP1Msg.h:31
static void messageDebug(const QString &)
Definition VP1Msg.cxx:39

Member Data Documentation

◆ theclass

TrackHandle_TrackParticle* TrackHandle_TrackParticle::Imp::theclass

Definition at line 51 of file TrackHandle_TrackParticle.cxx.

◆ trackparticle

const Rec::TrackParticle* TrackHandle_TrackParticle::Imp::trackparticle

Definition at line 52 of file TrackHandle_TrackParticle.cxx.

◆ trkTrack

const Trk::Track* TrackHandle_TrackParticle::Imp::trkTrack

Definition at line 53 of file TrackHandle_TrackParticle.cxx.

◆ trkTrackInit

bool TrackHandle_TrackParticle::Imp::trkTrackInit

Definition at line 54 of file TrackHandle_TrackParticle.cxx.


The documentation for this class was generated from the following file: