BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
Simulation/SimHelpers/SimHelpers-00-00-01/SimHelpers/ServiceAccessor.h File Reference
#include "GaudiKernel/ISvcLocator.h"
#include "GaudiKernel/Bootstrap.h"
#include "GaudiKernel/MsgStream.h"
#include "GaudiKernel/IMessageSvc.h"
#include "GaudiKernel/IHistogramSvc.h"
#include "StoreGate/StoreGateSvc.h"
#include "GaudiKernel/INTupleSvc.h"

Go to the source code of this file.

Functions

IMessageSvc * msgSvc ()
 
IHistogramSvc * histoSvc ()
 
StoreGateSvc * storeGateSvc ()
 
INTupleSvc * ntupleSvc ()
 

Function Documentation

◆ histoSvc()

IHistogramSvc * histoSvc ( )
inline

Definition at line 25 of file Simulation/SimHelpers/SimHelpers-00-00-01/SimHelpers/ServiceAccessor.h.

26{
27 static IHistogramSvc* hS=0;
28 StatusCode status;
29 if (!hS)
30 {
31 ISvcLocator* svcLocator = Gaudi::svcLocator();
32 status=svcLocator->service("HistogramDataSvc",hS);
33 }
34 return hS;
35}

◆ msgSvc()

IMessageSvc * msgSvc ( )
inline

Definition at line 13 of file Simulation/SimHelpers/SimHelpers-00-00-01/SimHelpers/ServiceAccessor.h.

14{
15 static IMessageSvc* mS=0;
16 if (!mS)
17 {
18 ISvcLocator* svcLocator = Gaudi::svcLocator();
19 svcLocator->service("MessageSvc", mS);
20 }
21 return mS;
22}

◆ ntupleSvc()

INTupleSvc * ntupleSvc ( )
inline

Definition at line 55 of file Simulation/SimHelpers/SimHelpers-00-00-01/SimHelpers/ServiceAccessor.h.

56{
57 static INTupleSvc* nS=0;
58 StatusCode status;
59 if (!nS)
60 {
61 ISvcLocator* svcLocator = Gaudi::svcLocator();
62 status = svcLocator->service("NTupleSvc",nS);
63 }
64 return nS;
65}

◆ storeGateSvc()

StoreGateSvc * storeGateSvc ( )
inline

Definition at line 41 of file Simulation/SimHelpers/SimHelpers-00-00-01/SimHelpers/ServiceAccessor.h.

42{
43 static StoreGateSvc* sG=0;
44 StatusCode status;
45 if (!sG)
46 {
47 ISvcLocator* svcLocator = Gaudi::svcLocator();
48 status = svcLocator->service("StoreGateSvc", sG);
49 }
50 return sG;
51}