9#include "GaudiKernel/MsgStream.h"
10#include "GaudiKernel/IIncidentSvc.h"
14 const std::string& name,
15 const IInterface* parent)
21 declareInterface<ITBCaloPosTool>(
this);
32 return StatusCode::SUCCESS ;
48 incSvc->addListener(
this,
"BeginRun", PRIORITY);
51 return StatusCode::SUCCESS;
66 ATH_MSG_ERROR (
" unable initialize DataHandle in BeginRun Incident " );
77 const EventContext& ctx = Gaudi::Hive::currentContext();
78 int run = ctx.eventID().run_number();
80 std::string etaKey,thetaKey,zKey,deltaKey;
84 thetaKey =
"/tile/dcs/System1:table.theta:online..value" ;
85 etaKey =
"/tile/dcs/System1:table.eta:online..value" ;
86 zKey =
"/tile/dcs/System1:table.z:online..value" ;
87 deltaKey =
"/tile/dcs/System1:table.delta:online..value" ;
88 ATH_MSG_DEBUG (
" runs before 1000454, using Folders with System1..." );
92 thetaKey =
"/tile/dcs/Tile_LV_62:table.theta:online..value" ;
93 etaKey =
"/tile/dcs/Tile_LV_62:table.eta:online..value" ;
94 zKey =
"/tile/dcs/Tile_LV_62:table.z:online..value" ;
95 deltaKey =
"/tile/dcs/Tile_LV_62:table.delta:online..value" ;
96 ATH_MSG_DEBUG (
" runs after 1000454, using Folders with Tile_LV_62..." );
99 ATH_CHECK ( detStore()->regHandle(m_deltaTable,deltaKey),
false );
100 ATH_CHECK ( detStore()->regHandle(m_thetaTable,thetaKey),
false );
101 ATH_CHECK ( detStore()->regHandle(m_zTable,zKey),
false );
102 ATH_CHECK ( detStore()->regHandle(m_etaTable,etaKey),
false );
Scalar eta() const
pseudorapidity method
Scalar theta() const
theta method
#define ATH_CHECK
Evaluate an expression and check for errors.
bool TBCaloPosTool::initHandles ATLAS_NOT_THREAD_SAFE()
Install fatal handler with default options.
virtual StatusCode initialize()
virtual void handle(const Incident &)
const DataHandle< GenericDbTable > m_etaTable
virtual double z()
access eta value
TBCaloPosTool(const std::string &type, const std::string &name, const IInterface *parent)
virtual StatusCode finalize()
const DataHandle< GenericDbTable > m_thetaTable
virtual double theta()
access eta value
const DataHandle< GenericDbTable > m_zTable
const DataHandle< GenericDbTable > m_deltaTable
virtual double eta()
access eta value
virtual double delta()
access eta value
int run(int argc, char *argv[])