ATLAS Offline Software
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
()
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
TestRandomSeqAlg::m_rndmSvc
ServiceHandle< IAtRndmGenSvc > m_rndmSvc
handle to the IAtRndmGenSvc we want to test
Definition:
TestRandomSeqAlg.h:34
TestRandomSeqAlg::initialize
virtual StatusCode initialize() override
Definition:
TestRandomSeqAlg.cxx:10
TestRandomSeqAlg::m_streamName
Gaudi::Property< std::string > m_streamName
Definition:
TestRandomSeqAlg.h:35
TestRandomSeqAlg::m_noOfNo
Gaudi::Property< int > m_noOfNo
Definition:
TestRandomSeqAlg.h:36
AthAlgorithm.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CLHEP
STD'S.
Definition:
CaloNoiseCompCondAlg.h:58
AthAlgorithm
Definition:
AthAlgorithm.h:47
IAtRndmGenSvc.h
TestRandomSeqAlg
Definition:
TestRandomSeqAlg.h:23
TestRandomSeqAlg::execute
virtual StatusCode execute() override
Definition:
TestRandomSeqAlg.cxx:18
AthAlgorithm::AthAlgorithm
AthAlgorithm()
Default constructor:
TestRandomSeqAlg::m_pEng
CLHEP::HepRandomEngine * m_pEng
Definition:
TestRandomSeqAlg.h:37
ServiceHandle< IAtRndmGenSvc >
Generated on Tue Sep 2 2025 21:22:12 for ATLAS Offline Software by
1.8.18