ATLAS Offline Software
ForwardTrack.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 
8 #include <iostream>
9 
11 {
12 }
13 
15 
16  std::cout << " ForwardTrack::initialize " << std::endl;
17  std::cout << " ConfigData " << cData;
18 
21 }
22 
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 }
Trk::ParticleSwitcher::particle
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Definition: ParticleHypothesis.h:76
ForwardTracker::beam1
@ beam1
Definition: ForwardTrackerConstants.h:13
ForwardTrack.h
ForwardTracker::beam2
@ beam2
Definition: ForwardTrackerConstants.h:13
ForwardTrack::TrackParticle
bool TrackParticle(ForwardTracker::Particle)
Definition: ForwardTrack.cxx:23
ForwardTrack::initialize
void initialize(const ForwardTracker::ConfigData &)
Definition: ForwardTrack.cxx:14
ForwardTrack::ForwardTrack
ForwardTrack()
Definition: ForwardTrack.cxx:10
BeamlineSetup.h
ForwardTracker::Particle
Definition: ForwardDetectors/ForwardTracker/ForwardTracker/Particle.h:17
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
ForwardTracker::ConfigData
Definition: ForwardTracker/ForwardTracker/ConfigData.h:12
ForwardTrack::m_fPosition
ForwardTracker::Point m_fPosition
Definition: ForwardTrack.h:31
ForwardTrack::m_fMomentum
ForwardTracker::Point m_fMomentum
Definition: ForwardTrack.h:32