qupid 0.2
Quasi-Signal Generation Model for Pixelized Detector
Loading...
Searching...
No Matches
QPRandomTRandom Class Reference

Header-only adapter: implements QPRandomBase on top of a caller-owned TRandom. More...

#include </home/runner/work/qupid/qupid/vis/include/QPRandomTRandom.hpp>

Inheritance diagram for QPRandomTRandom:
QPRandomBase

Public Member Functions

 QPRandomTRandom (TRandom *random)
 
virtual ~QPRandomTRandom ()
 Does not delete the wrapped TRandom.
 
virtual void SetSeed (unsigned long seed)
 Delegates to TRandom::SetSeed.
 
virtual double Uniform (double a, double b)
 Delegates to TRandom::Uniform(a, b).
 
virtual double Gaus (double mean, double sigma)
 Delegates to TRandom::Gaus(mean, sigma).
 
- Public Member Functions inherited from QPRandomBase
virtual ~QPRandomBase ()
 Virtual destructor for deletion through the interface.
 

Detailed Description

Header-only adapter: implements QPRandomBase on top of a caller-owned TRandom.

Delegates Uniform(a,b) / Gaus(mean,sigma) one-to-one, so the TRandom stream (and any baseline built on it) is preserved exactly. Neither libqupid nor libqupidVis includes this header; only executables that include it link ROOT.

Definition at line 13 of file QPRandomTRandom.hpp.

Constructor & Destructor Documentation

◆ QPRandomTRandom()

QPRandomTRandom::QPRandomTRandom ( TRandom *  random)
inline
Parameters
randomTRandom instance to delegate to; caller-owned, not deleted by the adapter

Definition at line 17 of file QPRandomTRandom.hpp.

◆ ~QPRandomTRandom()

virtual QPRandomTRandom::~QPRandomTRandom ( )
inlinevirtual

Does not delete the wrapped TRandom.

Definition at line 19 of file QPRandomTRandom.hpp.

Member Function Documentation

◆ SetSeed()

virtual void QPRandomTRandom::SetSeed ( unsigned long  seed)
inlinevirtual

Delegates to TRandom::SetSeed.

Parameters
seedengine seed value

Implements QPRandomBase.

Definition at line 23 of file QPRandomTRandom.hpp.

◆ Uniform()

virtual double QPRandomTRandom::Uniform ( double  a,
double  b 
)
inlinevirtual

Delegates to TRandom::Uniform(a, b).

Parameters
alower bound
bupper bound
Returns
uniform deviate with TRandom's endpoint semantics

Implements QPRandomBase.

Definition at line 28 of file QPRandomTRandom.hpp.

◆ Gaus()

virtual double QPRandomTRandom::Gaus ( double  mean,
double  sigma 
)
inlinevirtual

Delegates to TRandom::Gaus(mean, sigma).

Parameters
meanmean of the distribution
sigmastandard deviation
Returns
normal deviate

Implements QPRandomBase.

Definition at line 33 of file QPRandomTRandom.hpp.


The documentation for this class was generated from the following file: