#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 mps_fire::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 55 of file GaussianTailNoiseGenerator.cc.
References DMR_cfg::cerr, ewkTauDQM_cfi::channels, generate_gaussian_tail(), getRandomChannels(), mps_fire::i, hgchebackDigitizer_cfi::noise, mps_fire::result, mps_update::status, and remoteMonitoring_LASER_era2018_cfg::threshold.
|
protected |
Definition at line 141 of file GaussianTailNoiseGenerator.cc.
References a, dqm-mbProfile::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 122 of file GaussianTailNoiseGenerator.cc.
References mps_check::array, b, channel512_, channel768_, createfilelist::int, and dqmiolumiharvest::j.
Referenced by generate().
|
private |
Definition at line 53 of file GaussianTailNoiseGenerator.h.
Referenced by GaussianTailNoiseGenerator(), and getRandomChannels().
|
private |
Definition at line 54 of file GaussianTailNoiseGenerator.h.
Referenced by GaussianTailNoiseGenerator(), and getRandomChannels().