ATLAS Offline Software
Simulation
G4Sim
SimHelpers
SimHelpers
ServiceAccessor.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef ServiceAccessor_H
6
#define ServiceAccessor_H
7
8
9
#include <iostream>
10
#include "GaudiKernel/ISvcLocator.h"
11
#include "GaudiKernel/Bootstrap.h"
12
#include "GaudiKernel/INTupleSvc.h"
13
14
inline
INTupleSvc*
ntupleSvc
()
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
}
26
27
#endif
ntupleSvc
INTupleSvc * ntupleSvc()
Definition:
ServiceAccessor.h:14
Generated on Sun Dec 22 2024 21:17:59 for ATLAS Offline Software by
1.8.18