MARLEY (Model of Argon Reaction Low Energy Yields)
v2.0.0
A Monte Carlo event generator for tens-of-MeV neutrino interactions
Loading...
Searching...
No Matches
src
GammaStrengthFunctionModel.cc
1
4
//
5
// This file is part of MARLEY (Model of Argon Reaction Low Energy Yields)
6
//
7
// MARLEY is free software: you can redistribute it and/or modify it under the
8
// terms of version 3 of the GNU General Public License as published by the
9
// Free Software Foundation.
10
//
11
// For the full text of the license please see COPYING or
12
// visit http://opensource.org/licenses/GPL-3.0
13
//
14
// Please respect the MCnet academic usage guidelines. See GUIDELINES
15
// or visit https://www.montecarlonet.org/GUIDELINES for details.
16
17
#include "marley/Error.hh"
18
#include "marley/GammaStrengthFunctionModel.hh"
19
#include "marley/Level.hh"
20
#include "marley/Logger.hh"
21
#include "marley/Parity.hh"
22
23
using
TrType =
marley::GammaStrengthFunctionModel::TransitionType
;
24
25
marley::GammaStrengthFunctionModel::GammaStrengthFunctionModel
(
int
Z,
int
A)
26
:
Z_
(Z),
A_
(A) {}
27
28
void
marley::GammaStrengthFunctionModel::check_multipolarity
(
int
l) {
30
if
(l < 1)
throw
marley::Error
(
"Invalid multipolarity "
31
+ std::to_string(l) +
" given for gamma ray strength"
32
" function calculation"
);
33
}
marley::Error
Base class for all exceptions thrown by MARLEY functions.
Definition
Error.hh:26
marley::GammaStrengthFunctionModel::TransitionType
TransitionType
Electromagnetic transitions in nuclei may be classified by their multipolarity (electric vs....
Definition
GammaStrengthFunctionModel.hh:43
marley::GammaStrengthFunctionModel::check_multipolarity
static void check_multipolarity(int l)
Check that l > 0 and throw a marley::Error if it is not.
Definition
GammaStrengthFunctionModel.cc:28
marley::GammaStrengthFunctionModel::Z_
int Z_
Atomic number.
Definition
GammaStrengthFunctionModel.hh:74
marley::GammaStrengthFunctionModel::GammaStrengthFunctionModel
GammaStrengthFunctionModel(int Z, int A)
Definition
GammaStrengthFunctionModel.cc:25
marley::GammaStrengthFunctionModel::A_
int A_
Mass number.
Definition
GammaStrengthFunctionModel.hh:75
Generated by
1.13.2