7#include "GaudiKernel/IInterface.h"
8#include "GaudiKernel/Kernel.h"
9#include "GaudiKernel/MsgStream.h"
10#include "GaudiKernel/StatusCode.h"
18 : base_class( name, svcloc ) {
20 declareProperty(
"GeometryMode", m_Geometry = 1 );
24 MsgStream log(
msgSvc(), name() );
25 log << MSG::INFO << name() <<
": Start of run initialisation" << endmsg;
27 StatusCode sc = Service::initialize();
28 if ( sc.isFailure() )
return sc;
33 return StatusCode::SUCCESS;
37 MsgStream log(
msgSvc(), name() );
38 log << MSG::INFO << name() <<
": End of Run" << endmsg;
39 return StatusCode::SUCCESS;
44void MucGeomSvc::Fill() {
45 if ( m_Geometry == 1 )
48 m_pMucGeoGeneral->
Init();
61 return m_pMucGeoGeneral->GetGap( part, seg, gap );
65 return m_pMucGeoGeneral->GetStrip( part, seg, gap, strip );
69 std::cout <<
"StripNumTotal = " << m_pMucGeoGeneral->GetStripNumTotal() << std::endl;
DECLARE_COMPONENT(BesBdkRc)
static MucG4Geo * Instance()
Get a pointer to the single instance of MucG4Geo.
void Init()
Initialize the instance of MucGeoGeneral.
void InitFromXML()
Initialize from xml.
static MucGeoGeneral * Instance()
Get a pointer to the single instance of MucGeoGeneral.
virtual StatusCode initialize()
MucGeomSvc(const std::string &name, ISvcLocator *svcloc)
virtual StatusCode finalize()
virtual const MucGeoGeneral *const GetGeoGeneral()
virtual const MucG4Geo *const GetMucG4Geo()
virtual const MucGeoStrip *const GetStrip(int part, int seg, int gap, int strip)
virtual const MucGeoGap *const GetGap(int part, int seg, int gap)