9 #include "GaudiKernel/MsgStream.h"
10 #include "GaudiKernel/IIncidentSvc.h"
14 const std::string&
name,
21 declareInterface<ITBCaloPosTool>(
this);
32 return StatusCode::SUCCESS ;
41 IIncidentSvc* incSvc =
nullptr;
42 ATH_CHECK( serviceLocator()->service(
"IncidentSvc", incSvc) );
50 incSvc->addListener(
this,
"BeginRun", PRIORITY);
53 return StatusCode::SUCCESS;
68 ATH_MSG_ERROR (
" unable initialize DataHandle in BeginRun Incident " );
79 const EventContext& ctx = Gaudi::Hive::currentContext();
80 int run = ctx.eventID().run_number();
82 std::string etaKey,thetaKey,zKey,deltaKey;
86 thetaKey =
"/tile/dcs/System1:table.theta:online..value" ;
87 etaKey =
"/tile/dcs/System1:table.eta:online..value" ;
88 zKey =
"/tile/dcs/System1:table.z:online..value" ;
89 deltaKey =
"/tile/dcs/System1:table.delta:online..value" ;
90 ATH_MSG_DEBUG (
" runs before 1000454, using Folders with System1..." );
94 thetaKey =
"/tile/dcs/Tile_LV_62:table.theta:online..value" ;
95 etaKey =
"/tile/dcs/Tile_LV_62:table.eta:online..value" ;
96 zKey =
"/tile/dcs/Tile_LV_62:table.z:online..value" ;
97 deltaKey =
"/tile/dcs/Tile_LV_62:table.delta:online..value" ;
98 ATH_MSG_DEBUG (
" runs after 1000454, using Folders with Tile_LV_62..." );