ATLAS Offline Software
Trigger
TrigHypothesis
TrigHLTJetHypoUnitTests
TrigHLTJetHypoUnitTests
RandUint.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef TrigHLTJetHypoTests_RandUInt_h
5
#define TrigHLTJetHypoTests_RandUInt_h
6
7
#include <random>
8
class
RandUint
{
9
public
:
10
RandUint
():
m_dist
(0, 1){}
11
RandUint
(std::size_t low, std::size_t high):
m_dist
(low, high){}
12
std::size_t
operator ()
() {
return
m_dist
(
m_re
);}
13
private
:
14
std::default_random_engine
m_re
;
15
std::uniform_int_distribution<std::size_t>
m_dist
;
16
};
17
#endif
RandUint::m_dist
std::uniform_int_distribution< std::size_t > m_dist
Definition:
RandUint.h:15
RandUint::operator()
std::size_t operator()()
Definition:
RandUint.h:12
RandUint::RandUint
RandUint()
Definition:
RandUint.h:10
RandUint::RandUint
RandUint(std::size_t low, std::size_t high)
Definition:
RandUint.h:11
RandUint
Definition:
RandUint.h:8
RandUint::m_re
std::default_random_engine m_re
Definition:
RandUint.h:14
Generated on Fri Jan 10 2025 21:16:28 for ATLAS Offline Software by
1.8.18