ATLAS Offline Software
Loading...
Searching...
No Matches
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
6
7AFP_GeometryTool::AFP_GeometryTool(const std::string& type, const std::string& name, const IInterface* parent) :
8 base_class(type, name, parent)
9{
10}
11
15
17{
18 return StatusCode::SUCCESS;
19}
20
22{
23 return StatusCode::SUCCESS;
24}
25
27{
28 // coppy of constructor of AFP_Geometry
29 m_CfgParams=*pCfgParams;
30
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);
43HepGeom::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);
51HepGeom::Transform3D Aux=getSIDTransform(ESTT_SENSORLOCAL,szStationName,nPlateID);
52 m_MapSIDTransToLocal[eStation][nPlateID]=Aux;
53 }
54 }
55 }
56}
@ ESTT_SENSORLOCAL
@ ESTT_SENSORGLOBAL
eAFPStation
@ EAS_AFP03
@ EAS_AFP00
virtual StatusCode initialize() override
virtual void SetCfgParams(AFP_CONFIGURATION *pCfgParams) override
virtual ~AFP_GeometryTool() override
AFP_GeometryTool(const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode finalize() override
std::map< eAFPStation, std::map< int, HepGeom::Transform3D > > m_MapSIDTransToGlobal
std::map< eAFPStation, std::map< int, HepGeom::Transform3D > > m_MapSIDTransToLocal
void setupLBarsDims(const eAFPStation eStation)
AFP_CONFIGURATION m_CfgParams
HepGeom::Transform3D getSIDTransform(const eSIDTransformType eType, const char *pszStationName, const int nPlateID) const
int getSIDPlatesCnt(const eAFPStation eStation) const