00001 #ifndef BES_DCHAIN_SELECTOR_CC 00002 #define BES_DCHAIN_SELECTOR_CC 00003 00004 #include "GaudiKernel/Bootstrap.h" 00005 #include "GaudiKernel/ISvcLocator.h" 00006 #include "GaudiKernel/StatusCode.h" 00007 00008 template< class Arg > 00009 IDataProviderSvc* BesDCSelector< Arg >::eventSvc() { 00010 00011 if ( m_evtSvc == 0 ) { 00012 StatusCode sc = Gaudi::svcLocator()->service( "EventDataSvc", m_evtSvc, true ); 00013 if( sc.isFailure() ) { 00014 assert(false); 00015 } 00016 } 00017 00018 return m_evtSvc; 00019 } 00020 00021 template< class Arg > 00022 IVertexDbSvc* BesDCSelector< Arg >::vtxDbSvc() { 00023 00024 if ( m_vtxSvc == 0 ) { 00025 StatusCode sc = Gaudi::svcLocator()->service( "VertexDbSvc", m_vtxSvc, true ); 00026 if( sc.isFailure() ) { 00027 assert(false); 00028 } 00029 } 00030 00031 return m_vtxSvc; 00032 } 00033 00034 #endif