Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:01:02

0001 #ifndef DoubleCrystalBallGenerator_H
0002 #define DoubleCrystalBallGenerator_H
0003 
0004 /**
0005  * This class provides a Crystal Ball function generator
0006  * The power-law tail can be either on the right side (default) or the left side
0007  * \author Kevin Pedro
0008  * $Date: 14 March 2013 */
0009 
0010 class RandomEngineAndDistribution;
0011 
0012 class DoubleCrystalBallGenerator {
0013 public:
0014   //constructor
0015   DoubleCrystalBallGenerator() {}
0016   //destructor
0017   virtual ~DoubleCrystalBallGenerator() {}
0018 
0019   //functions
0020   double shoot(
0021       double mu, double sigma, double aL, double nL, double aR, double nR, RandomEngineAndDistribution const* random);
0022 };
0023 #endif