ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
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  }
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  }

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:
Trk::TrackInfo
Contains information about the 'fitter' of this track.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/TrackInfo.h:32
Trk::Track
The ATLAS Track class.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
xAOD::JetInput::Track
@ Track
Definition: JetContainerInfo.h:61
TrackHandleBase::extrapolationParticleHypothesis
virtual Trk::ParticleHypothesis extrapolationParticleHypothesis() const
Default implementation of this next method bases hypothesis on pdgCode() and charge():
Definition: TrackHandleBase.cxx:1517
python.selection.number
number
Definition: selection.py:20
VP1Msg::messageVerbose
static void messageVerbose(const QString &)
Definition: VP1Msg.cxx:84
VP1Msg::messageDebug
static void messageDebug(const QString &)
Definition: VP1Msg.cxx:39
VP1Msg::verbose
static bool verbose()
Definition: VP1Msg.h:31
DataVector::size
size_type size() const noexcept
Returns the number of elements in the collection.
DataVector::empty
bool empty() const noexcept
Returns true if the collection is empty.
Trk::TrackInfo::Unknown
@ Unknown
Track fitter not defined.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/TrackInfo.h:41
TrackHandle_TrackParticle::Imp::theclass
TrackHandle_TrackParticle * theclass
Definition: TrackHandle_TrackParticle.cxx:51