ATLAS Offline Software
Loading...
Searching...
No Matches
ActsTrk::StripInformationHelper Class Reference

#include <StripInformationHelper.h>

Collaboration diagram for ActsTrk::StripInformationHelper:

Public Member Functions

Constructors with and without parameters
 StripInformationHelper ()=default
 StripInformationHelper (const unsigned int &idHash, const Amg::Vector3D &stripStart, const Amg::Vector3D &stripEnd, const Amg::Vector3D &beamSpotVertex, const float &locx, const size_t &clusterIndex, const size_t &stripIndex)
Destructor, copy construcor, assignment operator
virtual ~StripInformationHelper ()=default
 StripInformationHelper (const StripInformationHelper &)=default
StripInformationHelperoperator= (const StripInformationHelper &)=default
Public method to set strip properties
void set (const unsigned int &idHash, const Amg::Vector3D &stripStart, const Amg::Vector3D &stripEnd, const Amg::Vector3D &beamSpotVertex, const float &locx, const size_t &clusterIndex, const size_t &stripIndex)
Public methods to return strip properties
const unsigned int & idHash () const
const size_t & clusterIndex () const
const Amg::Vector3DstripCenter () const
const Amg::Vector3DstripDirection () const
const Amg::Vector3DtrajDirection () const
const Amg::Vector3Dnormal () const
const double & oneOverStrip () const
const Acts::StripSpacePointBuilder::ConstrainedStripCache & constrainedCache () const
 The same quantities in the layout Acts::StripSpacePointBuilder consumes.
const float & locX () const
const size_t & stripIndex () const
Amg::Vector3D position (const double &shift) const

Private Attributes

Private members
Parameters
m_cacheThe strip geometry, in the layout Acts::StripSpacePointBuilder wants it, evaluated in the setting function. See the accessors above for the correspondence with the Athena names.
Acts::StripSpacePointBuilder::ConstrainedStripCache m_cache {}
float m_locX {0.}
size_t m_stripIndex {0}
size_t m_clusterIndex {0}
unsigned int m_idHash {0}

Detailed Description

Definition at line 17 of file StripInformationHelper.h.

Constructor & Destructor Documentation

◆ StripInformationHelper() [1/3]

ActsTrk::StripInformationHelper::StripInformationHelper ( )
default

◆ StripInformationHelper() [2/3]

StripInformationHelper::StripInformationHelper ( const unsigned int & idHash,
const Amg::Vector3D & stripStart,
const Amg::Vector3D & stripEnd,
const Amg::Vector3D & beamSpotVertex,
const float & locx,
const size_t & clusterIndex,
const size_t & stripIndex )

Definition at line 9 of file StripInformationHelper.cxx.

16 {
17 this->set(idHash, stripStart, stripEnd, beamSpotVertex, locx, clusterIndex, stripIndex);
18 }
void set(const unsigned int &idHash, const Amg::Vector3D &stripStart, const Amg::Vector3D &stripEnd, const Amg::Vector3D &beamSpotVertex, const float &locx, const size_t &clusterIndex, const size_t &stripIndex)
const unsigned int & idHash() const

◆ ~StripInformationHelper()

virtual ActsTrk::StripInformationHelper::~StripInformationHelper ( )
virtualdefault

◆ StripInformationHelper() [3/3]

ActsTrk::StripInformationHelper::StripInformationHelper ( const StripInformationHelper & )
default

Member Function Documentation

◆ clusterIndex()

const size_t & ActsTrk::StripInformationHelper::clusterIndex ( ) const
inline

Definition at line 59 of file StripInformationHelper.h.

◆ constrainedCache()

const Acts::StripSpacePointBuilder::ConstrainedStripCache & ActsTrk::StripInformationHelper::constrainedCache ( ) const
inline

The same quantities in the layout Acts::StripSpacePointBuilder consumes.

Definition at line 66 of file StripInformationHelper.h.

66{return m_cache;}
Acts::StripSpacePointBuilder::ConstrainedStripCache m_cache

◆ idHash()

