BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
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 >
9IDataProviderSvc* BesDCSelector< Arg >::eventSvc() {
10
11 if ( m_evtSvc == 0 ) {
12 StatusCode sc = Gaudi::svcLocator()->service( "EventDataSvc", m_evtSvc, true );
13 if( sc.isFailure() ) {
14 assert(false);
15 }
16 }
17
18 return m_evtSvc;
19}
20
21template< class Arg >
23
24 if ( m_vtxSvc == 0 ) {
25 StatusCode sc = Gaudi::svcLocator()->service( "VertexDbSvc", m_vtxSvc, true );
26 if( sc.isFailure() ) {
27 assert(false);
28 }
29 }
30
31 return m_vtxSvc;
32}
33
34#endif
IDataProviderSvc * eventSvc()
Definition: BesDCSelector.cc:9
IVertexDbSvc * vtxDbSvc()