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

#include <PoPI.hpp>

Public Member Functions

 Product (HAPI::Node const &a_node, Decay *a_DB)
 ~Product ()
int ID () const
std::string const & pid () const
std::string const & label () const
void toXMLList (std::vector< std::string > &a_XMLList, std::string const &a_indent1) const

Detailed Description

Definition at line 724 of file PoPI.hpp.

Constructor & Destructor Documentation

◆ Product()

PoPI::Product::Product ( HAPI::Node const & a_node,
Decay * a_DB )

◆ ~Product()

PoPI::Product::~Product ( )

Definition at line 207 of file PoPI_decayData.cc.

207 {
208
209}

Member Function Documentation

◆ ID()

int PoPI::Product::ID ( ) const
inline

Definition at line 735 of file PoPI.hpp.

735{ return( m_id ); }

◆ label()

std::string const & PoPI::Product::label ( ) const
inline

Definition at line 737 of file PoPI.hpp.

737{ return( m_label ); }

◆ pid()

std::string const & PoPI::Product::pid ( ) const
inline

Definition at line 736 of file PoPI.hpp.

736{ return( m_pid ); }

◆ toXMLList()

void PoPI::Product::toXMLList ( std::vector< std::string > & a_XMLList,
std::string const & a_indent1 ) const

Adds the contents of this to a_XMLList where each item in a_XMLList is one line (without linefeeds) to output as an XML representation of this.

Parameters
a_XMLList[in] The list to add an XML output representation of this to.
a_indent1[in] The amount of indentation to added to each line added to a_XMLList.

Definition at line 218 of file PoPI_decayData.cc.

218 {
219
220 std::string header = a_indent1 + "<product label=\"" + m_label + "\" pid=\"" + m_pid + "\"/>";
221 a_XMLList.push_back( std::move( header ) );
222}

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