ATLAS Offline Software
ForwardDetectors
ForwardTracker
src
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
5
#include "
ForwardTracker/BeamlineSetup.h
"
6
#include "
ForwardTracker/ForwardTrack.h
"
7
8
#include <iostream>
9
10
ForwardTrack::ForwardTrack
()
11
{
12
}
13
14
void
ForwardTrack::initialize
(
const
ForwardTracker::ConfigData
& cData) {
15
16
std::cout <<
" ForwardTrack::initialize "
<< std::endl;
17
std::cout <<
" ConfigData "
<< cData;
18
19
m_fBeamline1
=
ForwardTracker::BeamlineSetup
(cData,
ForwardTracker::beam1
); std::cout <<
m_fBeamline1
;
20
m_fBeamline2
=
ForwardTracker::BeamlineSetup
(cData,
ForwardTracker::beam2
); std::cout <<
m_fBeamline2
;
21
}
22
23
bool
ForwardTrack::TrackParticle
(
ForwardTracker::Particle
particle
) {
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();
29
m_fParticle
=
particle
;
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
Generated on Mon Dec 23 2024 21:10:36 for ATLAS Offline Software by
1.8.18