ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthenaServices
src
TestRandomSeqAlg.h
Go to the documentation of this file.
1
// Dear emacs, this is -*- C++ -*-
2
3
/*
4
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
#ifndef ATHENASERVICES_TESTRANDOMSEQALG_H
8
#define ATHENASERVICES_TESTRANDOMSEQALG_H 1
9
10
#include "
AthenaBaseComps/AthAlgorithm.h
"
11
#include "
AthenaKernel/IAtRndmGenSvc.h
"
12
#include "Gaudi/Property.h"
13
#include "GaudiKernel/ServiceHandle.h"
14
15
namespace
CLHEP
{
class
HepRandomEngine; }
16
23
class
TestRandomSeqAlg
:
public
AthAlgorithm
{
24
25
public
:
26
using
AthAlgorithm::AthAlgorithm
;
27
28
virtual
StatusCode
initialize
()
override
;
29
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
30
31
32
private
:
34
ServiceHandle<IAtRndmGenSvc>
m_rndmSvc
{
this
,
"RndmSvc"
,
"AtRanluxGenSvc"
,
"the IAtRndmGenSvc we want to test"
};
35
Gaudi::Property<std::string>
m_streamName
{
this
,
"StreamName"
,
"TEST"
,
"random number stream to use"
};
36
Gaudi::Property<int>
m_noOfNo
{
this
,
"NoOfNo"
, 10,
"the number of random numbers to shoot and print per event"
};
37
CLHEP::HepRandomEngine*
m_pEng
{
nullptr
};
38
};
39
40
#endif
AthAlgorithm.h
IAtRndmGenSvc.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
ServiceHandle
Definition
ClusterMakerTool.h:36
TestRandomSeqAlg
Definition
TestRandomSeqAlg.h:23
TestRandomSeqAlg::m_streamName
Gaudi::Property< std::string > m_streamName
Definition
TestRandomSeqAlg.h:35
TestRandomSeqAlg::initialize
virtual StatusCode initialize() override
Definition
TestRandomSeqAlg.cxx:10
TestRandomSeqAlg::m_pEng
CLHEP::HepRandomEngine * m_pEng
Definition
TestRandomSeqAlg.h:37
TestRandomSeqAlg::m_noOfNo
Gaudi::Property< int > m_noOfNo
Definition
TestRandomSeqAlg.h:36
TestRandomSeqAlg::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
TestRandomSeqAlg.cxx:18
TestRandomSeqAlg::m_rndmSvc
ServiceHandle< IAtRndmGenSvc > m_rndmSvc
handle to the IAtRndmGenSvc we want to test
Definition
TestRandomSeqAlg.h:34
TestRandomSeqAlg::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
CLHEP
STD'S.
Definition
CaloNoiseCompCondAlg.h:57
Generated on
for ATLAS Offline Software by
1.17.0