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
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
24
27
30 if (l < 1) throw marley::Error( "Invalid multipolarity "
31 + std::to_string(l) + " given for gamma ray strength"
32 " function calculation" );
33}
Base class for all exceptions thrown by MARLEY functions.
Definition Error.hh:26
TransitionType
Electromagnetic transitions in nuclei may be classified by their multipolarity (electric vs....
static void check_multipolarity(int l)
Check that l > 0 and throw a marley::Error if it is not.