Bayeux  3.4.1
Core Foundation library for SuperNEMO
Public Member Functions | Protected Member Functions | List of all members
genbb::alpha_decay Class Reference

Description of an alpha decay. More...

#include <bayeux/genbb_help/alpha_decay.h>

Inheritance diagram for genbb::alpha_decay:
genbb::base_decay_driver datatools::i_tree_dumpable

Public Member Functions

 alpha_decay ()
 Default constructor. More...
 
virtual ~alpha_decay ()
 Destructor. More...
 
bool has_q_alpha () const
 Check if Q alpha is set. More...
 
void set_q_alpha (double)
 Set the Q alpha of the decay. More...
 
double get_q_alpha () const
 Return the Q alpha of the decay. More...
 
bool has_A () const
 Check if A is set. More...
 
void set_A (int)
 Set the A of the parent nucleus. More...
 
int get_A () const
 Return the A of the parent nucleus. More...
 
bool has_Z () const
 Check if Z parent is set. More...
 
void set_Z (int)
 Set the Z of the parent nucleus. More...
 
int get_Z () const
 Return the Z of the parent nucleus. More...
 
int get_Z_parent () const
 Return the Z of the parent nucleus. More...
 
int get_Z_daughter () const
 Return the Z of the daughter nucleus. More...
 
int get_A_parent () const
 Return the A of the parent nucleus. More...
 
int get_A_daughter () const
 Return the A of the daughter nucleus. More...
 
void set_mass_parent (double)
 Set the isotopic mass of the parent nucleus (not the atomic mass) More...
 
double get_mass_parent () const
 Return the isotopic mass of the parent nucleus (not the atomic mass) More...
 
void set_mass_daughter (double)
 Set the isotopic mass of the daughter nucleus (not the atomic mass) More...
 
double get_mass_daughter () const
 Return the isotopic mass of the daughter nucleus (not the atomic mass) More...
 
void set_energy_parent (double)
 Set the excitation energy of the parent nucleus. More...
 
double get_energy_parent () const
 Return the excitation energy of the parent nucleus. More...
 
void set_energy_daughter (double)
 Set the excitation energy of the daughter nucleus. More...
 
double get_energy_daughter () const
 Return the isotopic mass of the daughter nucleus. More...
 
bool is_alpha_generated () const
 Check the alpha generation flag. More...
 
void set_alpha_generated (bool)
 Set the alpha generation flag. More...
 
bool is_daughter_generated () const
 Check the daughter nucleus generation flag. More...
 
void set_daughter_generated (bool)
 Set the daughter nucleus generation flag. More...
 
void set_levels (const nuclear_level &lstart_, const nuclear_level &lstop_)
 Set the transition parameter from the start and stop levels. More...
 
