ATLAS Offline Software
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 
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 
13 {
14 }
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);
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 }
AFP_Geometry::m_MapSIDTransToLocal
std::map< eAFPStation, std::map< int, HepGeom::Transform3D > > m_MapSIDTransToLocal
Definition: AFP_Geometry.h:25
ESTT_SENSORLOCAL
@ ESTT_SENSORLOCAL
Definition: AFP_ConfigParams.h:17
ESTT_SENSORGLOBAL
@ ESTT_SENSORGLOBAL
Definition: AFP_ConfigParams.h:17
AFP_Geometry::getSIDPlatesCnt
int getSIDPlatesCnt(const eAFPStation eStation) const
Definition: AFP_Geometry.h:40
EAS_AFP00
@ EAS_AFP00
Definition: AFP_ConfigParams.h:18
AFP_GeometryTool::initialize
virtual StatusCode initialize() override
Definition: AFP_GeometryTool.cxx:16
AFP_GeometryTool::AFP_GeometryTool
AFP_GeometryTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: AFP_GeometryTool.cxx:7
AFP_Geometry::getSIDTransform
HepGeom::Transform3D getSIDTransform(const eSIDTransformType eType, const char *pszStationName, const int nPlateID) const
Definition: AFP_Geometry.cxx:136
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AFP_CONFIGURATION
Definition: AFP_ConfigParams.h:135
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
AFP_GeometryTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
EAS_AFP03
@ EAS_AFP03
Definition: AFP_ConfigParams.h:18
AFP_Geometry::setupLBarsDims
void setupLBarsDims(const eAFPStation eStation)
Definition: AFP_Geometry.cxx:276
eAFPStation
eAFPStation
Definition: AFP_ConfigParams.h:18
AFP_GeometryTool::finalize
virtual StatusCode finalize() override
Definition: AFP_GeometryTool.cxx:21
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
AFP_GeometryTool::SetCfgParams
virtual void SetCfgParams(AFP_CONFIGURATION *pCfgParams) override
Definition: AFP_GeometryTool.cxx:26
AFP_Geometry::m_MapSIDTransToGlobal
std::map< eAFPStation, std::map< int, HepGeom::Transform3D > > m_MapSIDTransToGlobal
Definition: AFP_Geometry.h:26
AFP_Geometry::m_CfgParams
AFP_CONFIGURATION m_CfgParams
Definition: AFP_Geometry.h:23
AFP_GeometryTool::~AFP_GeometryTool
virtual ~AFP_GeometryTool() override
Definition: AFP_GeometryTool.cxx:12