const unsigned int & ActsTrk::StripInformationHelper::idHash ( ) const
inline

Definition at line 58 of file StripInformationHelper.h.

◆ locX()

const float & ActsTrk::StripInformationHelper::locX ( ) const
inline

Definition at line 67 of file StripInformationHelper.h.

◆ normal()

const Amg::Vector3D & ActsTrk::StripInformationHelper::normal ( ) const
inline

Definition at line 63 of file StripInformationHelper.h.

63{return m_cache.normal;}

◆ oneOverStrip()

const double & ActsTrk::StripInformationHelper::oneOverStrip ( ) const
inline

Definition at line 64 of file StripInformationHelper.h.

64{return m_cache.invLength;}

◆ operator=()

StripInformationHelper & ActsTrk::StripInformationHelper::operator= ( const StripInformationHelper & )
default

◆ position()

Amg::Vector3D StripInformationHelper::position ( const double & shift) const

Definition at line 39 of file StripInformationHelper.cxx.

40 {
41 return (m_cache.mid+(0.5*shift)*m_cache.btmToTop);
42 }

◆ set()

void StripInformationHelper::set ( const unsigned int & idHash,
const Amg::Vector3D & stripStart,
const Amg::Vector3D & stripEnd,
const Amg::Vector3D & beamSpotVertex,
const float & locx,
const size_t & clusterIndex,
const size_t & stripIndex )

Definition at line 20 of file StripInformationHelper.cxx.

27 {
28 m_cache.mid = 0.5*(stripStart+stripEnd);
29 m_cache.btmToTop = stripStart-stripEnd;
30 m_cache.vtxToMid2 = 2.*(m_cache.mid-beamSpotVertex);
31 m_cache.normal = m_cache.btmToTop.cross(m_cache.vtxToMid2);
32 m_cache.invLength = 1./m_cache.btmToTop.mag();
33 m_locX = locx;
37 }

◆ stripCenter()

const Amg::Vector3D & ActsTrk::StripInformationHelper::stripCenter ( ) const
inline

Definition at line 60 of file StripInformationHelper.h.

60{return m_cache.mid ;}

◆ stripDirection()

const Amg::Vector3D & ActsTrk::StripInformationHelper::stripDirection ( ) const
inline

Definition at line 61 of file StripInformationHelper.h.

61{return m_cache.btmToTop ;}

◆ stripIndex()

const size_t & ActsTrk::StripInformationHelper::stripIndex ( ) const
inline

Definition at line 68 of file StripInformationHelper.h.

68{return m_stripIndex;}

◆ trajDirection()

const Amg::Vector3D & ActsTrk::StripInformationHelper::trajDirection ( ) const
inline

Definition at line 62 of file StripInformationHelper.h.

62{return m_cache.vtxToMid2 ;}

Member Data Documentation

◆ m_cache

Acts::StripSpacePointBuilder::ConstrainedStripCache ActsTrk::StripInformationHelper::m_cache {}
private

Definition at line 78 of file StripInformationHelper.h.

78{};

◆ m_clusterIndex

size_t ActsTrk::StripInformationHelper::m_clusterIndex {0}
private
Parameters
m_clusterIndexxAOD::StripCluster index in container

Definition at line 84 of file StripInformationHelper.h.

84{0};

◆ m_idHash

unsigned int ActsTrk::StripInformationHelper::m_idHash {0}
private
Parameters
m_idHashxAOD::StripCluster idHash for connection to detector element

Definition at line 86 of file StripInformationHelper.h.

86{0};

◆ m_locX

float ActsTrk::StripInformationHelper::m_locX {0.}
private
Parameters
m_locXLocation X of cluster

Definition at line 80 of file StripInformationHelper.h.

80{0.};

◆ m_stripIndex

size_t ActsTrk::StripInformationHelper::m_stripIndex {0}
private
Parameters
m_stripIndexindex of the strip corresponding to location

Definition at line 82 of file StripInformationHelper.h.

82{0};

The documentation for this class was generated from the following files: