7#include "GaudiKernel/Kernel.h"
8#include "GaudiKernel/IInterface.h"
9#include "GaudiKernel/StatusCode.h"
11#include "GaudiKernel/SvcFactory.h"
12#include "GaudiKernel/MsgStream.h"
20 declareProperty(
"GeometryMode",m_Geometry=1);
26 if ( IID_IMucGeomSvc.versionMatch(riid) ) {
29 return Service::queryInterface(riid, ppvInterface) ;
31 return StatusCode::SUCCESS;
35 MsgStream log(messageService(), name());
36 log << MSG::INFO << name() <<
": Start of run initialisation" << endreq;
38 StatusCode sc = Service::initialize();
39 if ( sc.isFailure() )
return sc;
44 return StatusCode::SUCCESS;
49 MsgStream log(messageService(), name());
50 log << MSG::INFO << name() <<
": End of Run" << endreq;
51 return StatusCode::SUCCESS;
58void MucGeomSvc::Fill(){
61 m_pMucGeoGeneral->
Init();
72 return m_pMucGeoGeneral;
78 return m_pMucGeoGeneral->
GetGap(part, seg, gap);
84 return m_pMucGeoGeneral->
GetStrip(part, seg, gap, strip);
88 std::cout <<
"StripNumTotal = " << m_pMucGeoGeneral->
GetStripNumTotal() << std::endl;
static MucG4Geo * Instance()
Get a pointer to the single instance of MucG4Geo.
int GetStripNumTotal()
Get total number of strips.
void Init()
Initialize the instance of MucGeoGeneral.
MucGeoStrip * GetStrip(const int part, const int seg, const int gap, const int strip) const
Get a pointer to the strip identified by (part,seg,gap,strip).
void InitFromXML()
Initialize from xml.
MucGeoGap * GetGap(const int part, const int seg, const int gap) const
Get a pointer to the gap identified by (part,seg,gap).
static MucGeoGeneral * Instance()
Get a pointer to the single instance of MucGeoGeneral.
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvUnknown)
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)