ATLAS Offline Software
Loading...
Searching...
No Matches
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
12#include "Gaudi/Property.h"
13#include "GaudiKernel/ServiceHandle.h"
14
15namespace CLHEP { class HepRandomEngine; }
16
24
25public:
27
28 virtual StatusCode initialize() override;
29 virtual StatusCode execute() override;
30
31
32private:
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(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Property< std::string > m_streamName
virtual StatusCode initialize() override
CLHEP::HepRandomEngine * m_pEng
Gaudi::Property< int > m_noOfNo
ServiceHandle< IAtRndmGenSvc > m_rndmSvc
handle to the IAtRndmGenSvc we want to test
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
virtual StatusCode execute() override