ATLAS Offline Software
List of all members
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  }

◆ ~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.

57 {return m_clusterIndex;}

◆ idHash()

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

Definition at line 56 of file StripInformationHelper.h.

56 {return m_idHash;}

◆ locX()

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

Definition at line 63 of file StripInformationHelper.h.

63 {return m_locX;}

◆ normal()

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

Definition at line 61 of file StripInformationHelper.h.

61 {return m_normal;}

◆ oneOverStrip()

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

Definition at line 62 of file StripInformationHelper.h.

62 {return m_oneOverStrip;}

◆ 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);
31  m_normal = m_stripDir.cross(m_trajDir);
32  m_oneOverStrip = 1./m_stripDir.mag();
33  m_locX = locx;
36  m_idHash = idHash;
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.

◆ 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.

◆ m_locX

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

Definition at line 87 of file StripInformationHelper.h.

◆ 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.

◆ 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.

◆ m_stripCenter

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

Definition at line 73 of file StripInformationHelper.h.

◆ 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.

◆ 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.

◆ 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.


The documentation for this class was generated from the following files:
ActsTrk::StripInformationHelper::m_stripIndex
size_t m_stripIndex
Definition: StripInformationHelper.h:89
ActsTrk::StripInformationHelper::m_clusterIndex
size_t m_clusterIndex
Definition: StripInformationHelper.h:91
ActsTrk::StripInformationHelper::stripIndex
const size_t & stripIndex() const
Definition: StripInformationHelper.h:64
ActsTrk::StripInformationHelper::clusterIndex
const size_t & clusterIndex() const
Definition: StripInformationHelper.h:57
ActsTrk::StripInformationHelper::m_stripCenter
Amg::Vector3D m_stripCenter
Definition: StripInformationHelper.h:73
ActsTrk::StripInformationHelper::m_locX
float m_locX
Definition: StripInformationHelper.h:87
ActsTrk::StripInformationHelper::m_idHash
unsigned int m_idHash
Definition: StripInformationHelper.h:93
ActsTrk::StripInformationHelper::m_stripDir
Amg::Vector3D m_stripDir
Definition: StripInformationHelper.h:76
ActsTrk::StripInformationHelper::m_oneOverStrip
double m_oneOverStrip
Definition: StripInformationHelper.h:85
ActsTrk::StripInformationHelper::idHash
const unsigned int & idHash() const
Definition: StripInformationHelper.h:56
ActsTrk::StripInformationHelper::m_normal
Amg::Vector3D m_normal
Definition: StripInformationHelper.h:83
ActsTrk::StripInformationHelper::m_trajDir
Amg::Vector3D m_trajDir
Definition: StripInformationHelper.h:79
ActsTrk::StripInformationHelper::set
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)
Definition: StripInformationHelper.cxx:20