Bayeux  3.4.1
Core Foundation library for SuperNEMO
bb.h
Go to the documentation of this file.
1 #ifndef GENBB_DECAY0_BB_H_
2 #define GENBB_DECAY0_BB_H_ 1
3 
4 // Standard library:
5 #include <string>
6 #include <fstream>
7 
8 namespace mygsl{
9  class rng;
10 }
11 
12 namespace genbb {
13 
14  class primary_event;
15 
16  namespace decay0 {
17 
19  struct enrange
20  {
21  double ebb1;
22  double ebb2;
23  double toallevents;
28  int levelE; // keV
29  int itrans02; // Flag for spin
30  std::string chdspin; // Spin string
31 
32  enrange();
33  void reset();
34  };
35 
36  struct genbbpar
37  {
38  int nevents;
39  int ievstart;
40  int irndmst;
41  int iwrfile;
42  std::string chfile;
43  int icurrent; // From common/currentev/
44  std::ofstream fout;
45 
46  genbbpar();
47  void reset();
48  };
49 
51  // [SI - spectral index]
53  {
93  };
94 
95  std::string decay0_dbd_mode_label(int);
96 
97  bool decay0_supports_esum_limits(int modebb_);
98 
99  struct denrange
100  {
101  double dens;
102  double denf;
103  int mode;
104  denrange();
105  void reset();
106  };
107 
108  struct helpbb
109  {
110  double Zd;
111  double Ad;
112  double e0;
113  double e1;
114  helpbb();
115  void reset();
116  };
117 
118  struct eta_nme
119  {
120  double chi_GTw;
121  double chi_Fw;
122  double chip_GT;
123  double chip_F;
124  double chip_T;
125  double chip_P;
126  double chip_R;
127  eta_nme();
128  void reset();
129  };
130 
131  struct bbpars : public enrange , public denrange, public helpbb, public eta_nme
132  {
133  static const unsigned int SPSIZE = 4300;
134  int modebb;
135  double Qbb;
136  double Edlevel;
137  double EK;
138  double Zdbb;
139  double Adbb;
140  int istartbb;
141  double spthe1[SPSIZE];
142  double spthe2[SPSIZE];
143  double spmax;
144  bbpars();
145  void reset();
146  };
147 
149  //
150  // Output: - time of event's start (sec) (as supposed, =0 here);
151  // - time shift from previous time to calculate
152  // when particle was emitted (sec)
153  // (as supposed, =0 here);
154  // - toallevents
155  // V.I.Tretyak, 26.11.1995; 17.02.2009.
156  void decay0_bb(mygsl::rng & prng, primary_event & event, void *params);
157 
158  } // end of namespace decay0
159 } // end of namespace genbb
160 
161 #endif // GENBB_DECAY0_BB_H_
162 //
163 // Local Variables: --
164 // mode: c++ --
165 // End: --
double chi_Fw
Definition: bb.h:121
0nuM7bb (Majoron, SI=7) 0+ -> 0+, 2n
Definition: bb.h:80
double e0
Definition: bb.h:112
Definition: bb.h:118
0nubb with rhc-eta 0+ -> 0+ simplified expression
Definition: bb.h:88
bool decay0_supports_esum_limits(int modebb_)
double spthe2[SPSIZE]
Definition: bb.h:142
double chip_T
Definition: bb.h:124
0nuM2bb (Majoron, SI=2) 0+ -> 0+, 2n
Definition: bb.h:82
Definition: bb.h:36
2nubb, 0+ -> 2+, 2n, N*
Definition: bb.h:70
int levelE
Definition: bb.h:28
double chip_R
Definition: bb.h:126
double Zdbb
Binding energy of electron on K shell of parent atom (MeV) (for modebb=10 and 11);.
Definition: bb.h:138
int itrans02
Definition: bb.h:29
int ievstart
Definition: bb.h:39
0nuM3bb (Majoron, SI=3), 0+ -> 0+, 2n
Definition: bb.h:66
double dens
Definition: bb.h:101
double chi_GTw
Definition: bb.h:120
0nubb with rhc-lambda, 0+ -> 2+, 2n
Definition: bb.h:68
double chip_F
Definition: bb.h:123
double spmax
Definition: bb.h:143
double ebb2
Left E sum limit for modes with continuous distribution of sum of e-/e+ energies (4,...
Definition: bb.h:22
std::string decay0_dbd_mode_label(int)
2nuKb+ 0+ -> 0+, 2+
Definition: bb.h:74
2nu2K 0+ -> 0+, 2+
Definition: bb.h:78
modebb_type
Mode of double beta (- or +) decay:
Definition: bb.h:52
int istartbb
Mass number of daughter nucleus.
Definition: bb.h:140
0nubb with neutrino mass, 0+ -> 0+, 2n
Definition: bb.h:56
Definition: bb.h:108
2nubb, 0+ -> 0+, 2n
Definition: bb.h:62
int iwrfile
Definition: bb.h:41
Energy range information for DBD generation.
Definition: bb.h:19
void decay0_bb(mygsl::rng &prng, primary_event &event, void *params)
Subroutine for sampling the energies and angles of electrons in various modes of double beta decay wi...
0nu2K 0+ -> 0+, 2+
Definition: bb.h:76
double e1
Definition: bb.h:113
Undefined.
Definition: bb.h:55
double Edlevel
Energy release in double beta process: difference between masses of parent and daughter atoms (MeV);.
Definition: bb.h:136
std::string chfile
Definition: bb.h:42
double Adbb
Atomic number of daughter nucleus (Z>0 for b-b- and Z<0 for b+b+ and eb+ processes);.
Definition: bb.h:139
2nubb with bosonic nu's 0+ -> 2+
Definition: bb.h:86
double denf
Definition: bb.h:102
double Qbb
Mode of double beta (- or +) decay (from 1 to 18)
Definition: bb.h:135
Top-level namespace of the Bayeux/genbb_help module library.
Definition: alpha_decay.h:51
Definition: bb.h:91
int mode
Definition: bb.h:103
Definition: bb.h:92
Top-level namespace of the Bayeux/mygsl module library.
Definition: base_decay_driver.h:47
0nubb with rhc-eta 0+ -> 0+ with specific NMEs
Definition: bb.h:90
0nubb with rhc-lambda, 0+ -> 0+, 2n
Definition: bb.h:58
A primary event from a Monte-Carlo generator.
Definition: primary_event.h:60
int irndmst
Definition: bb.h:40
int icurrent
Definition: bb.h:43
Definition: bb.h:54
static const unsigned int SPSIZE
Definition: bb.h:133
std::ofstream fout
Definition: bb.h:44
double Ad
Definition: bb.h:111
0nubb with rhc-lambda, 0+ -> 0+, 2+, N*
Definition: bb.h:60
int nevents
Definition: bb.h:38
double Zd
Definition: bb.h:110
double ebb1
Definition: bb.h:21
0nuM1bb (Majoron, SI=1), 0+ -> 0+, 2n
Definition: bb.h:64
Definition: bb.h:131
0nuKb+ 0+ -> 0+, 2+
Definition: bb.h:72
double EK
Energy of level of daughter nucleus to which transition occured (MeV);.
Definition: bb.h:137
int modebb
Definition: bb.h:134
2nubb with bosonic nu's 0+ -> 0+
Definition: bb.h:84
double chip_P
Definition: bb.h:125
double toallevents
Right E sum limit for modes with continuous distribution of sum of e-/e+ energies (4,...
Definition: bb.h:23
Pseudo random number generator.
Definition: rng.h:53
std::string chdspin
Definition: bb.h:30
double chip_GT
Definition: bb.h:122
double spthe1[SPSIZE]
Initialization flag must be =0 for first call of bb for a given mode;.
Definition: bb.h:141
Definition: bb.h:99