Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
GIDI::Fluxes Class Reference

#include <GIDI.hpp>

Inheritance diagram for GIDI::Fluxes:

Public Member Functions

 Fluxes ()
 Fluxes (std::string const &a_fileName)
void addFile (std::string const &a_fileName)
Public Member Functions inherited from GIDI::Suite
 Suite (std::string const &a_keyName=GIDI_labelChars)
 Suite (std::string const &a_moniker, std::string const &a_keyName)
 Suite (Construction::Settings const &a_construction, std::string const &a_moniker, std::string const &a_keyName, HAPI::Node const &a_node, SetupInfo &a_setupInfo, PoPI::Database const &a_pops, PoPI::Database const &a_internalPoPs, parseSuite a_parseSuite, Styles::Suite const *a_styles, bool a_allowsLazyParsing=false)
 ~Suite ()
std::string const & keyName () const
std::size_t size () const
iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const
std::size_t operator[] (std::string const &a_label) const
template<typename T>
T * get (std::size_t a_Index)
template<typename T>
T const * get (std::size_t a_Index) const
template<typename T>
T * get (std::string const &a_label)
template<typename T>
T const * get (std::string const &a_label) const
template<typename T>
T * getViaLineage (std::string const &a_label)
template<typename T>
T * getViaLineage (std::string const &a_label) const
template<typename T>
T * pop (std::size_t a_Index)
template<typename T>
T * pop (std::string const &a_label)
Styles::Suite const * styles ()
std::string const & href () const
void parse (Construction::Settings const &a_construction, HAPI::Node const &a_node, SetupInfo &a_setupInfo, PoPI::Database const &a_pops, PoPI::Database const &a_internalPoPs, parseSuite a_parseSuite, Styles::Suite const *a_styles)
void add (Form *a_form)
iterator find (std::string const &a_label, bool a_convertLazyParsingHelperForm=false)
const_iterator find (std::string const &a_label, bool a_convertLazyParsingHelperForm=false) const
bool has (std::string const &a_label) const
FormcheckLazyParsingHelperForm (std::size_t a_index)
FormcheckLazyParsingHelperForm (std::size_t a_index) const
iterator checkLazyParsingHelperFormIterator (iterator a_iter)
const_iterator checkLazyParsingHelperFormIterator (const_iterator a_iter) const
void modifiedMultiGroupElasticForTNSL (std::map< std::string, std::size_t > const &a_maximumTNSL_MultiGroupIndex)
GUPI::AncestryfindInAncestry3 (std::string const &a_item)
GUPI::Ancestry const * findInAncestry3 (std::string const &a_item) const
std::vector< iteratorfindAllOfMoniker (std::string const &a_moniker)
std::vector< const_iteratorfindAllOfMoniker (std::string const &a_moniker) const
Form const * findInstanceOfTypeInLineage (std::string const &_label, std::string const &a_moniker) const
FormfindInstanceOfTypeInLineage (Styles::Suite const &a_styles, std::string const &_label, std::string const &a_moniker)
void toXMLList (GUPI::WriteInfo &a_writeInfo, std::string const &a_indent="") const
void printFormLabels (std::string const &a_header) const
template<typename T>
T const * get (std::size_t a_index) const
template<typename T>
T const * get (std::string const &a_label) const
template<typename T>
T const * get (std::size_t a_index) const
template<typename T>
T const * get (std::string const &a_label) const
Public Member Functions inherited from GUPI::Ancestry
 Ancestry (std::string const &a_moniker, std::string const &a_attribute="")
virtual ~Ancestry ()
Ancestryoperator= (Ancestry const &a_ancestry)
std::string const & moniker () const
void setMoniker (std::string const &a_moniker)
Ancestryancestor ()
Ancestry const * ancestor () const
void setAncestor (Ancestry *a_ancestor)
std::string attribute () const
Ancestryroot ()
Ancestry const * root () const
bool isChild (Ancestry *a_instance)
bool isParent (Ancestry *a_parent)
bool isRoot () const
AncestryfindInAncestry (std::string const &a_href)
Ancestry const * findInAncestry (std::string const &a_href) const
virtual LUPI_HOST void serialize (LUPI::DataBuffer &a_buffer, LUPI::DataBuffer::Mode a_mode)
virtual std::string xlinkItemKey () const
std::string toXLink () const
void printXML () const

Additional Inherited Members

Public Types inherited from GIDI::Suite
typedef std::vector< Form * > Forms
typedef Forms::iterator iterator
typedef Forms::const_iterator const_iterator
Static Public Member Functions inherited from GUPI::Ancestry
static std::string buildXLinkItemKey (std::string const &a_name, std::string const &a_key)

Detailed Description

Class for the GNDS <fluxes> node that contains a list of flux nodes each as a 3d function.

Definition at line 5477 of file GIDI.hpp.

Constructor & Destructor Documentation

◆ Fluxes() [1/2]

GIDI::Fluxes::Fluxes ( )

Definition at line 60 of file GIDI_flux.cc.

60 :
62
63}
#define GIDI_fluxesChars
Definition GIDI.hpp:238
Suite(std::string const &a_keyName=GIDI_labelChars)
Definition GIDI_suite.cc:22

◆ Fluxes() [2/2]

GIDI::Fluxes::Fluxes ( std::string const & a_fileName)
Parameters
a_fileName[in] File containing a fluxes node to be parsed.

Definition at line 69 of file GIDI_flux.cc.

69 :
71
72 addFile( a_fileName );
73}
void addFile(std::string const &a_fileName)
Definition GIDI_flux.cc:80

Member Function Documentation

◆ addFile()

void GIDI::Fluxes::addFile ( std::string const & a_fileName)

Adds the contents of the specified file to this.

Definition at line 80 of file GIDI_flux.cc.

80 {
81
82 HAPI::File *doc = new HAPI::PugiXMLFile( a_fileName.c_str( ), "Fluxes::addFile" );
83
84 HAPI::Node fluxes = doc->first_child( );
85
86 std::string name( fluxes.name( ) );
87 Construction::Settings construction( Construction::ParseMode::all, GIDI::Construction::PhotoMode::atomicOnly );
88
89 SetupInfo setupInfo( nullptr );
90
91 std::string formatVersionString = fluxes.attribute_as_string( GIDI_formatChars );
92 if( formatVersionString == "" ) formatVersionString = GNDS_formatVersion_1_10Chars;
93 LUPI::FormatVersion formatVersion;
94 formatVersion.setFormat( formatVersionString );
95 if( !formatVersion.supported( ) ) throw Exception( "unsupport GND format version" );
96 setupInfo.m_formatVersion = formatVersion;
97
98 for( HAPI::Node child = fluxes.first_child( ); !child.empty( ); child.to_next_sibling( ) ) {
99 Functions::Function3dForm *function3d = data3dParse( construction, child, setupInfo, nullptr );
100
101 add( function3d );
102 }
103 delete doc;
104}
#define GIDI_formatChars
Definition GIDI.hpp:167
#define GNDS_formatVersion_1_10Chars
Definition LUPI.hpp:48
void add(Form *a_form)
virtual Node first_child()=0
bool setFormat(std::string const &a_formatVersion)
const char * name(G4int ptype)
Functions::Function3dForm * data3dParse(Construction::Settings const &a_construction, HAPI::Node const &a_node, SetupInfo &a_setupInfo, Suite *parent)

Referenced by Fluxes().


The documentation for this class was generated from the following files: