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 float & locX () const
const size_t & stripIndex () const
Amg::Vector3D position (const double &shift) const

Private Attributes

Private members
Parameters
m_stripCenterCenter of strip, evaluated in setting function as (stripStart+stripEnd)*0.5
Amg::Vector3D m_stripCenter {0., 0., 0.}
Amg::Vector3D m_stripDir {0., 0., 0.}
Amg::Vector3D m_trajDir {0., 0., 0.}
Amg::Vector3D m_normal {0., 0., 0.}
double m_oneOverStrip {0.}
float m_locX {0.}
size_t m_stripIndex {0}
size_t m_clusterIndex {0}
unsigned int m_idHash {0}

Detailed Description

Definition at line 15 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 57 of file StripInformationHelper.h.

◆ idHash()

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

Definition at line 56 of file StripInformationHelper.h.

◆ locX()

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

Definition at line 63 of file StripInformationHelper.h.

◆ normal()

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

Definition at line 61 of file StripInformationHelper.h.

◆ oneOverStrip()

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

Definition at line 62 of file StripInformationHelper.h.

◆ 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_stripCenter+(0.5*shift)*m_stripDir);
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_stripCenter = 0.5*(stripStart+stripEnd);
29 m_stripDir = stripStart-stripEnd;
30 m_trajDir = 2.*(m_stripCenter-beamSpotVertex);
32 m_oneOverStrip = 1./m_stripDir.mag();
33 m_locX = locx;
37 }

◆ stripCenter()

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

Definition at line 58 of file StripInformationHelper.h.

58{return m_stripCenter ;}

◆ stripDirection()

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

Definition at line 59 of file StripInformationHelper.h.

59{return m_stripDir ;}

◆ stripIndex()

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

Definition at line 64 of file StripInformationHelper.h.

64{return m_stripIndex;}

◆ trajDirection()

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

Definition at line 60 of file StripInformationHelper.h.

60{return m_trajDir ;}

Member Data Documentation

◆ m_clusterIndex

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

Definition at line 91 of file StripInformationHelper.h.

91{0};

◆ m_idHash

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

Definition at line 93 of file StripInformationHelper.h.

93{0};

◆ m_locX

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

Definition at line 87 of file StripInformationHelper.h.

87{0.};

◆ m_normal

Amg::Vector3D ActsTrk::StripInformationHelper::m_normal {0., 0., 0.}
private
Parameters
m_normalNormal to strip diretion and trjectory direction plane, evaluated in setting function as cross product between stripDirection and trajDirection

Definition at line 83 of file StripInformationHelper.h.

83{0., 0., 0.};

◆ m_oneOverStrip

double ActsTrk::StripInformationHelper::m_oneOverStrip {0.}
private
Parameters
m_oneOverStripInverse of length of the strip

Definition at line 85 of file StripInformationHelper.h.

85{0.};

◆ m_stripCenter

Amg::Vector3D ActsTrk::StripInformationHelper::m_stripCenter {0., 0., 0.}
private

Definition at line 73 of file StripInformationHelper.h.

73{0., 0., 0.};

◆ m_stripDir

Amg::Vector3D ActsTrk::StripInformationHelper::m_stripDir {0., 0., 0.}
private
Parameters
m_stripDirDirection of strip, evaluated in setting function as (stripStart-stripEnd)

Definition at line 76 of file StripInformationHelper.h.

76{0., 0., 0.};

◆ m_stripIndex

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

Definition at line 89 of file StripInformationHelper.h.

89{0};

◆ m_trajDir

Amg::Vector3D ActsTrk::StripInformationHelper::m_trajDir {0., 0., 0.}
private
Parameters
m_trajDirDirection of trajectory, evaluated in setting function as (stripStart+stripEnd-2*beamSpotVertex)

Definition at line 79 of file StripInformationHelper.h.

79{0., 0., 0.};

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