13 #include "eformat/SourceIdentifier.h"
16 #include "GaudiKernel/IToolSvc.h"
19 using eformat::helper::SourceIdentifier;
24 ISvcLocator * pSvcLocator)
25 : base_class(
name, pSvcLocator ),
26 m_manager ( nullptr ),
27 m_idHelper ( nullptr ),
28 m_cabling ( nullptr ),
29 m_cablingTool_SR1_ECC ( nullptr ),
30 m_cablingTool_SR1 ( nullptr ),
31 m_cablingTool_TB ( nullptr ),
32 m_cablingTool_DC1 ( nullptr ),
33 m_cablingTool_DC2 ( nullptr ),
34 m_cablingTool_DC3 ( nullptr ),
36 m_numberOfStrawsInROD ( 0 ),
37 m_numberOfStrawsInBarrelROD ( 0 ),
38 m_shiftForLeftEndCapStraws ( 0 ),
39 m_shiftForLeftBarrelStraws ( 0 ),
40 m_shiftForRightBarrelStraws ( 0 ),
41 m_shiftForRightEndCapStraws ( 0 )
63 return StatusCode::FAILURE;
71 return StatusCode::FAILURE;
78 return StatusCode::FAILURE;
83 SmartIF<IToolSvc> toolSvc{service(
"ToolSvc")};
91 toolType =
"TRT_FillCablingData_TB04";
96 return StatusCode::FAILURE;
105 toolType =
"TRT_FillCablingData_DC3";
107 if( StatusCode::SUCCESS !=
111 return StatusCode::FAILURE;
120 toolType =
"TRT_FillCablingData_SR1";
125 return StatusCode::FAILURE;
133 toolType =
"TRT_FillCablingData_SR1_ECC";
135 if( StatusCode::SUCCESS !=
138 ATH_MSG_ERROR(
" Can't get TRT_FillCablingData_SR1_ECC tool " );
139 return StatusCode::FAILURE;
147 return StatusCode::FAILURE;
150 ATH_MSG_INFO(
"TRT_CablingSvc::initializiation finished" );
194 std::vector<uint32_t>
v;
200 subdetector,
const unsigned&
rod,
const int& bufferOffset,
214 int straw = bufferOffset;
215 if (subdetector == eformat::TRT_ENDCAP_A_SIDE)
223 if (subdetector == eformat::TRT_BARREL_A_SIDE)
231 if (subdetector == eformat::TRT_BARREL_C_SIDE)
263 ATH_MSG_FATAL(
"TRT_CablingSvc::getBufferOffset called in invalid case !" );
306 const std::vector<IdentifierHash>&
307 TRT_CablingSvc::getCollID(
uint32_t rob_id)
312 int TRT_CablingSvc::getNumStrawInROD(
uint32_t )
const
314 return m_numberOfStrawsInROD;
318 void TRT_CablingSvc::set_parameters()
320 int numberOfStrawsInROD;
321 int numberOfStrawsInBarrelROD;
322 int shiftForLeftEndCapStraws;
323 int shiftForLeftBarrelStraws;
324 int shiftForRightBarrelStraws;
325 int shiftForRightEndCapStraws;
326 int numberOfEndCapPhiSectors;
327 int numberOfIdentifierSectors;
333 numberOfStrawsInBarrelROD,
334 shiftForLeftEndCapStraws,
335 shiftForLeftBarrelStraws,
336 shiftForRightBarrelStraws,
337 shiftForRightEndCapStraws,
338 numberOfEndCapPhiSectors,
339 numberOfIdentifierSectors);
345 numberOfStrawsInBarrelROD,
346 shiftForLeftEndCapStraws,
347 shiftForLeftBarrelStraws,
348 shiftForRightBarrelStraws,
349 shiftForRightEndCapStraws,
350 numberOfEndCapPhiSectors,
351 numberOfIdentifierSectors);
360 m_numberOfEndCapPhiSectors = numberOfEndCapPhiSectors;
361 m_numberOfIdentifierSectors = numberOfIdentifierSectors;