Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/Geant4/tools/rtausmef is written in an unsupported language. File is not indexed.

0001 // Copyright (C) 2010, Guy Barrand. All rights reserved.
0002 // See the file tools.license for terms.
0003 
0004 #ifndef tools_rtausmef
0005 #define tools_rtausmef
0006 
0007 #include "rtausmeui"
0008 #include "S_STRING"
0009 
0010 #include <cmath>
0011 
0012 namespace tools {
0013 
0014 class rtausmef : public rtausmeui {
0015   typedef rtausmeui parent;
0016 public:
0017   TOOLS_SCLASS(tools::rtausmef)
0018 public:
0019   rtausmef(unsigned int a_seed = 4357):parent(a_seed){}
0020   virtual ~rtausmef(){}
0021 public:
0022   rtausmef(const rtausmef& a_from):parent(a_from){}
0023   rtausmef& operator=(const rtausmef& a_from) {parent::operator=(a_from);return *this;}
0024 protected:
0025   static float two_to_minus_32()  {
0026     static const float s_v = ::ldexpf(1,-32);
0027     return s_v;
0028   }
0029 public:
0030   float shoot() {return float(parent::shoot()) * two_to_minus_32();}
0031 };
0032 
0033 }
0034 
0035 #endif