virtual void tree_dump (std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const
 Smart print. More...
 
int fire_event_kinematics (mygsl::rng &prng_, double &ka_, double &thetaa_, double &phia_, double &kr_, double &thetar, double &phir_) const
 
virtual void initialize (const datatools::properties &config_)
 Initialization. More...
 
virtual void reset ()
 Reset. More...
 
virtual int fill (mygsl::rng &prng_, genbb::primary_event &event_)
 Shoot the kinematics of the decay and fill a primary event. More...
 
- Public Member Functions inherited from genbb::base_decay_driver
 base_decay_driver ()
 Default constructor. More...
 
virtual ~base_decay_driver ()
 Destructor. More...
 
datatools::logger::priority get_logging () const
 Return the logging priority threshold. More...
 
void set_logging (datatools::logger::priority)
 Set the logging priority threshold. More...
 
bool is_initialized () const
 Check initialization status. More...
 
void initialize_simple ()
 Initialization. More...
 
- Public Member Functions inherited from datatools::i_tree_dumpable
 i_tree_dumpable ()
 Constructor. More...
 
virtual ~i_tree_dumpable ()
 Destructor. More...
 
virtual void print_tree (std::ostream &out_=std::clog, const boost::property_tree::ptree &options_=empty_options()) const
 Main new interface method for printing. More...
 
void print_tree_json (std::ostream &out_=std::clog, const std::string &json_options_="") const
 Printing with jsonized options. More...
 
void print_tree_json (std::ostream &out_=std::clog, const char *json_options_=nullptr) const
 Printing with jsonized options. More...
 
void tree_dump_id (const int out_type_=OSTREAM_CLOG, const std::string &title_="", const std::string &indent_="", const bool inherit_=false) const
 
void tree_print_id (const int out_type_=OSTREAM_CLOG, const std::string &title_="") const
 
void smart_print_id (const int out_type_=OSTREAM_CLOG, const std::string &title_="", const std::string &indent_="") const
 

Protected Member Functions

void _set_default ()
 Set default values (initialization) More...
 
void _init ()
 Compute some internal data. More...
 
- Protected Member Functions inherited from genbb::base_decay_driver
void _set_default ()
 Set the default attributes. More...
 
void _set_initialized (bool)
 Set the initialization flag. More...
 
void _initialize (const datatools::properties &setup_)
 Initialization. More...
 

Additional Inherited Members

- Public Types inherited from datatools::i_tree_dumpable
enum  ostream_type { OSTREAM_COUT = 1, OSTREAM_CERR = 2, OSTREAM_CLOG = 3 }
 Enumeration for standard output streams. More...
 
- Static Public Member Functions inherited from datatools::i_tree_dumpable
static const boost::property_tree::ptree & empty_options ()
 
static boost::property_tree::ptree make_base_print_options (const std::string &title_, const std::string &indent_="", const bool inherit_=false)
 
static std::ostream & last_skip_tag (std::ostream &out_)
 
static std::ostream & skip_tag (std::ostream &out_)
 
static std::ostream & last_tag (std::ostream &out_)
 
static std::ostream & tag (std::ostream &out_)
 

Detailed Description

Description of an alpha decay.

Constructor & Destructor Documentation

◆ alpha_decay()

genbb::alpha_decay::alpha_decay ( )

Default constructor.

◆ ~alpha_decay()

virtual genbb::alpha_decay::~alpha_decay ( )
virtual

Destructor.

Member Function Documentation

◆ _init()

void genbb::alpha_decay::_init ( )
protected

Compute some internal data.

◆ _set_default()

void genbb::alpha_decay::_set_default ( )
protected

Set default values (initialization)

◆ fill()

virtual int genbb::alpha_decay::fill ( mygsl::rng prng_,
genbb::primary_event event_ 
)
virtual

Shoot the kinematics of the decay and fill a primary event.

Implements genbb::base_decay_driver.

◆ fire_event_kinematics()

int genbb::alpha_decay::fire_event_kinematics ( mygsl::rng prng_,
double &  ka_,
double &  thetaa_,
double &  phia_,
double &  kr_,
double &  thetar,
double &  phir_ 
) const

Shoot the kinematics of the decay:

  • prng_ The pseudo-random number generator
  • e_ the kinetic energy of the emitted gamma
  • theta_ the theta angle of the emitted gamma
  • phi_ the phi the angle of the emitted gamma

◆ get_A()

int genbb::alpha_decay::get_A ( ) const

Return the A of the parent nucleus.

◆ get_A_daughter()

int genbb::alpha_decay::get_A_daughter ( ) const

Return the A of the daughter nucleus.

◆ get_A_parent()

int genbb::alpha_decay::get_A_parent ( ) const

Return the A of the parent nucleus.

◆ get_energy_daughter()

double genbb::alpha_decay::get_energy_daughter ( ) const

Return the isotopic mass of the daughter nucleus.

◆ get_energy_parent()

double genbb::alpha_decay::get_energy_parent ( ) const

Return the excitation energy of the parent nucleus.

◆ get_mass_daughter()

double genbb::alpha_decay::get_mass_daughter ( ) const

Return the isotopic mass of the daughter nucleus (not the atomic mass)

◆ get_mass_parent()

double genbb::alpha_decay::get_mass_parent ( ) const

Return the isotopic mass of the parent nucleus (not the atomic mass)

◆ get_q_alpha()

double genbb::alpha_decay::get_q_alpha ( ) const

Return the Q alpha of the decay.

◆ get_Z()

int genbb::alpha_decay::get_Z ( ) const

Return the Z of the parent nucleus.

◆ get_Z_daughter()

int genbb::alpha_decay::get_Z_daughter ( ) const

Return the Z of the daughter nucleus.

◆ get_Z_parent()

int genbb::alpha_decay::get_Z_parent ( ) const

Return the Z of the parent nucleus.

◆ has_A()

bool genbb::alpha_decay::has_A ( ) const

Check if A is set.

◆ has_q_alpha()

bool genbb::alpha_decay::has_q_alpha ( ) const

Check if Q alpha is set.

◆ has_Z()

bool genbb::alpha_decay::has_Z ( ) const

Check if Z parent is set.

◆ initialize()

virtual void genbb::alpha_decay::initialize ( const datatools::properties config_)
virtual

Initialization.

Implements genbb::base_decay_driver.

◆ is_alpha_generated()

bool genbb::alpha_decay::is_alpha_generated ( ) const

Check the alpha generation flag.

◆ is_daughter_generated()

bool genbb::alpha_decay::is_daughter_generated ( ) const

Check the daughter nucleus generation flag.

◆ reset()

virtual void genbb::alpha_decay::reset ( )
virtual

Reset.

Implements genbb::base_decay_driver.

◆ set_A()

void genbb::alpha_decay::set_A ( int  )

Set the A of the parent nucleus.

◆ set_alpha_generated()

void genbb::alpha_decay::set_alpha_generated ( bool  )

Set the alpha generation flag.

◆ set_daughter_generated()

void genbb::alpha_decay::set_daughter_generated ( bool  )

Set the daughter nucleus generation flag.

◆ set_energy_daughter()

void genbb::alpha_decay::set_energy_daughter ( double  )

Set the excitation energy of the daughter nucleus.

◆ set_energy_parent()

void genbb::alpha_decay::set_energy_parent ( double  )

Set the excitation energy of the parent nucleus.

◆ set_levels()

void genbb::alpha_decay::set_levels ( const nuclear_level lstart_,
const nuclear_level lstop_ 
)
virtual

Set the transition parameter from the start and stop levels.

Reimplemented from genbb::base_decay_driver.

◆ set_mass_daughter()

void genbb::alpha_decay::set_mass_daughter ( double  )

Set the isotopic mass of the daughter nucleus (not the atomic mass)

◆ set_mass_parent()

void genbb::alpha_decay::set_mass_parent ( double  )

Set the isotopic mass of the parent nucleus (not the atomic mass)

◆ set_q_alpha()

void genbb::alpha_decay::set_q_alpha ( double  )

Set the Q alpha of the decay.

◆ set_Z()

void genbb::alpha_decay::set_Z ( int  )

Set the Z of the parent nucleus.

◆ tree_dump()

virtual void genbb::alpha_decay::tree_dump ( std::ostream &  out_ = std::clog,
const std::string &  title_ = "",
const std::string &  indent_ = "",
bool  inherit_ = false 
) const
virtual

Smart print.

Reimplemented from genbb::base_decay_driver.


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