BOSS 7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
MucGeomSvc Class Reference

#include <MucGeomSvc.h>

+ Inheritance diagram for MucGeomSvc:

Public Member Functions

 MucGeomSvc (const std::string &name, ISvcLocator *svcloc)
 
 ~MucGeomSvc ()
 
virtual StatusCode queryInterface (const InterfaceID &riid, void **ppvUnknown)
 
virtual StatusCode initialize ()
 
virtual StatusCode finalize ()
 
virtual const MucGeoGeneral *const GetGeoGeneral ()
 
virtual const MucGeoGap *const GetGap (int part, int seg, int gap)
 
virtual const MucGeoStrip *const GetStrip (int part, int seg, int gap, int strip)
 
virtual const MucG4Geo *const GetMucG4Geo ()
 
virtual void Dump ()
 
virtual void Dump ()=0
 

Additional Inherited Members

- Static Public Member Functions inherited from IMucGeomSvc
static const InterfaceID & interfaceID ()
 

Detailed Description

Definition at line 24 of file MucGeomSvc.h.

Constructor & Destructor Documentation

◆ MucGeomSvc()

MucGeomSvc::MucGeomSvc ( const std::string &  name,
ISvcLocator *  svcloc 
)

Definition at line 17 of file MucGeomSvc.cxx.

17 : Service(name, svcloc)
18{
19 //Declare the properties
20 declareProperty("GeometryMode",m_Geometry=1);
21
22}

◆ ~MucGeomSvc()

MucGeomSvc::~MucGeomSvc ( )

Definition at line 55 of file MucGeomSvc.cxx.

55 {
56}

Member Function Documentation

◆ Dump()

void MucGeomSvc::Dump ( )
virtual

Implements IMucGeomSvc.

Definition at line 87 of file MucGeomSvc.cxx.

87 {
88 std::cout << "StripNumTotal = " << m_pMucGeoGeneral->GetStripNumTotal() << std::endl;
89}
int GetStripNumTotal()
Get total number of strips.

Referenced by main().

◆ finalize()

StatusCode MucGeomSvc::finalize ( )
virtual

Definition at line 48 of file MucGeomSvc.cxx.

48 {
49 MsgStream log(messageService(), name());
50 log << MSG::INFO << name() << ": End of Run" << endreq;
51 return StatusCode::SUCCESS;
52}

◆ GetGap()

const MucGeoGap *const MucGeomSvc::GetGap ( int  part,
int  seg,
int  gap 
)
virtual

Definition at line 76 of file MucGeomSvc.cxx.

77{
78 return m_pMucGeoGeneral->GetGap(part, seg, gap);
79}
MucGeoGap * GetGap(const int part, const int seg, const int gap) const
Get a pointer to the gap identified by (part,seg,gap).

◆ GetGeoGeneral()

const MucGeoGeneral *const MucGeomSvc::GetGeoGeneral ( )
virtual

Definition at line 70 of file MucGeomSvc.cxx.

71{
72 return m_pMucGeoGeneral;
73}

◆ GetMucG4Geo()

const MucG4Geo *const MucGeomSvc::GetMucG4Geo ( )
virtual

Definition at line 92 of file MucGeomSvc.cxx.

93{
94 return m_pMucG4Geo;
95}

◆ GetStrip()

const MucGeoStrip *const MucGeomSvc::GetStrip ( int  part,
int  seg,
int  gap,
int  strip 
)
virtual

Definition at line 82 of file MucGeomSvc.cxx.

83{
84 return m_pMucGeoGeneral->GetStrip(part, seg, gap, strip);
85}
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).

◆ initialize()

StatusCode MucGeomSvc::initialize ( )
virtual

Definition at line 34 of file MucGeomSvc.cxx.

34 {
35 MsgStream log(messageService(), name());
36 log << MSG::INFO << name() << ": Start of run initialisation" << endreq;
37
38 StatusCode sc = Service::initialize();
39 if ( sc.isFailure() ) return sc;
40
41 // get geometry data
42 Fill();
43
44 return StatusCode::SUCCESS;
45}

◆ queryInterface()

StatusCode MucGeomSvc::queryInterface ( const InterfaceID &  riid,
void **  ppvUnknown 
)
virtual

Definition at line 24 of file MucGeomSvc.cxx.

24 {
25
26 if ( IID_IMucGeomSvc.versionMatch(riid) ) {
27 *ppvInterface = static_cast<IMucGeomSvc*> (this);
28 } else {
29 return Service::queryInterface(riid, ppvInterface) ;
30 }
31 return StatusCode::SUCCESS;
32}

The documentation for this class was generated from the following files: