Geant4
11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
PoPI_unorthodox.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 "
PoPI.hpp
"
11
12
namespace
PoPI
{
13
14
/*! \class Unorthodox
15
* This class represents **PoPs** unorthodox instance.
16
*/
17
18
/* *********************************************************************************************************/
/**
19
* Constructor that parses an **HAPI** instance to create a **PoPs** unorthodox node.
20
*
21
* @param a_node [in] The **HAPI::Node** to be parsed.
22
* @param a_DB [in] The **PoPI::Database:: instance to add the constructed **Unorthodox** to.
23
* @param a_parent [in] The parent suite that will contain *this*.
24
***********************************************************************************************************/
25
26
Unorthodox::Unorthodox
(
HAPI::Node
const
&a_node,
Database
*a_DB,
LUPI_maybeUnused
Database
*a_parent ) :
27
Particle
( a_node,
Particle_class
::
unorthodox
,
PoPI_unorthodoxChars
) {
28
29
if
(
ID
( ) ==
IDs::FissionProductENDL99120
) {
30
setHasNucleus(
true
);
31
setIntid(
intidHelper
(
isAnti
( ),
Particle_class::ENDL_fissionProduct
, 99120 ) ); }
32
if
(
ID
( ) ==
IDs::FissionProductENDL99125
) {
33
setHasNucleus(
true
);
34
setIntid(
intidHelper
(
isAnti
( ),
Particle_class::ENDL_fissionProduct
, 99125 ) );
35
}
36
37
addToDatabase
( a_DB );
38
}
39
40
/* *********************************************************************************************************/
/**
41
***********************************************************************************************************/
42
43
Unorthodox::~Unorthodox
( ) {
44
45
}
46
47
}
LUPI_maybeUnused
#define LUPI_maybeUnused
Definition
LUPI_defines.hpp:16
PoPI.hpp
PoPI_unorthodoxChars
#define PoPI_unorthodoxChars
Definition
PoPI.hpp:51
HAPI::Node
Definition
HAPI.hpp:166
PoPI::Base::Unorthodox
friend Unorthodox
Definition
PoPI.hpp:680
PoPI::Base::ID
std::string const & ID(void) const
Definition
PoPI.hpp:652
PoPI::Database
Definition
PoPI.hpp:1128
PoPI::IDBase::addToDatabase
std::size_t addToDatabase(Database *a_DB)
Definition
PoPI_base.cc:95
PoPI::Particle::Particle
Particle(HAPI::Node const &a_node, Particle_class a_class, std::string const &a_family, int a_hasNucleus=0)
Definition
PoPI_particle.cc:25
PoPI::Particle::isAnti
bool isAnti() const
Definition
PoPI.hpp:875
PoPI::Unorthodox::~Unorthodox
virtual ~Unorthodox()
Definition
PoPI_unorthodox.cc:43
PoPI
Definition
PoPI.hpp:28
PoPI::intidHelper
int intidHelper(bool a_isAnti, Particle_class a_family, int a_SSSSSSS)
Definition
PoPI_intId.cc:47
PoPI::Particle_class
Particle_class
Definition
PoPI.hpp:58
PoPI::Particle_class::unorthodox
@ unorthodox
Definition
PoPI.hpp:67
PoPI::Particle_class::ENDL_fissionProduct
@ ENDL_fissionProduct
Definition
PoPI.hpp:66
PoPI::IDs::FissionProductENDL99125
static std::string const FissionProductENDL99125
Definition
PoPI.hpp:172
PoPI::IDs::FissionProductENDL99120
static std::string const FissionProductENDL99120
Definition
PoPI.hpp:171
geant4-v11.4.0
source
processes
hadronic
models
lend
src
PoPI_unorthodox.cc
Generated by
1.16.1