9 #include "GaudiKernel/IToolSvc.h"
23 NTuple::Item<float> temp1;
24 NTuple::Item<float> temp2;
26 sc=
m_nt->addItem(
"temp1",temp1,-1000.,5000.);
27 if (
sc!=StatusCode::SUCCESS)
29 return StatusCode::FAILURE;
32 sc=
m_nt->addItem(
"temp2",temp2,-1000.,5000.);
33 if (
sc!=StatusCode::SUCCESS)
35 return StatusCode::FAILURE;
38 IToolSvc* toolSvc=
nullptr;
39 sc = service(
"ToolSvc",toolSvc);
40 if (
sc!=StatusCode::SUCCESS) {
45 sc = toolSvc->retrieveTool(
"LArFEBTempTool", larFEBTempTool);
46 if (
sc!=StatusCode::SUCCESS) {
47 ATH_MSG_ERROR(
"Unable to retrieve LArFEBTempTool from ToolSvc" );
48 return StatusCode::FAILURE;
57 FEBTemp::const_iterator itb = tv.begin();
58 FEBTemp::const_iterator ite = tv.end();
63 temp2 = (*itb).second;
69 if (
sc!=StatusCode::SUCCESS)
72 return StatusCode::FAILURE;
80 return StatusCode::SUCCESS;