#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 MessageLogger_cfi::cerr, channel512_, channel768_, generate(), generate_gaussian_tail(), i, createfilelist::int, genParticles_cff::map, mps_fire::result, mps_update::status, and totemRPUVPatternFinder_cfi::threshold.
void GaussianTailNoiseGenerator::generate | ( | int | NumberOfchannels, |
float | threshold, | ||
float | noiseRMS, | ||
std::map< int, float > & | theMap, | ||
CLHEP::HepRandomEngine * | |||
) |
Referenced by GaussianTailNoiseGenerator().
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 MessageLogger_cfi::cerr, generate_gaussian_tail(), getRandomChannels(), i, mps_fire::result, and mps_update::status.
|
protected |
Definition at line 132 of file GaussianTailNoiseGenerator.cc.
References cmsBatch::log, alignCSCRings::s, mathSSE::sqrt(), findQualityFiles::v, and x.
Referenced by GaussianTailNoiseGenerator(), and generate().
void GaussianTailNoiseGenerator::generateRaw | ( | float | noiseRMS, |
std::vector< double > & | theVector, | ||
CLHEP::HepRandomEngine * | engine | ||
) |
|
protected |
Definition at line 116 of file GaussianTailNoiseGenerator.cc.
References mps_check::array, b, channel512_, channel768_, createfilelist::int, 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().