/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Event/BesDChain/BesDChain-00-00-14/BesDChain/Template/BesDCSelector.cc

Go to the documentation of this file.
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

Generated on Tue Nov 29 22:58:19 2016 for BOSS_7.0.2 by  doxygen 1.4.7