28{
31
32
33 ServiceHandle<StoreGateSvc>
detStore(
"DetectorStore",
name());
36
37
38 SmartIF<IToolSvc> toolSvc{service("ToolSvc")};
40
41
42 std::string toolType;
44 {
46 toolType = "TRT_FillCablingData_TB04";
49 {
51 return StatusCode::FAILURE;
52 }
54 }
55
56 else if ((
m_manager->getLayout() ==
"Initial") ||
58 {
60 toolType = "TRT_FillCablingData_DC3";
62 if( StatusCode::SUCCESS !=
64 {
66 return StatusCode::FAILURE;
67 }
68
70
71 }
73 {
75 toolType = "TRT_FillCablingData_SR1";
78 {
80 return StatusCode::FAILURE;
81 }
82
84 }
85 else if (
m_manager->getLayout()==
"SR1-EndcapC" )
86 {
88 toolType = "TRT_FillCablingData_SR1_ECC";
90 if( StatusCode::SUCCESS !=
92 {
93 ATH_MSG_ERROR(
" Can't get TRT_FillCablingData_SR1_ECC tool " );
94 return StatusCode::FAILURE;
95 }
96
98 }
99 else
100 {
102 return StatusCode::FAILURE;
103 }
104
105 ATH_MSG_INFO(
"TRT_CablingSvc::initializiation finished" );
106
108}
#define ATH_CHECK
Evaluate an expression and check for errors.
const InDetDD::TRT_DetectorManager * m_manager
::StatusCode StatusCode
StatusCode definition for legacy code.