#include <MucGeomSvc.h>
Inheritance diagram for MucGeomSvc:
Public Member Functions | |
virtual void | Dump () |
virtual void | Dump () |
virtual StatusCode | finalize () |
virtual StatusCode | finalize () |
virtual const MucGeoGap *const | GetGap (int part, int seg, int gap) |
virtual const MucGeoGap *const | GetGap (int part, int seg, int gap) |
virtual const MucGeoGeneral *const | GetGeoGeneral () |
virtual const MucGeoGeneral *const | GetGeoGeneral () |
virtual const MucG4Geo *const | GetMucG4Geo () |
virtual const MucG4Geo *const | GetMucG4Geo () |
virtual const MucGeoStrip *const | GetStrip (int part, int seg, int gap, int strip) |
virtual const MucGeoStrip *const | GetStrip (int part, int seg, int gap, int strip) |
virtual StatusCode | initialize () |
virtual StatusCode | initialize () |
MucGeomSvc (const std::string &name, ISvcLocator *svcloc) | |
MucGeomSvc (const std::string &name, ISvcLocator *svcloc) | |
virtual StatusCode | queryInterface (const InterfaceID &riid, void **ppvUnknown) |
virtual StatusCode | queryInterface (const InterfaceID &riid, void **ppvUnknown) |
~MucGeomSvc () | |
~MucGeomSvc () | |
Static Public Member Functions | |
const InterfaceID & | interfaceID () |
const InterfaceID & | interfaceID () |
Private Member Functions | |
void | Fill () |
void | Fill () |
Private Attributes | |
int | m_Geometry |
MucG4Geo * | m_pMucG4Geo |
MucG4Geo * | m_pMucG4Geo |
MucGeoGeneral * | m_pMucGeoGeneral |
MucGeoGeneral * | m_pMucGeoGeneral |
|
00017 : Service(name, svcloc) 00018 { 00019 //Declare the properties 00020 declareProperty("GeometryMode",m_Geometry=1); 00021 00022 }
|
|
00055 { 00056 }
|
|
|
|
|
|
Implements IMucGeomSvc. |
|
Implements IMucGeomSvc. 00087 { 00088 std::cout << "StripNumTotal = " << m_pMucGeoGeneral->GetStripNumTotal() << std::endl; 00089 }
|
|
|
|
00058 { 00059 if(m_Geometry==1){ 00060 m_pMucGeoGeneral = MucGeoGeneral::Instance(); 00061 m_pMucGeoGeneral->Init(); 00062 //m_pMucGeoGeneral->InitFromASCII(); 00063 m_pMucGeoGeneral->InitFromXML(); 00064 } else{ //geant4 geo 00065 m_pMucG4Geo = MucG4Geo::Instance(); 00066 } 00067 }
|
|
|
|
00048 { 00049 MsgStream log(messageService(), name()); 00050 log << MSG::INFO << name() << ": End of Run" << endreq; 00051 return StatusCode::SUCCESS; 00052 }
|
|
|
|
00077 { 00078 return m_pMucGeoGeneral->GetGap(part, seg, gap); 00079 }
|
|
|
|
00071 {
00072 return m_pMucGeoGeneral;
00073 }
|
|
|
|
00093 {
00094 return m_pMucG4Geo;
00095 }
|
|
|
|
00083 { 00084 return m_pMucGeoGeneral->GetStrip(part, seg, gap, strip); 00085 }
|
|
|
|
00034 { 00035 MsgStream log(messageService(), name()); 00036 log << MSG::INFO << name() << ": Start of run initialisation" << endreq; 00037 00038 StatusCode sc = Service::initialize(); 00039 if ( sc.isFailure() ) return sc; 00040 00041 // get geometry data 00042 Fill(); 00043 00044 return StatusCode::SUCCESS; 00045 }
|
|
00016 { return IID_IMucGeomSvc; }
|
|
00016 { return IID_IMucGeomSvc; }
|
|
|
|
00024 { 00025 00026 if ( IID_IMucGeomSvc.versionMatch(riid) ) { 00027 *ppvInterface = static_cast<IMucGeomSvc*> (this); 00028 } else { 00029 return Service::queryInterface(riid, ppvInterface) ; 00030 } 00031 return StatusCode::SUCCESS; 00032 }
|
|
|
|
|
|
|
|
|
|
|