Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:17:40

0001 /***********************************************************************
0002  * Copyright 1998-2020 CERN for the benefit of the EvtGen authors       *
0003  *                                                                      *
0004  * This file is part of EvtGen.                                         *
0005  *                                                                      *
0006  * EvtGen is free software: you can redistribute it and/or modify       *
0007  * it under the terms of the GNU General Public License as published by *
0008  * the Free Software Foundation, either version 3 of the License, or    *
0009  * (at your option) any later version.                                  *
0010  *                                                                      *
0011  * EvtGen is distributed in the hope that it will be useful,            *
0012  * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
0013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
0014  * GNU General Public License for more details.                         *
0015  *                                                                      *
0016  * You should have received a copy of the GNU General Public License    *
0017  * along with EvtGen.  If not, see <https://www.gnu.org/licenses/>.     *
0018  ***********************************************************************/
0019 
0020 #ifndef PHEvtGenRandomEngine_HH
0021 #define PHEvtGenRandomEngine_HH
0022 
0023 #include <EvtGenBase/EvtRandomEngine.hh>
0024 
0025 #include <gsl/gsl_rng.h>
0026 
0027 class PHEvtGenRandomEngine : public EvtRandomEngine
0028 {
0029  public:
0030   PHEvtGenRandomEngine();
0031   virtual ~PHEvtGenRandomEngine();
0032   virtual double random();
0033 
0034  protected:
0035   gsl_rng *RandomGenerator() const { return m_RandomGenerator; }
0036 
0037  private:
0038   unsigned int m_Seed = 0;
0039   gsl_rng *m_RandomGenerator = nullptr;
0040 };
0041 
0042 #endif