ATLAS Offline Software
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
ForwardTracker::Collimator Class Reference

#include <Collimator.h>

Inheritance diagram for ForwardTracker::Collimator:
Collaboration diagram for ForwardTracker::Collimator:

Public Types

typedef std::shared_ptr< const CollimatorConstPtr_t
 
typedef std::vector< ConstPtr_tContainer_t
 
typedef Container_t::iterator Iter_t
 
typedef Container_t::const_iterator ConstIter_t
 
typedef std::list< ConstPtr_tList_t
 
typedef List_t::iterator ListIter_t
 
typedef List_t::const_iterator ConstListIter_t
 

Public Member Functions

 Collimator (double, double, Side)
 
std::string label () const
 
Side side () const
 
double frontFace () const
 
double rearFace () const
 
Point position () const
 
bool isEndElement () const
 
IBeamElement::ConstPtr_t clone () const
 
void track (IParticle &) const
 
std::string str () const
 

Private Member Functions

bool isOutOfAperture (const TransversePoint &p) const
 

Private Attributes

std::string m_label
 
Side m_side
 
double m_frontFace
 
double m_rearFace
 
Point m_position
 
double m_xaperture
 
double m_xouter
 
double m_xinner
 

Detailed Description

Definition at line 19 of file ForwardTracker/ForwardTracker/Collimator.h.

Member Typedef Documentation

◆ ConstIter_t

typedef Container_t::const_iterator ForwardTracker::IBeamElement::ConstIter_t
inherited

Definition at line 42 of file ForwardTracker/ForwardTracker/IBeamElement.h.

◆ ConstListIter_t

typedef List_t::const_iterator ForwardTracker::IBeamElement::ConstListIter_t
inherited

Definition at line 45 of file ForwardTracker/ForwardTracker/IBeamElement.h.

◆ ConstPtr_t

Definition at line 36 of file ForwardTracker/ForwardTracker/Collimator.h.

◆ Container_t

Definition at line 37 of file ForwardTracker/ForwardTracker/Collimator.h.

◆ Iter_t

typedef Container_t::iterator ForwardTracker::IBeamElement::Iter_t
inherited

Definition at line 41 of file ForwardTracker/ForwardTracker/IBeamElement.h.

◆ List_t

typedef std::list<ConstPtr_t> ForwardTracker::IBeamElement::List_t
inherited

Definition at line 43 of file ForwardTracker/ForwardTracker/IBeamElement.h.

◆ ListIter_t

typedef List_t::iterator ForwardTracker::IBeamElement::ListIter_t
inherited

Definition at line 44 of file ForwardTracker/ForwardTracker/IBeamElement.h.

Constructor & Destructor Documentation

◆ Collimator()

ForwardTracker::Collimator::Collimator ( double  z,
double  xaperture,
Side  side 
)

Definition at line 11 of file ForwardTracker/src/Collimator.cxx.

11  :
12  m_label ("Collimator"),
13  m_side (side),
14  m_frontFace(z),
15  m_rearFace (z),
17  TransverseShift(z).y(),
18  z),
19  m_xaperture(xaperture),
22  {}

Member Function Documentation

◆ clone()

IBeamElement::ConstPtr_t ForwardTracker::Collimator::clone ( ) const
inlinevirtual

Implements ForwardTracker::IBeamElement.

Definition at line 32 of file ForwardTracker/ForwardTracker/Collimator.h.

32 { IBeamElement::ConstPtr_t pbe(new Collimator(*this)); return pbe; }

◆ frontFace()

double ForwardTracker::Collimator::frontFace ( ) const
inlinevirtual

Implements ForwardTracker::IBeamElement.

Definition at line 27 of file ForwardTracker/ForwardTracker/Collimator.h.

27 { return m_frontFace; }

◆ isEndElement()

bool ForwardTracker::Collimator::isEndElement ( ) const
inlinevirtual

Implements ForwardTracker::IBeamElement.

Definition at line 30 of file ForwardTracker/ForwardTracker/Collimator.h.

30 { return false; }

◆ isOutOfAperture()

bool ForwardTracker::Collimator::isOutOfAperture ( const TransversePoint p) const
inlineprivate

Definition at line 52 of file ForwardTracker/ForwardTracker/Collimator.h.

52 { return (p.x() > m_xouter or p.x() < m_xinner); }

◆ label()

std::string ForwardTracker::Collimator::label ( ) const
inlinevirtual

Implements ForwardTracker::IBeamElement.

Definition at line 25 of file ForwardTracker/ForwardTracker/Collimator.h.

25 { return m_label; }

◆ position()

Point ForwardTracker::Collimator::position ( ) const
inlinevirtual

Implements ForwardTracker::IBeamElement.

Definition at line 29 of file ForwardTracker/ForwardTracker/Collimator.h.

29 { return m_position; }

◆ rearFace()

double ForwardTracker::Collimator::rearFace ( ) const
inlinevirtual

