#include <DataInfoSvc.h>
Inheritance diagram for DataInfoSvc:
Public Member Functions | |
DataInfoSvc (const std::string &name, ISvcLocator *svcloc) | |
DataInfoSvc (const std::string &name, ISvcLocator *svcloc) | |
virtual StatusCode | finalize () |
virtual StatusCode | finalize () |
string | getDecayOptions () |
string | getDecayOptions () |
std::vector< int > | getTotEvtNo () |
std::vector< int > | getTotEvtNo () |
virtual StatusCode | initialize () |
virtual StatusCode | initialize () |
virtual StatusCode | queryInterface (const InterfaceID &riid, void **ppvUnknown) |
virtual StatusCode | queryInterface (const InterfaceID &riid, void **ppvUnknown) |
void | setDecayCard (string card) |
void | setDecayCard (string card) |
void | setTotEvtNo (std::vector< int > i) |
void | setTotEvtNo (std::vector< int > i) |
~DataInfoSvc () | |
~DataInfoSvc () | |
Static Public Member Functions | |
const InterfaceID & | interfaceID () |
const InterfaceID & | interfaceID () |
Private Attributes | |
string | m_decayOptions |
std::vector< int > | m_totEvtNo |
std::vector< int > | m_totEvtNo |
|
00024 :
00025 Service (name, svcloc){
00026 // declare properties
00027 }
|
|
00029 { 00030 }
|
|
|
|
|
|
|
|
00072 { 00073 MsgStream log(messageService(), name()); 00074 log << MSG::INFO << "DataInfoSvc::finalize()" << endreq; 00075 return StatusCode::SUCCESS; 00076 }
|
|
00025 { return m_decayOptions; }
|
|
00025 { return m_decayOptions; }
|
|
00026 { return m_totEvtNo; }
|
|
00026 { return m_totEvtNo; }
|
|
|
|
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 }
|
|
00013 { return IID_IDataInfoSvc; }
|
|
00013 { return 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 }
|
|
|
|
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 }
|
|
00029 { m_totEvtNo = i; }
|
|
00029 { m_totEvtNo = i; }
|
|
|
|
|
|
|