CGEM BOSS 6.6.5.f
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 ()
 
 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
 
virtual void Dump ()=0
 

Additional Inherited Members

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

Detailed Description

Constructor & Destructor Documentation

◆ MucGeomSvc() [1/2]

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() [1/2]

MucGeomSvc::~MucGeomSvc ( )

Definition at line 55 of file MucGeomSvc.cxx.

55 {
56}

◆ MucGeomSvc() [2/2]

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

◆ ~MucGeomSvc() [2/2]

MucGeomSvc::~MucGeomSvc ( )

Member Function Documentation

◆ Dump() [1/2]

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().

◆ Dump() [2/2]

virtual void MucGeomSvc::Dump ( )
virtual

Implements IMucGeomSvc.

◆ finalize() [1/2]

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}

◆ finalize() [2/2]

virtual StatusCode MucGeomSvc::finalize ( )
virtual

◆ GetGap() [1/2]

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).

◆ GetGap() [2/2]

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

◆ GetGeoGeneral() [1/2]

const MucGeoGeneral *const MucGeomSvc::GetGeoGeneral ( )
virtual

Definition at line 70 of file MucGeomSvc.cxx.

71{
72 return m_pMucGeoGeneral;
73}

◆ GetGeoGeneral() [2/2]

virtual const MucGeoGeneral *const MucGeomSvc::GetGeoGeneral ( )
virtual

◆ GetMucG4Geo() [1/2]

const MucG4Geo *const MucGeomSvc::GetMucG4Geo ( )
virtual

Definition at line 92 of file MucGeomSvc.cxx.

93{
94 return m_pMucG4Geo;
95}

◆ GetMucG4Geo() [2/2]

virtual const MucG4Geo *const MucGeomSvc::GetMucG4Geo ( )
virtual

◆ GetStrip() [1/2]

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).

◆ GetStrip() [2/2]

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

◆ initialize() [1/2]

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}

◆ initialize() [2/2]

virtual StatusCode MucGeomSvc::initialize ( )
virtual

◆ queryInterface() [1/2]

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}

◆ queryInterface() [2/2]

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

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