ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Analysis::SVTrackInfo Class Reference

#include <SVTrackInfo.h>

Collaboration diagram for Analysis::SVTrackInfo:

Public Member Functions

 SVTrackInfo ()
 
 SVTrackInfo (const Rec::TrackParticleContainer *coll, const Rec::TrackParticle *trk)
 
 SVTrackInfo (const ElementLink< Rec::TrackParticleContainer > &track)
 
const Rec::TrackParticletrack () const
 
const ElementLink< Rec::TrackParticleContainer > & trackLink () const
 

Private Attributes

ElementLink< Rec::TrackParticleContainerm_track
 

Detailed Description

Definition at line 17 of file SVTrackInfo.h.

Constructor & Destructor Documentation

◆ SVTrackInfo() [1/3]

Analysis::SVTrackInfo::SVTrackInfo ( )
inline

Definition at line 29 of file SVTrackInfo.h.

◆ SVTrackInfo() [2/3]

Analysis::SVTrackInfo::SVTrackInfo ( const Rec::TrackParticleContainer coll,
const Rec::TrackParticle trk 
)
inline

Definition at line 31 of file SVTrackInfo.h.

32  {
34  if( link.toContainedElement(*coll, const_cast<Rec::TrackParticle*>(trk)) ) {
35  m_track = link;
36  }
37  }

◆ SVTrackInfo() [3/3]

Analysis::SVTrackInfo::SVTrackInfo ( const ElementLink< Rec::TrackParticleContainer > &  track)
inline

Definition at line 39 of file SVTrackInfo.h.

40  : m_track (track)
41  {
42  }

Member Function Documentation

◆ track()

const Rec::TrackParticle * Analysis::SVTrackInfo::track ( ) const
inline

Definition at line 44 of file SVTrackInfo.h.

44  {
45  if( m_track.isValid() ) {
46  return *(m_track);
47  } else {
48  return 0;
49  }
50  }

◆ trackLink()

const ElementLink< Rec::TrackParticleContainer > & Analysis::SVTrackInfo::trackLink ( ) const
inline

Definition at line 52 of file SVTrackInfo.h.

53  {
54  return m_track;
55  }

Member Data Documentation

◆ m_track

ElementLink<Rec::TrackParticleContainer> Analysis::SVTrackInfo::m_track
private

Definition at line 26 of file SVTrackInfo.h.


The documentation for this class was generated from the following file:
Analysis::SVTrackInfo::m_track
ElementLink< Rec::TrackParticleContainer > m_track
Definition: SVTrackInfo.h:26
Rec::TrackParticle
Definition: Reconstruction/Particle/Particle/TrackParticle.h:47
Analysis::SVTrackInfo::track
const Rec::TrackParticle * track() const
Definition: SVTrackInfo.h:44