ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
ForwardDetectors
AFP
AFP_Geometry
src
AFP_GeometryTool.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
AFP_Geometry/AFP_GeometryTool.h
"
6
7
AFP_GeometryTool::AFP_GeometryTool
(
const
std::string&
type
,
const
std::string& name,
const
IInterface* parent) :
8
base_class(
type
, name, parent)
9
{
10
}
11
12
AFP_GeometryTool::~AFP_GeometryTool
()
13
{
14
}
15
16
StatusCode
AFP_GeometryTool::initialize
()
17
{
18
return
StatusCode::SUCCESS;
19
}
20
21
StatusCode
AFP_GeometryTool::finalize
()
22
{
23
return
StatusCode::SUCCESS;
24
}
25
26
void
AFP_GeometryTool::SetCfgParams
(
AFP_CONFIGURATION
* pCfgParams)
27
{
28
// coppy of constructor of AFP_Geometry
29
m_CfgParams
=*pCfgParams;
30
31
setupLBarsDims
(
EAS_AFP00
);
32
setupLBarsDims
(
EAS_AFP03
);
33
34
for
(
int
nStationID=0; nStationID<=3; ++nStationID)
35
{
36
eAFPStation
eStation=(
eAFPStation
)nStationID;
37
for
(
int
nPlateID=0; nPlateID<
getSIDPlatesCnt
(eStation); ++nPlateID)
38
{
39
if
(!(
m_MapSIDTransToGlobal
.find(eStation)!=
m_MapSIDTransToGlobal
.end() &&
m_MapSIDTransToGlobal
[eStation].find(nPlateID)!=
m_MapSIDTransToGlobal
[eStation].end()))
40
{
41
char
szStationName[8];
42
sprintf(szStationName,
"AFP%02i"
,(
int
)eStation);
43
HepGeom::Transform3D Aux=
getSIDTransform
(
ESTT_SENSORGLOBAL
,szStationName,nPlateID);
44
m_MapSIDTransToGlobal
[eStation][nPlateID]=Aux;
45
}
46
47
if
(!(
m_MapSIDTransToLocal
.find(eStation)!=
m_MapSIDTransToLocal
.end() &&
m_MapSIDTransToLocal
[eStation].find(nPlateID)!=
m_MapSIDTransToLocal
[eStation].end()))
48
{
49
char
szStationName[8];
50
sprintf(szStationName,
"AFP%02i"
,(
int
)eStation);
51
HepGeom::Transform3D Aux=
getSIDTransform
(
ESTT_SENSORLOCAL
,szStationName,nPlateID);
52
m_MapSIDTransToLocal
[eStation][nPlateID]=Aux;
53
}
54
}
55
}
56
}
ESTT_SENSORLOCAL
@ ESTT_SENSORLOCAL
Definition
AFP_ConfigParams.h:16
ESTT_SENSORGLOBAL
@ ESTT_SENSORGLOBAL
Definition
AFP_ConfigParams.h:16
eAFPStation
eAFPStation
Definition
AFP_ConfigParams.h:17
EAS_AFP03
@ EAS_AFP03
Definition
AFP_ConfigParams.h:17
EAS_AFP00
@ EAS_AFP00
Definition
AFP_ConfigParams.h:17
AFP_GeometryTool.h
AFP_GeometryTool::initialize
virtual StatusCode initialize() override
Definition
AFP_GeometryTool.cxx:16
AFP_GeometryTool::SetCfgParams
virtual void SetCfgParams(AFP_CONFIGURATION *pCfgParams) override
Definition
AFP_GeometryTool.cxx:26
AFP_GeometryTool::~AFP_GeometryTool
virtual ~AFP_GeometryTool() override
Definition
AFP_GeometryTool.cxx:12
AFP_GeometryTool::AFP_GeometryTool
AFP_GeometryTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
AFP_GeometryTool.cxx:7
AFP_GeometryTool::finalize
virtual StatusCode finalize() override
Definition
AFP_GeometryTool.cxx:21
AFP_Geometry::m_MapSIDTransToGlobal
std::map< eAFPStation, std::map< int, HepGeom::Transform3D > > m_MapSIDTransToGlobal
Definition
AFP_Geometry.h:27
AFP_Geometry::m_MapSIDTransToLocal
std::map< eAFPStation, std::map< int, HepGeom::Transform3D > > m_MapSIDTransToLocal
Definition
AFP_Geometry.h:26
AFP_Geometry::setupLBarsDims
void setupLBarsDims(const eAFPStation eStation)
Definition
AFP_Geometry.cxx:279
AFP_Geometry::getSIDTransform
HepGeom::Transform3D getSIDTransform(const eSIDTransformType eType, std::string_view pszStationName, const int nPlateID) const
Definition
AFP_Geometry.cxx:139
AFP_Geometry::m_CfgParams
AFP_CONFIGURATION m_CfgParams
Definition
AFP_Geometry.h:24
AFP_Geometry::getSIDPlatesCnt
int getSIDPlatesCnt(const eAFPStation eStation) const
Definition
AFP_Geometry.h:41
AFP_CONFIGURATION
Definition
AFP_ConfigParams.h:134
type
Generated on
for ATLAS Offline Software by
1.17.0