MucGeoCreateAlg Class Reference

#include <MucGeoCreateAlg.h>

List of all members.

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
MucGeoMgrm_pMucGeoMgr


Detailed Description

Definition at line 18 of file MucGeoCreateAlg.h.


Constructor & Destructor Documentation

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]

Definition at line 22 of file MucGeoCreateAlg.h.

00022 {};


Member Function Documentation

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 }


Member Data Documentation

bool MucGeoCreateAlg::m_bAlignFlag [private]

Definition at line 30 of file MucGeoCreateAlg.h.

Referenced by initialize(), and MucGeoCreateAlg().

MucGeoMgr* MucGeoCreateAlg::m_pMucGeoMgr [private]

Definition at line 34 of file MucGeoCreateAlg.h.

Referenced by finalize(), and initialize().

std::string MucGeoCreateAlg::m_sAlignFile [private]

Definition at line 32 of file MucGeoCreateAlg.h.

Referenced by initialize(), and MucGeoCreateAlg().

std::string MucGeoCreateAlg::m_sCreateFlag [private]

Definition at line 31 of file MucGeoCreateAlg.h.

Referenced by initialize(), and MucGeoCreateAlg().


Generated on Tue Nov 29 23:20:28 2016 for BOSS_7.0.2 by  doxygen 1.4.7