1#include "GaudiKernel/IInterface.h"
2#include "GaudiKernel/StatusCode.h"
3#include "GaudiKernel/SvcFactory.h"
4#include "GaudiKernel/MsgStream.h"
5#include "GaudiKernel/ISvcLocator.h"
6#include "GaudiKernel/SmartDataPtr.h"
7#include "GaudiKernel/IDataProviderSvc.h"
8#include "GaudiKernel/PropertyMgr.h"
9#include "GaudiKernel/SmartIF.h"
10#include "GaudiKernel/IAppMgrUI.h"
11#include "GaudiKernel/IProperty.h"
14#include "GaudiKernel/IIncidentSvc.h"
15#include "GaudiKernel/Incident.h"
16#include "GaudiKernel/IIncidentListener.h"
17#include "GaudiKernel/ISvcLocator.h"
18#include "GaudiKernel/Bootstrap.h"
25 Service (name, svcloc){
33 if( IID_IDataInfoSvc.versionMatch(riid) ){
36 return Service::queryInterface(riid, ppvInterface);
38 return StatusCode::SUCCESS;
42 MsgStream log(messageService(), name());
43 log << MSG::INFO <<
"DataInfoSvc::initialize()" << endreq;
45 StatusCode sc = Service::initialize();
47 return StatusCode::SUCCESS;
52 ifstream fin(card.c_str());
55 while(getline(fin,tempString))
57 if(tempString.size()>0)
59 m_decayOptions += tempString;
60 m_decayOptions +=
"\n";
64 if(i>100) m_decayOptions =
"";
65 MsgStream log(messageService(), name());
66 log << MSG::INFO <<
"set decayOptions: " << endreq;
67 log << MSG::INFO << endreq
68 << m_decayOptions << endreq;
73 MsgStream log(messageService(), name());
74 log << MSG::INFO <<
"DataInfoSvc::finalize()" << endreq;
75 return StatusCode::SUCCESS;
DataInfoSvc(const std::string &name, ISvcLocator *svcloc)
virtual StatusCode finalize()
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvUnknown)
void setDecayCard(string card)
virtual StatusCode initialize()