ATLAS Offline Software
Public Member Functions | Public Attributes | Private Attributes | List of all members
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 169 of file Samplers.h.

Constructor & Destructor Documentation

◆ ~GaussianSampler()

GaussianSampler::~GaussianSampler ( )
inline

Definition at line 171 of file Samplers.h.

171 {};

◆ GaussianSampler()

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

Definition at line 172 of file Samplers.h.

172  : UniformSampler (0, 1){
173  m_mean = mean;
174  m_sigma = sigma;
175  }

Member Function Documentation

◆ shoot()

float GaussianSampler::shoot ( )
inlinevirtual

Reimplemented from UniformSampler.

Definition at line 177 of file Samplers.h.

177 { return m_random.Gaus(m_mean, m_sigma);};

Member Data Documentation

◆ m_high

float UniformSampler::m_high {1.0}
inherited

Definition at line 61 of file Samplers.h.

◆ m_low

float UniformSampler::m_low {}
inherited

Definition at line 61 of file Samplers.h.

◆ m_mean

float GaussianSampler::m_mean {}
private

Definition at line 179 of file Samplers.h.

◆ m_random

TRandom Sampler::m_random
inherited

Definition at line 25 of file Samplers.h.

◆ m_sigma

float GaussianSampler::m_sigma {}
private

Definition at line 179 of file Samplers.h.

◆ m_val

float Sampler::m_val {}
inherited

Definition at line 24 of file Samplers.h.


The documentation for this class was generated from the following file:
pdg_comparison.sigma
sigma
Definition: pdg_comparison.py:324
mean
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="")
Definition: dependence.cxx:254
GaussianSampler::m_mean
float m_mean
Definition: Samplers.h:179
UniformSampler::UniformSampler
UniformSampler()=default
Sampler::m_random
TRandom m_random
Definition: Samplers.h:25
GaussianSampler::m_sigma
float m_sigma
Definition: Samplers.h:179