Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
GIDI_construction.cc
Go to the documentation of this file.
1/*
2# <<BEGIN-copyright>>
3# Copyright 2019, Lawrence Livermore National Security, LLC.
4# This file is part of the gidiplus package (https://github.com/LLNL/gidiplus).
5# gidiplus is licensed under the MIT license (see https://opensource.org/licenses/MIT).
6# SPDX-License-Identifier: MIT
7# <<END-copyright>>
8*/
9
10#include <stdlib.h>
11#include <string.h>
12#include <limits.h>
13
14#include "GIDI.hpp"
15
16namespace GIDI {
17
18namespace Construction {
19
20/*! \class Settings
21 * This class is used to pass user parameters to various constructors.
22 *
23 * The main use is to limit the type of data read in via the **a_parseMode** argument (see enum ParseMode).
24*/
25
26/* *********************************************************************************************************//**
27 * @param a_parseMode [in] Instructs the parses on which data to parse.
28 * @param a_photoMode [in] Instructs the parses if photo atomic and/or photoicnuclear protares are to be included.
29 ***********************************************************************************************************/
30
31Settings::Settings( ParseMode a_parseMode, PhotoMode a_photoMode ) :
32 m_parseMode( a_parseMode ),
33 m_photoMode( a_photoMode ),
34 m_useSystem_strtod( 0 ),
35 m_lazyParsing( true ),
36 m_decayPositronium( true ),
37 m_usePhotoAtomicIncoherentDoppler( false ),
38 m_fissionResiduals( FissionResiduals::none ),
39 m_GRIN_continuumGammas( false ) {
40
41}
42
43/* *********************************************************************************************************//**
44 * Copy constructor.
45 *
46 * @param a_settings [in] The **Settings** instance to copy.
47 ***********************************************************************************************************/
48
49Settings::Settings( Settings const &a_settings ) :
50 m_parseMode( a_settings.parseMode( ) ),
51 m_photoMode( a_settings.photoMode( ) ),
52 m_useSystem_strtod( a_settings.useSystem_strtod( ) ),
53 m_lazyParsing( a_settings.lazyParsing( ) ),
54 m_decayPositronium( a_settings.decayPositronium( ) ),
55 m_usePhotoAtomicIncoherentDoppler( a_settings.usePhotoAtomicIncoherentDoppler( ) ),
56 m_fissionResiduals( a_settings.fissionResiduals( ) ),
57 m_GRIN_continuumGammas( false ) {
58
59}
60
61}
62
63}
ParseMode parseMode() const
Definition GIDI.hpp:557
PhotoMode photoMode() const
Definition GIDI.hpp:559
bool usePhotoAtomicIncoherentDoppler() const
Definition GIDI.hpp:583
Settings(ParseMode a_parseMode, PhotoMode a_photoMode)
FissionResiduals fissionResiduals() const
Definition GIDI.hpp:571
bool decayPositronium() const
Definition GIDI.hpp:567
int useSystem_strtod() const
Definition GIDI.hpp:579
Definition GIDI.hpp:32