ATLAS Offline Software
Loading...
Searching...
No Matches
StripInformationHelper.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7namespace ActsTrk {
8
10 const Amg::Vector3D& stripStart,
11 const Amg::Vector3D& stripEnd,
12 const Amg::Vector3D& beamSpotVertex,
13 const float& locx,
14 const size_t& clusterIndex,
15 const size_t& stripIndex)
16 {
17 this->set(idHash, stripStart, stripEnd, beamSpotVertex, locx, clusterIndex, stripIndex);
18 }
19
20 void StripInformationHelper::set(const unsigned int& idHash,
21 const Amg::Vector3D& stripStart,
22 const Amg::Vector3D& stripEnd,
23 const Amg::Vector3D& beamSpotVertex,
24 const float& locx,
25 const size_t& clusterIndex,
26 const size_t& stripIndex)
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 }
38
40 {
41 return (m_stripCenter+(0.5*shift)*m_stripDir);
42 }
43}
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
Amg::Vector3D position(const double &shift) const
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Eigen::Matrix< double, 3, 1 > Vector3D