ATLAS Offline Software
ForwardTracker/src/Plane.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "ForwardTracker/Plane.h"
9 
10 namespace ForwardTracker {
11 
12  Plane::Plane(double z, Side side):
13  m_label ("Plane"),
14  m_side (side),
15  m_frontFace(z*ForwardTrackerConstants::aside[side]),
16  m_rearFace (z*ForwardTrackerConstants::aside[side]),
17  m_position (TransverseShift(z).x(),
18  TransverseShift(z).y(),
20  {}
21 
23 
24  particle.setBeamCoordinateShift(this);
25 
26  if (particle.isOutOfAperture()) return;
27 
28  if (particle.displacement().mag2() > ForwardTrackerConstants::beamPipeRadius2) particle.setOutOfAperture(true);
29  }
30 
31  std::string Plane::str() const {
32 
33  std::ostringstream ost;
34 
35  ost << "m_label " << m_label << "\n"
36  << "m_side " << m_side << "\n"
37  << "m_frontFace " << m_frontFace << "\n"
38  << "m_rearFace " << m_rearFace << "\n"
39  << "m_position " << m_position << "\n";
40 
41  return ost.str();
42  }
43 }
ForwardTracker::Plane::m_rearFace
double m_rearFace
Definition: ForwardTracker/ForwardTracker/Plane.h:43
Trk::ParticleSwitcher::particle
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Definition: ParticleHypothesis.h:76
ForwardTracker::TransverseShift
TransversePoint TransverseShift(double z)
Definition: TransverseShift.cxx:13
python.trigbs_prescaleL1.ost
ost
Definition: trigbs_prescaleL1.py:104
ForwardTracker::Plane::m_label
std::string m_label
Definition: ForwardTracker/ForwardTracker/Plane.h:40
Particle.h
ForwardTracker::Plane::Plane
Plane(double, Side)
Definition: ForwardTracker/src/Plane.cxx:12
x
#define x
Plane.h
ForwardTracker::Plane::m_side
Side m_side
Definition: ForwardTracker/ForwardTracker/Plane.h:41
TransverseShift.h
TRT::Hit::side
@ side
Definition: HitInfo.h:83
ForwardTracker::Plane::m_position
Point m_position
Definition: ForwardTracker/ForwardTracker/Plane.h:44
z
#define z
Side
Definition: WaferTree.h:36
ForwardTracker::IParticle
Definition: ForwardDetectors/ForwardTracker/ForwardTracker/IParticle.h:16
ForwardTracker::Plane::m_frontFace
double m_frontFace
Definition: ForwardTracker/ForwardTracker/Plane.h:42
ForwardTracker::Plane::track
void track(IParticle &) const
Definition: ForwardTracker/src/Plane.cxx:22
ForwardTracker::ForwardTrackerConstants
Definition: ForwardTrackerConstants.h:15
y
#define y
ForwardTrackerConstants.h
ForwardTracker::ForwardTrackerConstants::beamPipeRadius2
static const double beamPipeRadius2
Definition: ForwardTrackerConstants.h:19
ForwardTracker::Plane::str
std::string str() const
Definition: ForwardTracker/src/Plane.cxx:31
ForwardTracker
Definition: ForwardTracker/ForwardTracker/Beamline.h:12