Implements ForwardTracker::IBeamElement.

Definition at line 28 of file ForwardTracker/ForwardTracker/Collimator.h.

28 { return m_rearFace; }

◆ side()

Side ForwardTracker::Collimator::side ( ) const
inlinevirtual

Implements ForwardTracker::IBeamElement.

Definition at line 26 of file ForwardTracker/ForwardTracker/Collimator.h.

26 { return m_side; }

◆ str()

std::string ForwardTracker::Collimator::str ( ) const
virtual

Implements ForwardTracker::IBeamElement.

Definition at line 33 of file ForwardTracker/src/Collimator.cxx.

33  {
34 
35  std::stringstream ost;
36 
37  ost << "m_label " << m_label << "\n"
38  << "m_side " << m_side << "\n"
39  << "m_frontFace " << m_frontFace << "\n"
40  << "m_rearFace " << m_rearFace << "\n"
41  << "m_postion " << m_position << "\n"
42  << "m_xaperture " << m_xaperture << "\n"
43  << "m_xouter " << m_xouter << "\n"
44  << "m_xinner " << m_xinner << "\n";
45 
46  return ost.str();
47  }

◆ track()

void ForwardTracker::Collimator::track ( IParticle particle) const
virtual

Implements ForwardTracker::IBeamElement.

Definition at line 24 of file ForwardTracker/src/Collimator.cxx.

24  {
25 
26  particle.setBeamCoordinateShift(this);
27 
28  if (particle.isOutOfAperture()) return;
29 
30  if (this->isOutOfAperture(particle.transversePosition())) particle.setOutOfAperture(true);
31  }

Member Data Documentation

◆ m_frontFace

double ForwardTracker::Collimator::m_frontFace
private

Definition at line 45 of file ForwardTracker/ForwardTracker/Collimator.h.

◆ m_label

std::string ForwardTracker::Collimator::m_label
private

Definition at line 43 of file ForwardTracker/ForwardTracker/Collimator.h.

◆ m_position

Point ForwardTracker::Collimator::m_position
private

Definition at line 47 of file ForwardTracker/ForwardTracker/Collimator.h.

◆ m_rearFace

double ForwardTracker::Collimator::m_rearFace
private

Definition at line 46 of file ForwardTracker/ForwardTracker/Collimator.h.

◆ m_side

Side ForwardTracker::Collimator::m_side
private

Definition at line 44 of file ForwardTracker/ForwardTracker/Collimator.h.

◆ m_xaperture

double ForwardTracker::Collimator::m_xaperture
private

Definition at line 48 of file ForwardTracker/ForwardTracker/Collimator.h.

◆ m_xinner

double ForwardTracker::Collimator::m_xinner
private

Definition at line 50 of file ForwardTracker/ForwardTracker/Collimator.h.

◆ m_xouter

double ForwardTracker::Collimator::m_xouter
private

Definition at line 49 of file ForwardTracker/ForwardTracker/Collimator.h.


The documentation for this class was generated from the following files:
ForwardTracker::Collimator::m_xaperture
double m_xaperture
Definition: ForwardTracker/ForwardTracker/Collimator.h:48
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
max
#define max(a, b)
Definition: cfImp.cxx:41
ForwardTracker::IBeamElement::ConstPtr_t
std::shared_ptr< const IBeamElement > ConstPtr_t
Definition: ForwardTracker/ForwardTracker/IBeamElement.h:39
ForwardTracker::Collimator::m_xinner
double m_xinner
Definition: ForwardTracker/ForwardTracker/Collimator.h:50
x
#define x
ForwardTracker::Collimator::m_xouter
double m_xouter
Definition: ForwardTracker/ForwardTracker/Collimator.h:49
ForwardTracker::Collimator::m_side
Side m_side
Definition: ForwardTracker/ForwardTracker/Collimator.h:44
ForwardTracker::Collimator::Collimator
Collimator(double, double, Side)
Definition: ForwardTracker/src/Collimator.cxx:11
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
z
#define z
ForwardTracker::Collimator::m_label
std::string m_label
Definition: ForwardTracker/ForwardTracker/Collimator.h:43
ForwardTracker::Collimator::m_frontFace
double m_frontFace
Definition: ForwardTracker/ForwardTracker/Collimator.h:45
ForwardTracker::Collimator::m_rearFace
double m_rearFace
Definition: ForwardTracker/ForwardTracker/Collimator.h:46
ForwardTracker::Collimator::isOutOfAperture
bool isOutOfAperture(const TransversePoint &p) const
Definition: ForwardTracker/ForwardTracker/Collimator.h:52
y
#define y
ForwardTracker::Collimator::m_position
Point m_position
Definition: ForwardTracker/ForwardTracker/Collimator.h:47
ForwardTracker::Collimator::side
Side side() const
Definition: ForwardTracker/ForwardTracker/Collimator.h:26