g4tools  5.4.0
rtausmef
Go to the documentation of this file.
1 // Copyright (C) 2010, Guy Barrand. All rights reserved.
2 // See the file tools.license for terms.
3 
4 #ifndef tools_rtausmef
5 #define tools_rtausmef
6 
7 #include "rtausmeui"
8 #include "S_STRING"
9 
10 #include <cmath>
11 
12 namespace tools {
13 
14 class rtausmef : public rtausmeui {
15  typedef rtausmeui parent;
16 public:
18 public:
19  rtausmef(unsigned int a_seed = 4357):parent(a_seed){}
20  virtual ~rtausmef(){}
21 public:
22  rtausmef(const rtausmef& a_from):parent(a_from){}
23  rtausmef& operator=(const rtausmef& a_from) {parent::operator=(a_from);return *this;}
24 protected:
25  static float two_to_minus_32() {
26  static const float s_v = ::ldexpf(1,-32);
27  return s_v;
28  }
29 public:
30  float shoot() {return float(parent::shoot()) * two_to_minus_32();}
31 };
32 
33 }
34 
35 #endif
tools::rtausmef::~rtausmef
virtual ~rtausmef()
Definition: rtausmef:20
tools::rtausmef::rtausmef
rtausmef(unsigned int a_seed=4357)
Definition: rtausmef:19
tools::rtausmeui
Definition: rtausmeui:36
tools::rtausmef::two_to_minus_32
static float two_to_minus_32()
Definition: rtausmef:25
tools::rtausmef::shoot
float shoot()
Definition: rtausmef:30
TOOLS_SCLASS
#define TOOLS_SCLASS(a_name)
Definition: S_STRING:41
tools::rtausmef::operator=
rtausmef & operator=(const rtausmef &a_from)
Definition: rtausmef:23
rtausmeui
tools
inlined C code : ///////////////////////////////////
Definition: aida_ntuple:26
tools::rtausmeui::shoot
unsigned int shoot()
Definition: rtausmeui:85
S_STRING
tools::rtausmef
Definition: rtausmef:14
tools::rtausmeui::operator=
rtausmeui & operator=(const rtausmeui &a_from)
Definition: rtausmeui:58
tools::rtausmef::rtausmef
rtausmef(const rtausmef &a_from)
Definition: rtausmef:22