CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GaussianTail.h
Go to the documentation of this file.
1 #ifndef FastSimulation_Utilities_GaussianTail_H
2 #define FastSimulation_Utilities_GaussianTail_H
3 
4 // Florian Beaudette (LLR).
5 // 11/09/06
6 // Gaussian tail generator. Copied from the GNU Scientific library
7 
9 
10 class GaussianTail {
11 public:
12  GaussianTail(double sigma = 1., double threshold = 2.);
13  ~GaussianTail();
14  inline void setParameters(double sigma, double threshold) {
15  sigma_ = sigma;
17  s_ = threshold_ / sigma_;
18  ssquare_ = s_ * s_;
19  };
20  double shoot(RandomEngineAndDistribution const*) const;
21 
22 private:
23  double sigma_;
24  double threshold_;
25  double s_;
26  double ssquare_;
27 };
28 
29 #endif
double threshold_
Definition: GaussianTail.h:24
double shoot(RandomEngineAndDistribution const *) const
Definition: GaussianTail.cc:12
GaussianTail(double sigma=1., double threshold=2.)
Definition: GaussianTail.cc:5
double sigma_
Definition: GaussianTail.h:23
void setParameters(double sigma, double threshold)
Definition: GaussianTail.h:14
double ssquare_
Definition: GaussianTail.h:26