#include <DataInfoSvc.h>
Inheritance diagram for DataInfoSvc:
Public Member Functions | |
DataInfoSvc (const std::string &name, ISvcLocator *svcloc) | |
~DataInfoSvc () | |
virtual StatusCode | queryInterface (const InterfaceID &riid, void **ppvUnknown) |
virtual StatusCode | initialize () |
virtual StatusCode | finalize () |
string | getDecayOptions () |
std::vector< int > | getTotEvtNo () |
void | setDecayCard (string card) |
void | setTotEvtNo (std::vector< int > i) |
Static Public Member Functions | |
static const InterfaceID & | interfaceID () |
Private Attributes | |
string | m_decayOptions |
std::vector< int > | m_totEvtNo |
Definition at line 15 of file DataInfoSvc.h.
DataInfoSvc::DataInfoSvc | ( | const std::string & | name, | |
ISvcLocator * | svcloc | |||
) |
DataInfoSvc::~DataInfoSvc | ( | ) |
StatusCode DataInfoSvc::finalize | ( | ) | [virtual] |
Definition at line 72 of file DataInfoSvc.cxx.
References Bes_Common::INFO.
00072 { 00073 MsgStream log(messageService(), name()); 00074 log << MSG::INFO << "DataInfoSvc::finalize()" << endreq; 00075 return StatusCode::SUCCESS; 00076 }
string DataInfoSvc::getDecayOptions | ( | ) | [inline] |
Definition at line 25 of file DataInfoSvc.h.
References m_decayOptions.
Referenced by EventWriter::getDecayOptions(), and RootInterface::getDecayOptions().
00025 { return m_decayOptions; }
std::vector<int> DataInfoSvc::getTotEvtNo | ( | ) | [inline] |
Definition at line 26 of file DataInfoSvc.h.
References m_totEvtNo.
Referenced by MixerAlg::execute(), and RootInterface::getTotEvtNo().
00026 { return m_totEvtNo; }
StatusCode DataInfoSvc::initialize | ( | ) | [virtual] |
Definition at line 41 of file DataInfoSvc.cxx.
References Bes_Common::INFO.
00041 { 00042 MsgStream log(messageService(), name()); 00043 log << MSG::INFO << "DataInfoSvc::initialize()" << endreq; 00044 00045 StatusCode sc = Service::initialize(); 00046 sc = setProperties(); 00047 return StatusCode::SUCCESS; 00048 }
static const InterfaceID& IDataInfoSvc::interfaceID | ( | ) | [inline, static, inherited] |
Definition at line 13 of file IDataInfoSvc.h.
References IID_IDataInfoSvc().
00013 { return IID_IDataInfoSvc; }
StatusCode DataInfoSvc::queryInterface | ( | const InterfaceID & | riid, | |
void ** | ppvUnknown | |||
) | [virtual] |
Definition at line 32 of file DataInfoSvc.cxx.
References IID_IDataInfoSvc().
00032 { 00033 if( IID_IDataInfoSvc.versionMatch(riid) ){ 00034 *ppvInterface = static_cast<IDataInfoSvc*> (this); 00035 } else{ 00036 return Service::queryInterface(riid, ppvInterface); 00037 } 00038 return StatusCode::SUCCESS; 00039 }
void DataInfoSvc::setDecayCard | ( | string | card | ) |
Definition at line 50 of file DataInfoSvc.cxx.
References genRecEmupikp::i, Bes_Common::INFO, m_decayOptions, and deljobs::string.
Referenced by EvtDecay::initialize().
00051 { 00052 ifstream fin(card.c_str()); 00053 string tempString; 00054 int i=0; 00055 while(getline(fin,tempString)) 00056 { 00057 if(tempString.size()>0) 00058 { 00059 m_decayOptions += tempString; 00060 m_decayOptions += "\n"; 00061 } 00062 i++; 00063 } 00064 if(i>100) m_decayOptions = ""; 00065 MsgStream log(messageService(), name()); 00066 log << MSG::INFO << "set decayOptions: " << endreq; 00067 log << MSG::INFO << endreq 00068 << m_decayOptions << endreq; 00069 }
void DataInfoSvc::setTotEvtNo | ( | std::vector< int > | i | ) | [inline] |
Definition at line 29 of file DataInfoSvc.h.
References m_totEvtNo.
Referenced by McContext::McContext(), and RootInterface::printJobInfo().
00029 { m_totEvtNo = i; }
string DataInfoSvc::m_decayOptions [private] |
std::vector<int> DataInfoSvc::m_totEvtNo [private] |