ATLAS Offline Software
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_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;
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_stripCenter
+(0.5*shift)*
m_stripDir
);
42
}
43
}
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
StripInformationHelper.h
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::position
Amg::Vector3D position(const double &shift) const
Definition:
StripInformationHelper.cxx:39
ActsTrk::StripInformationHelper::m_oneOverStrip
double m_oneOverStrip
Definition:
StripInformationHelper.h:85
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
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition:
MuonDetectorBuilderTool.cxx:54
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
Generated on Mon Dec 23 2024 21:18:50 for ATLAS Offline Software by
1.8.18