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_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 }
38
40 {
41 return (m_cache.mid+(0.5*shift)*m_cache.btmToTop);
42 }
43}
Acts::StripSpacePointBuilder::ConstrainedStripCache m_cache
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