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"
22 declareProperty(
"GeometryMode",m_Geometry=1);
37 MsgStream log(messageService(), name());
38 log << MSG::INFO << name() <<
": Start of run initialisation" << endreq;
40 StatusCode sc = Service::initialize();
41 if ( sc.isFailure() )
return sc;
46 return StatusCode::SUCCESS;
51 MsgStream log(messageService(), name());
52 log << MSG::INFO << name() <<
": End of Run" << endreq;
53 return StatusCode::SUCCESS;
60void MucGeomSvc::Fill(){
63 m_pMucGeoGeneral->
Init();
74 return m_pMucGeoGeneral;
80 return m_pMucGeoGeneral->
GetGap(part, seg, gap);
86 return m_pMucGeoGeneral->
GetStrip(part, seg, gap, strip);
90 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 initialize()
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)