2#include "GaudiKernel/IInterface.h"
3#include "GaudiKernel/Kernel.h"
4#include "GaudiKernel/MsgStream.h"
5#include "GaudiKernel/StatusCode.h"
10 : base_class( name, svcloc ) {}
26 MsgStream log(
msgSvc(), name() );
27 log << MSG::INFO << name() <<
": Start of run initialisation" << endmsg;
29 StatusCode sc = Service::initialize();
30 if ( sc.isFailure() )
return sc;
34 return StatusCode::SUCCESS;
38 MsgStream log(
msgSvc(), name() );
39 log << MSG::INFO << name() <<
": End of Run" << endmsg;
40 return StatusCode::SUCCESS;
44 for ( vector<BTofGeo*>::iterator it1 = fBTofGeo.begin(); it1 != fBTofGeo.end(); it1++ )
46 for ( vector<ETofGeo*>::iterator it2 = fETofGeo.begin(); it2 != fETofGeo.end(); it2++ )
121 std::cout <<
"Now can get the TOF Geometry Service!!" << std::endl;
148 if (
id < fBTofGeo.size() )
return fBTofGeo[id]->getPhiMax();
153 if (
id < fBTofGeo.size() )
return fBTofGeo[id]->getPhiMin();
158 if (
id < fETofGeo.size() )
return fETofGeo[id]->getPhiMax();
163 if (
id < fETofGeo.size() )
return fETofGeo[id]->getPhiMin();
168 if (
id < fBTofGeo.size() )
return fBTofGeo[id];
173 if (
id < fETofGeo.size() )
return fETofGeo[id];
DECLARE_COMPONENT(BesBdkRc)
ETofGeo * ETof(unsigned id) const
const double getBPhiMin(unsigned id)
virtual StatusCode initialize()
const double getEPhiMax(unsigned id)
TofGeomSvc(const std::string &name, ISvcLocator *svcloc)
BTofGeo * BTof(unsigned id) const
virtual StatusCode finalize()
const double getEPhiMin(unsigned id)
const double getBPhiMax(unsigned id)