#include <GaussianTailNoiseGenerator.h>
Public Member Functions | |
GaussianTailNoiseGenerator () | |
void | generate (int NumberOfchannels, float threshold, float noiseRMS, std::map< int, float > &theMap, CLHEP::HepRandomEngine *) |
void | generate (int NumberOfchannels, float threshold, float noiseRMS, std::vector< std::pair< int, float > > &, CLHEP::HepRandomEngine *) |
void | generateRaw (float noiseRMS, std::vector< double > &, CLHEP::HepRandomEngine *) |
Protected Member Functions | |
double | generate_gaussian_tail (const double, const double, CLHEP::HepRandomEngine *) |
int * | getRandomChannels (int, int, CLHEP::HepRandomEngine *) |
Private Attributes | |
int | channel512_ [512] |
int | channel768_ [768] |
Generation of random noise on "numberOfChannels" channels with a given threshold. The generated noise :
Initial author : Veronique Lefebure 08.10.98
according to the FORTRAN code tgreset.F from Pascal Vanlaer
Modified by C. Delaere 01.10.09
Fills in a map < channel number, generated noise >
Definition at line 24 of file GaussianTailNoiseGenerator.h.
GaussianTailNoiseGenerator::GaussianTailNoiseGenerator | ( | ) |
Definition at line 11 of file GaussianTailNoiseGenerator.cc.
References channel512_, channel768_, and i.
void GaussianTailNoiseGenerator::generate | ( | int | NumberOfchannels, |
float | threshold, | ||
float | noiseRMS, | ||
std::map< int, float > & | theMap, | ||
CLHEP::HepRandomEngine * | |||
) |
void GaussianTailNoiseGenerator::generate | ( | int | NumberOfchannels, |
float | threshold, | ||
float | noiseRMS, | ||
std::vector< std::pair< int, float > > & | theVector, | ||
CLHEP::HepRandomEngine * | engine | ||
) |
Definition at line 53 of file GaussianTailNoiseGenerator.cc.
References dtNoiseDBValidation_cfg::cerr, generate_gaussian_tail(), getRandomChannels(), i, HLT_25ns14e33_v1_cff::noise, and query::result.
|
protected |
Definition at line 132 of file GaussianTailNoiseGenerator.cc.
References create_public_lumi_plots::log, alignCSCRings::s, mathSSE::sqrt(), findQualityFiles::v, and x.
Referenced by generate().
void GaussianTailNoiseGenerator::generateRaw | ( | float | noiseRMS, |
std::vector< double > & | theVector, | ||
CLHEP::HepRandomEngine * | engine | ||
) |
|
protected |
Definition at line 116 of file GaussianTailNoiseGenerator.cc.
References b, channel512_, channel768_, and j.
Referenced by generate().
|
private |
Definition at line 62 of file GaussianTailNoiseGenerator.h.
Referenced by GaussianTailNoiseGenerator(), and getRandomChannels().
|
private |
Definition at line 63 of file GaussianTailNoiseGenerator.h.
Referenced by GaussianTailNoiseGenerator(), and getRandomChannels().