BOSS 7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
MucGeoCreateAlg Class Reference

#include <MucGeoCreateAlg.h>

+ Inheritance diagram for MucGeoCreateAlg:

Public Member Functions

 MucGeoCreateAlg (const std::string &name, ISvcLocator *pSvcLocator)
 
 ~MucGeoCreateAlg ()
 
StatusCode initialize ()
 
StatusCode execute ()
 
StatusCode finalize ()
 

Detailed Description

Definition at line 18 of file MucGeoCreateAlg.h.

Constructor & Destructor Documentation

◆ MucGeoCreateAlg()

MucGeoCreateAlg::MucGeoCreateAlg ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 20 of file MucGeoCreateAlg.cxx.

20 :
21 Algorithm(name, pSvcLocator), m_bAlignFlag(true)
22{
23 // Declare the properties
24 declareProperty("CreateFlag", m_sCreateFlag);
25 declareProperty("AlignFlag", m_bAlignFlag);
26 declareProperty("AlignFile", m_sAlignFile = "MucGeoAlignConst.root");
27}

◆ ~MucGeoCreateAlg()

MucGeoCreateAlg::~MucGeoCreateAlg ( )
inline

Definition at line 22 of file MucGeoCreateAlg.h.

22{};

Member Function Documentation

◆ execute()

StatusCode MucGeoCreateAlg::execute ( )

Definition at line 46 of file MucGeoCreateAlg.cxx.

47{
48 MsgStream log(msgSvc(), name());
49 log << MSG::INFO << endreq << "In execute()" << endreq;
50
51 return StatusCode::SUCCESS;
52}
IMessageSvc * msgSvc()

◆ finalize()

StatusCode MucGeoCreateAlg::finalize ( )

Definition at line 54 of file MucGeoCreateAlg.cxx.

55{
56 MsgStream log(msgSvc(), name());
57 log << MSG::INFO << endreq << "In finalize()" << endreq << endreq;
58
59 m_pMucGeoMgr->CreateEntities();
60 m_pMucGeoMgr->CreateRootGeo();
61 m_pMucGeoMgr->CreateOnlineStripGeo();
62
63 return StatusCode::SUCCESS;
64}
StatusCode CreateOnlineStripGeo()
Definition: MucGeoMgr.cxx:336
StatusCode CreateEntities()
Definition: MucGeoMgr.cxx:222
StatusCode CreateRootGeo()
Definition: MucGeoMgr.cxx:325

◆ initialize()

StatusCode MucGeoCreateAlg::initialize ( )

Definition at line 30 of file MucGeoCreateAlg.cxx.

31{
32 MsgStream log(msgSvc(), name());
33
34 log << MSG::INFO << endreq << "In initialize() " << endreq;
35 log << MSG::INFO << "Add alignment:\t" << ((m_bAlignFlag)?"YES":"NO") << endreq << endreq;
36
37 if( m_bAlignFlag )
38 log << MSG::INFO << "Alignment file:\t" << m_sAlignFile << endreq;
39
40 m_pMucGeoMgr = new MucGeoMgr( m_sCreateFlag, m_bAlignFlag, m_sAlignFile );
41
42 return StatusCode::SUCCESS;
43}

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