|
MARLEY (Model of Argon Reaction Low Energy Yields)
v1.2.0
A Monte Carlo event generator for tens-of-MeV neutrino interactions
|
An atomic target for a lepton scattering reaction. More...
#include <TargetAtom.hh>
Public Member Functions | |
| TargetAtom (int pdg) | |
| Create a TargetAtom object from an integer PDG code. More... | |
| TargetAtom (int Z, int A) | |
| Create a TargetAtom object from a proton number (Z) and mass number (A) More... | |
| int | A () const |
| Returns the mass number of the target atom. | |
| operator int () const | |
| Convert the TargetAtom object to an integer PDG code. More... | |
| bool | operator!= (const marley::TargetAtom &ta) const |
| bool | operator< (const marley::TargetAtom &ta) const |
| Define the less-than operator so that TargetAtom objects can be used as the keys of a std::map. | |
| bool | operator== (const marley::TargetAtom &ta) const |
| Two TargetAtom objects are considered equal if their nuclear PDG codes match. | |
| int | pdg () const |
| Returns the nuclear PDG code of the target atom. | |
| std::string | to_string () const |
| Converts the PDG code to a string representation (e.g., "40Ar") | |
| int | Z () const |
| Returns the proton number of the target atom. | |
Protected Member Functions | |
| void | check_pdg_validity () const |
| Helper function for the constructors. Checks the atom's PDG code for validity. More... | |
Protected Attributes | |
| int | pdg_ |
| PDG code for the nucleus of the target atom. | |
An atomic target for a lepton scattering reaction.
|
explicit |
Create a TargetAtom object from an integer PDG code.
| pdg | Particle Data Group code for the atomic species |
|
explicit |
Create a TargetAtom object from a proton number (Z) and mass number (A)
| Z | The proton number of the target atom |
| A | The mass number of the target atom |
|
protected |
Helper function for the constructors. Checks the atom's PDG code for validity.
If the pdg_ member variable does not correspond to an atom (or a free neutron) when this function is called, then a marley::Error will be thrown.
|
inlineexplicit |
Convert the TargetAtom object to an integer PDG code.