BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/BesDChain/include/BesDChain/Template/BesDCSelector.cc
Go to the documentation of this file.
1#ifndef BES_DCHAIN_SELECTOR_CC
2#define BES_DCHAIN_SELECTOR_CC
3
4#include "GaudiKernel/Bootstrap.h"
5#include "GaudiKernel/ISvcLocator.h"
6#include "GaudiKernel/StatusCode.h"
7
8template <class Arg> IDataProviderSvc* BesDCSelector<Arg>::eventSvc() {
9
10 if ( m_evtSvc == 0 )
11 {
12 StatusCode sc = Gaudi::svcLocator()->service( "EventDataSvc", m_evtSvc, true );
13 if ( sc.isFailure() ) { assert( false ); }
14 }
15
16 return m_evtSvc;
17}
18
20
21 if ( m_vtxSvc == 0 )
22 {
23 StatusCode sc = Gaudi::svcLocator()->service( "VertexDbSvc", m_vtxSvc, true );
24 if ( sc.isFailure() ) { assert( false ); }
25 }
26
27 return m_vtxSvc;
28}
29
30#endif