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

#include <RISI.hpp>

Public Member Functions

 Target (std::string const &a_id)
 ~Target ()
void add (Protare *a_protare)
bool fissionPresent () const
std::vector< Reaction * > const & reactions () const
void products (Projectile const *a_projectile, int a_level, int a_maxLevel, double a_energyMax, std::map< std::string, int > &a_products) const
void print (std::string const &a_indent="") const
void printAsRIS_file () const

Detailed Description

Stores a list of Protare instances for a specified target.

Definition at line 81 of file RISI.hpp.

Constructor & Destructor Documentation

◆ Target()

GIDI::RISI::Target::Target ( std::string const & a_id)
inline

Definition at line 88 of file RISI.hpp.

88 :
89 m_id( a_id ) {
90 }

◆ ~Target()

GIDI::RISI::Target::~Target ( )

Definition at line 313 of file RISI_read.cc.

313 {
314
315 for( auto iter = m_protares.begin( ); iter != m_protares.end( ); ++iter ) delete *iter;
316
317}

Member Function Documentation

◆ add()

void GIDI::RISI::Target::add ( Protare * a_protare)

Adds a_protare to this list of Protare instances.

Parameters
a_protare[in] The Protare instance to add to this.

Definition at line 325 of file RISI_read.cc.

325 {
326
327 m_protares.push_back( a_protare );
328}

◆ fissionPresent()

bool GIDI::RISI::Target::fissionPresent ( ) const

Returns true if any protare in this target has fission reactions.

Returns
True if fission reactions are present, false otherwise.

Definition at line 336 of file RISI_read.cc.

336 {
337
338 for( auto protareIter = m_protares.begin( ); protareIter != m_protares.end( ); ++protareIter ) {
339 if( (*protareIter)->fissionPresent( ) ) return true;
340 }
341 return false;
342}

◆ print()

void GIDI::RISI::Target::print ( std::string const & a_indent = "") const

Calls the print method on each Projectile in this.

Parameters
a_indent[in] The Protare instance to add to this.

Definition at line 364 of file RISI_read.cc.

364 {
365
366 std::cout << a_indent + m_id << ":";
367 for( auto iter = m_protares.begin( ); iter != m_protares.end( ); ++iter ) std::cout << " " << (*iter)->evaluation( );
368 std::cout << std::endl;
369}

◆ printAsRIS_file()

void GIDI::RISI::Target::printAsRIS_file ( ) const

Calls the printAsRIS_file method on each Protare in this. This method attempts to print this as it appears in a file.

Definition at line 375 of file RISI_read.cc.

375 {
376
377 for( auto iter = m_protares.begin( ); iter != m_protares.end( ); ++iter ) (*iter)->printAsRIS_file( );
378}

◆ products()

void GIDI::RISI::Target::products ( Projectile const * a_projectile,
int a_level,
int a_maxLevel,
double a_energyMax,
std::map< std::string, int > & a_products ) const
Parameters
a_projectile[in] The Projectile instance for the requested projectile.
a_level[in] The current recursive level.
a_maxLevel[in] The maximum recursive level requested by the user.
a_energyMax[in] Only reactions with effective thresholds less than this value are processed.
a_products[in] The list to add additional products to.

Definition at line 353 of file RISI_read.cc.

353 {
354
355 m_protares[0]->products( a_projectile, a_level, a_maxLevel, a_energyMax, a_products );
356}

◆ reactions()

std::vector< Reaction * > const & GIDI::RISI::Target::reactions ( ) const
inline

Definition at line 95 of file RISI.hpp.

95{ return( m_protares[0]->reactions( ) ); }
std::vector< Reaction * > const & reactions() const
Definition RISI.hpp:95

Referenced by reactions().


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