ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsDataPreparation
src
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
5
#include "
StripInformationHelper.h
"
6
7
namespace
ActsTrk
{
8
9
StripInformationHelper::StripInformationHelper
(
const
unsigned
int
&
idHash
,
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;
34
m_clusterIndex
=
clusterIndex
;
35
m_stripIndex
=
stripIndex
;
36
m_idHash
=
idHash
;
37
}
38
39
Amg::Vector3D
StripInformationHelper::position
(
const
double
& shift)
const
40
{
41
return
(
m_cache
.mid+(0.5*shift)*
m_cache
.btmToTop);
42
}
43
}
StripInformationHelper.h
ActsTrk::StripInformationHelper::stripIndex
const size_t & stripIndex() const
Definition
StripInformationHelper.h:68
ActsTrk::StripInformationHelper::StripInformationHelper
StripInformationHelper()=default
ActsTrk::StripInformationHelper::m_cache
Acts::StripSpacePointBuilder::ConstrainedStripCache m_cache
Definition
StripInformationHelper.h:78
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::clusterIndex
const size_t & clusterIndex() const
Definition
StripInformationHelper.h:59
ActsTrk::StripInformationHelper::idHash
const unsigned int & idHash() const
Definition
StripInformationHelper.h:58
ActsTrk::StripInformationHelper::m_idHash
unsigned int m_idHash
Definition
StripInformationHelper.h:86
ActsTrk::StripInformationHelper::m_stripIndex
size_t m_stripIndex
Definition
StripInformationHelper.h:82
ActsTrk::StripInformationHelper::position
Amg::Vector3D position(const double &shift) const
Definition
StripInformationHelper.cxx:39
ActsTrk::StripInformationHelper::m_clusterIndex
size_t m_clusterIndex
Definition
StripInformationHelper.h:84
ActsTrk::StripInformationHelper::m_locX
float m_locX
Definition
StripInformationHelper.h:80
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition
GeoPrimitives.h:48
Generated on
for ATLAS Offline Software by
1.17.0