ATLAS Offline Software
StripInformationHelper.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ACTSTRK_DATAPREPARATION_STRIPINFORMATIONHELPER_H
6 #define ACTSTRK_DATAPREPARATION_STRIPINFORMATIONHELPER_H
7 
9 
10 namespace ActsTrk {
11 
14 
16 
22 
23  public:
25 
27  StripInformationHelper(const unsigned int& idHash,
28  const Amg::Vector3D& stripStart,
29  const Amg::Vector3D& stripEnd,
30  const Amg::Vector3D& beamSpotVertex,
31  const float& locx,
32  const size_t& clusterIndex,
33  const size_t& stripIndex);
35 
37 
38  virtual ~StripInformationHelper() = default;
42 
44 
45  void set(const unsigned int& idHash,
46  const Amg::Vector3D& stripStart,
47  const Amg::Vector3D& stripEnd,
48  const Amg::Vector3D& beamSpotVertex,
49  const float& locx,
50  const size_t& clusterIndex,
51  const size_t& stripIndex);
53 
55 
56  const unsigned int& idHash() const {return m_idHash;}
57  const size_t& clusterIndex() const {return m_clusterIndex;}
58  const Amg::Vector3D& stripCenter () const {return m_stripCenter ;}
59  const Amg::Vector3D& stripDirection () const {return m_stripDir ;}
60  const Amg::Vector3D& trajDirection () const {return m_trajDir ;}
61  const Amg::Vector3D& normal() const {return m_normal;}
62  const double& oneOverStrip() const {return m_oneOverStrip;}
63  const float& locX() const {return m_locX;}
64  const size_t& stripIndex() const {return m_stripIndex;}
65  Amg::Vector3D position(const double& shift) const;
67 
68  private:
69 
76  Amg::Vector3D m_stripDir {0., 0., 0.};
79  Amg::Vector3D m_trajDir {0., 0., 0.};
83  Amg::Vector3D m_normal {0., 0., 0.};
85  double m_oneOverStrip {0.};
87  float m_locX {0.};
89  size_t m_stripIndex {0};
91  size_t m_clusterIndex {0};
93  unsigned int m_idHash {0};
94  };
95 
96 } // end of name space
97 
98 #endif // ACTSTRKSPACEPOINTFORMATIONTOOL_STRIPINFORMATIONHELPER_H
ActsTrk::EtaMinus
@ EtaMinus
Definition: StripInformationHelper.h:13
ActsTrk::StripInformationHelper::oneOverStrip
const double & oneOverStrip() const
Definition: StripInformationHelper.h:62
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::locX
const float & locX() const
Definition: StripInformationHelper.h:63
ActsTrk::StripInformationHelper::operator=
StripInformationHelper & operator=(const StripInformationHelper &)=default
ActsTrk::Opposite
@ Opposite
Definition: StripInformationHelper.h:13
ActsTrk::EtaPlus
@ EtaPlus
Definition: StripInformationHelper.h:13
ActsTrk::StripInformationHelper
Definition: StripInformationHelper.h:15
GeoPrimitives.h
ActsTrk::StripInformationHelper::m_locX
float m_locX
Definition: StripInformationHelper.h:87
ActsTrk::PhiPlus
@ PhiPlus
Definition: StripInformationHelper.h:13
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::normal
const Amg::Vector3D & normal() const
Definition: StripInformationHelper.h:61
ActsTrk::StripInformationHelper::position
Amg::Vector3D position(const double &shift) const
Definition: StripInformationHelper.cxx:39
ActsTrk::StripInformationHelper::m_oneOverStrip
double m_oneOverStrip
Definition: StripInformationHelper.h:85
ActsTrk::StripInformationHelper::stripCenter
const Amg::Vector3D & stripCenter() const
Definition: StripInformationHelper.h:58
ActsTrk::StripInformationHelper::StripInformationHelper
StripInformationHelper(const StripInformationHelper &)=default
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
ActsTrk::StripInformationHelper::StripInformationHelper
StripInformationHelper()=default
ActsTrk::StripInformationHelper::idHash
const unsigned int & idHash() const
Definition: StripInformationHelper.h:56
ActsTrk::PhiMinus
@ PhiMinus
Definition: StripInformationHelper.h:13
ActsTrk::ThisOne
@ ThisOne
Definition: StripInformationHelper.h:13
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition: MuonDetectorBuilderTool.cxx:27
ActsTrk::StripInformationHelper::~StripInformationHelper
virtual ~StripInformationHelper()=default
ActsTrk::NeighbourIndices
NeighbourIndices
Total number of neightbours and indices.
Definition: StripInformationHelper.h:13
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
ActsTrk::StripInformationHelper::stripDirection
const Amg::Vector3D & stripDirection() const
Definition: StripInformationHelper.h:59
ActsTrk::nNeighbours
@ nNeighbours
Definition: StripInformationHelper.h:13
ActsTrk::StripInformationHelper::trajDirection
const Amg::Vector3D & trajDirection() const
Definition: StripInformationHelper.h:60