CMS 3D CMS Logo

GaussianTailNoiseGenerator.h
Go to the documentation of this file.
1 
14 #ifndef GaussianTailNoiseGenerator_h
15 #define GaussianTailNoiseGenerator_h
16 
17 #include <map>
18 #include <vector>
19 
20 namespace CLHEP {
21  class HepRandomEngine;
22 }
23 
25 public:
27 
28  // Compiler-generated destructor, copy c'tor, and assignment are all
29  // correct.
30 
31  void generate(
32  int NumberOfchannels, float threshold, float noiseRMS, std::map<int, float> &theMap, CLHEP::HepRandomEngine *);
33 
34  void generate(int NumberOfchannels,
35  float threshold,
36  float noiseRMS,
37  std::vector<std::pair<int, float>> &,
38  CLHEP::HepRandomEngine *);
39  /*
40  void generateRaw(int NumberOfchannels,
41  float noiseRMS,
42  std::vector<std::pair<int,float> >&,
43  CLHEP::HepRandomEngine*);
44  */
45  void generateRaw(float noiseRMS, std::vector<double> &, CLHEP::HepRandomEngine *);
46 
47 protected:
48  int *getRandomChannels(int, int, CLHEP::HepRandomEngine *);
49 
50  double generate_gaussian_tail(const double, const double, CLHEP::HepRandomEngine *);
51 
52 private:
53  int channel512_[512];
54  int channel768_[768];
55 };
56 
57 #endif
GaussianTailNoiseGenerator::generateRaw
void generateRaw(float noiseRMS, std::vector< double > &, CLHEP::HepRandomEngine *)
Definition: GaussianTailNoiseGenerator.cc:107
GaussianTailNoiseGenerator
Definition: GaussianTailNoiseGenerator.h:24
GaussianTailNoiseGenerator::channel512_
int channel512_[512]
Definition: GaussianTailNoiseGenerator.h:53
GaussianTailNoiseGenerator::channel768_
int channel768_[768]
Definition: GaussianTailNoiseGenerator.h:54
GaussianTailNoiseGenerator::getRandomChannels
int * getRandomChannels(int, int, CLHEP::HepRandomEngine *)
Definition: GaussianTailNoiseGenerator.cc:122
CLHEP
Definition: CocoaGlobals.h:27
GaussianTailNoiseGenerator::generate
void generate(int NumberOfchannels, float threshold, float noiseRMS, std::map< int, float > &theMap, CLHEP::HepRandomEngine *)
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
GaussianTailNoiseGenerator::GaussianTailNoiseGenerator
GaussianTailNoiseGenerator()
Definition: GaussianTailNoiseGenerator.cc:11
remoteMonitoring_LED_IterMethod_cfg.threshold
threshold
Definition: remoteMonitoring_LED_IterMethod_cfg.py:430
GaussianTailNoiseGenerator::generate_gaussian_tail
double generate_gaussian_tail(const double, const double, CLHEP::HepRandomEngine *)
Definition: GaussianTailNoiseGenerator.cc:141