ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
ForwardTrack Class Reference

#include <ForwardTrack.h>

Collaboration diagram for ForwardTrack:

Public Member Functions

 ForwardTrack ()
 
void initialize (const ForwardTracker::ConfigData &)
 
bool TrackParticle (ForwardTracker::Particle)
 
const ForwardTracker::PointfPos ()
 
const ForwardTracker::PointfMom ()
 
const ForwardTracker::ParticlefPar ()
 

Private Attributes

ForwardTracker::Beamline m_fBeamline1
 
ForwardTracker::Beamline m_fBeamline2
 
ForwardTracker::Point m_fPosition
 
ForwardTracker::Point m_fMomentum
 
ForwardTracker::Particle m_fParticle
 

Detailed Description

Definition at line 13 of file ForwardTrack.h.

Constructor & Destructor Documentation

◆ ForwardTrack()

ForwardTrack::ForwardTrack ( )

Definition at line 10 of file ForwardTrack.cxx.

11 {
12 }

Member Function Documentation

◆ fMom()

const ForwardTracker::Point& ForwardTrack::fMom ( )
inline

Definition at line 24 of file ForwardTrack.h.

24 { return m_fMomentum; }

◆ fPar()

const ForwardTracker::Particle& ForwardTrack::fPar ( )
inline

Definition at line 25 of file ForwardTrack.h.

25 { return m_fParticle; }

◆ fPos()

const ForwardTracker::Point& ForwardTrack::fPos ( )
inline

Definition at line 23 of file ForwardTrack.h.

23 { return m_fPosition; }

◆ initialize()

void ForwardTrack::initialize ( const ForwardTracker::ConfigData cData)

Definition at line 14 of file ForwardTrack.cxx.

14  {
15 
16  std::cout << " ForwardTrack::initialize " << std::endl;
17  std::cout << " ConfigData " << cData;
18 
21 }

◆ TrackParticle()

bool ForwardTrack::TrackParticle ( ForwardTracker::Particle  particle)

Definition at line 23 of file ForwardTrack.cxx.

23  {
24 
25  (particle.direction().z()>0.) ? m_fBeamline1.track(particle) : m_fBeamline2.track(particle);
26 
27  m_fPosition = particle.positionRelBeam();
28  m_fMomentum = particle.momentum()*particle.direction();
30 
31  if (particle.isOutOfAperture()) return false;
32 
33  return true;
34 }

Member Data Documentation

◆ m_fBeamline1

ForwardTracker::Beamline ForwardTrack::m_fBeamline1
private

Definition at line 29 of file ForwardTrack.h.

◆ m_fBeamline2

ForwardTracker::Beamline ForwardTrack::m_fBeamline2
private

Definition at line 30 of file ForwardTrack.h.

◆ m_fMomentum

ForwardTracker::Point ForwardTrack::m_fMomentum
private

Definition at line 32 of file ForwardTrack.h.

◆ m_fParticle

ForwardTracker::Particle ForwardTrack::m_fParticle
private

Definition at line 33 of file ForwardTrack.h.

◆ m_fPosition

ForwardTracker::Point ForwardTrack::m_fPosition
private

Definition at line 31 of file ForwardTrack.h.


The documentation for this class was generated from the following files:
Trk::ParticleSwitcher::particle
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Definition: ParticleHypothesis.h:76
ForwardTracker::beam1
@ beam1
Definition: ForwardTrackerConstants.h:13
ForwardTracker::beam2
@ beam2
Definition: ForwardTrackerConstants.h:13
ForwardTracker::BeamlineSetup
Beamline BeamlineSetup(const ConfigData &, const Side &)
Definition: BeamlineSetup.cxx:16
ForwardTracker::Beamline::track
void track(IParticle &) const
Definition: ForwardTracker/src/Beamline.cxx:72
ForwardTrack::m_fBeamline2
ForwardTracker::Beamline m_fBeamline2
Definition: ForwardTrack.h:30
ForwardTrack::m_fParticle
ForwardTracker::Particle m_fParticle
Definition: ForwardTrack.h:33
ForwardTrack::m_fBeamline1
ForwardTracker::Beamline m_fBeamline1
Definition: ForwardTrack.h:29
ForwardTrack::m_fPosition
ForwardTracker::Point m_fPosition
Definition: ForwardTrack.h:31
ForwardTrack::m_fMomentum
ForwardTracker::Point m_fMomentum
Definition: ForwardTrack.h:32