#include <MucGeoCreateAlg.h>
Public Member Functions | |
MucGeoCreateAlg (const std::string &name, ISvcLocator *pSvcLocator) | |
~MucGeoCreateAlg () | |
StatusCode | initialize () |
StatusCode | execute () |
StatusCode | finalize () |
Private Attributes | |
bool | m_bAlignFlag |
std::string | m_sCreateFlag |
std::string | m_sAlignFile |
MucGeoMgr * | m_pMucGeoMgr |
Definition at line 18 of file MucGeoCreateAlg.h.
MucGeoCreateAlg::MucGeoCreateAlg | ( | const std::string & | name, | |
ISvcLocator * | pSvcLocator | |||
) |
Definition at line 20 of file MucGeoCreateAlg.cxx.
References m_bAlignFlag, m_sAlignFile, and m_sCreateFlag.
00020 : 00021 Algorithm(name, pSvcLocator), m_bAlignFlag(true) 00022 { 00023 // Declare the properties 00024 declareProperty("CreateFlag", m_sCreateFlag); 00025 declareProperty("AlignFlag", m_bAlignFlag); 00026 declareProperty("AlignFile", m_sAlignFile = "MucGeoAlignConst.root"); 00027 }
MucGeoCreateAlg::~MucGeoCreateAlg | ( | ) | [inline] |
StatusCode MucGeoCreateAlg::execute | ( | ) |
Definition at line 46 of file MucGeoCreateAlg.cxx.
References Bes_Common::INFO, and msgSvc().
00047 { 00048 MsgStream log(msgSvc(), name()); 00049 log << MSG::INFO << endreq << "In execute()" << endreq; 00050 00051 return StatusCode::SUCCESS; 00052 }
StatusCode MucGeoCreateAlg::finalize | ( | ) |
Definition at line 54 of file MucGeoCreateAlg.cxx.
References MucGeoMgr::CreateEntities(), MucGeoMgr::CreateOnlineStripGeo(), MucGeoMgr::CreateRootGeo(), Bes_Common::INFO, m_pMucGeoMgr, and msgSvc().
00055 { 00056 MsgStream log(msgSvc(), name()); 00057 log << MSG::INFO << endreq << "In finalize()" << endreq << endreq; 00058 00059 m_pMucGeoMgr->CreateEntities(); 00060 m_pMucGeoMgr->CreateRootGeo(); 00061 m_pMucGeoMgr->CreateOnlineStripGeo(); 00062 00063 return StatusCode::SUCCESS; 00064 }
StatusCode MucGeoCreateAlg::initialize | ( | ) |
Definition at line 30 of file MucGeoCreateAlg.cxx.
References Bes_Common::INFO, m_bAlignFlag, m_pMucGeoMgr, m_sAlignFile, m_sCreateFlag, and msgSvc().
00031 { 00032 MsgStream log(msgSvc(), name()); 00033 00034 log << MSG::INFO << endreq << "In initialize() " << endreq; 00035 log << MSG::INFO << "Add alignment:\t" << ((m_bAlignFlag)?"YES":"NO") << endreq << endreq; 00036 00037 if( m_bAlignFlag ) 00038 log << MSG::INFO << "Alignment file:\t" << m_sAlignFile << endreq; 00039 00040 m_pMucGeoMgr = new MucGeoMgr( m_sCreateFlag, m_bAlignFlag, m_sAlignFile ); 00041 00042 return StatusCode::SUCCESS; 00043 }
bool MucGeoCreateAlg::m_bAlignFlag [private] |
MucGeoMgr* MucGeoCreateAlg::m_pMucGeoMgr [private] |
std::string MucGeoCreateAlg::m_sAlignFile [private] |
std::string MucGeoCreateAlg::m_sCreateFlag [private] |