ATLAS Offline Software
Loading...
Searching...
No Matches
ServiceAccessor.h File Reference
#include <iostream>
#include "GaudiKernel/ISvcLocator.h"
#include "GaudiKernel/Bootstrap.h"
#include "GaudiKernel/INTupleSvc.h"
Include dependency graph for ServiceAccessor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

INTupleSvc * ntupleSvc ()

Function Documentation

◆ ntupleSvc()

INTupleSvc * ntupleSvc ( )
inline

Definition at line 14 of file ServiceAccessor.h.

15{
16 auto findNtupleSvc = []()
17 {
18 SmartIF<INTupleSvc> nS{ Gaudi::svcLocator()->service("NTupleSvc") };
19 if (!nS)
20 std::cout<<" ntupleSvc(); could not access NTupleSvc"<<std::endl;
21 return nS;
22 };
23 static INTupleSvc* const nS = findNtupleSvc();
24 return nS;
25}