ATLAS Offline Software
Loading...
Searching...
No Matches
GaussianSampler Class Reference

#include <Samplers.h>

Inheritance diagram for GaussianSampler:
Collaboration diagram for GaussianSampler:

Public Member Functions

 ~GaussianSampler ()
 GaussianSampler (float mean, float sigma)
float shoot ()

Public Attributes

float m_low {}
float m_high {1.0}
float m_val {}
TRandom m_random

Private Attributes

float m_mean {}
float m_sigma {}

Detailed Description

Definition at line 171 of file Samplers.h.

Constructor & Destructor Documentation

◆ ~GaussianSampler()

GaussianSampler::~GaussianSampler ( )
inline

Definition at line 173 of file Samplers.h.

173{};

◆ GaussianSampler()

GaussianSampler::GaussianSampler ( float mean,
float sigma )
inline

Definition at line 174 of file Samplers.h.

174 : UniformSampler (0, 1){
175 m_mean = mean;
176 m_sigma = sigma;
177 }
UniformSampler()=default
void mean(std::vector< double > &bins, std::vector< double > &values, const std::vector< std::string > &files, const std::string &histname, const std::string &tplotname, const std::string &label="")

Member Function Documentation

◆ shoot()

float GaussianSampler::shoot ( )
inlinevirtual

Reimplemented from Sampler.

Definition at line 179 of file Samplers.h.

179{ return m_random.Gaus(m_mean, m_sigma);};
TRandom m_random
Definition Samplers.h:27

Member Data Documentation

◆ m_high

float UniformSampler::m_high {1.0}
inherited

Definition at line 63 of file Samplers.h.

63{}, m_high{1.0};

◆ m_low

float UniformSampler::m_low {}
inherited

Definition at line 63 of file Samplers.h.

63{}, m_high{1.0};

◆ m_mean

float GaussianSampler::m_mean {}
private

Definition at line 181 of file Samplers.h.

181{},m_sigma{};

◆ m_random

TRandom Sampler::m_random
inherited

Definition at line 27 of file Samplers.h.

◆ m_sigma

float GaussianSampler::m_sigma {}
private

Definition at line 181 of file Samplers.h.

181{},m_sigma{};

◆ m_val

float Sampler::m_val {}
inherited

Definition at line 26 of file Samplers.h.

26{};

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