/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Private Attributes
GenDecay::NucState Class Reference

#include <NucState.h>

List of all members.

Public Member Functions

 NucState (const more::phys::nucleus &n, more::phys::ens::confiv_t hl=more::phys::ens::confiv_t(0.0, 0.0), more::phys::ens::confiv_t rel=more::phys::ens::confiv_t(0.0, 0.0), int ref=0.0)
more::phys::nucleus nuc () const
more::phys::ens::confiv_t halflife () const
more::phys::ens::confiv_t erel () const
int eref () const
std::vector< NucDecay * > & decays ()
int Z ()
int A ()
double lifetime ()
 Return lifetime (not halflife) in seconds.
double lifetime_clhep ()
 Returns lifetime (not halflife) in CLHEP units (ns)
double energy ()
 Return energy level in eV.
double energy_clhep ()
 Returns energy level in CLHEP units (MeV)
int ndecays ()
NucDecaydecay (int ind)
bool ground_state ()
 Return true if this is a ground state.
std::vector< NucDecay * > & origin_decays ()
NucDecayorigin_decay (int ind)
int n_origin_decays ()

Private Attributes

more::phys::nucleus m_nuc
more::phys::ens::confiv_t m_halflife
more::phys::ens::confiv_t m_erel
int m_eref
std::vector< NucDecay * > m_decays
std::vector< NucDecay * > m_origin_decays

Detailed Description

Definition at line 26 of file NucState.h.


Constructor & Destructor Documentation

GenDecay::NucState::NucState ( const more::phys::nucleus &  n,
more::phys::ens::confiv_t  hl = more::phys::ens::confiv_t(0.0,0.0),
more::phys::ens::confiv_t  rel = more::phys::ens::confiv_t(0.0,0.0),
int  ref = 0.0 
) [inline]

Definition at line 35 of file NucState.h.

        : m_nuc(n), m_halflife(hl), m_erel(rel), m_eref(ref) {}

Member Function Documentation

more::phys::nucleus GenDecay::NucState::nuc ( ) const [inline]

Definition at line 41 of file NucState.h.

{ return m_nuc; }
more::phys::ens::confiv_t GenDecay::NucState::halflife ( ) const [inline]

Definition at line 42 of file NucState.h.

{ return m_halflife; }
more::phys::ens::confiv_t GenDecay::NucState::erel ( ) const [inline]

Definition at line 43 of file NucState.h.

{ return m_erel; }
int GenDecay::NucState::eref ( ) const [inline]

Definition at line 44 of file NucState.h.

{ return m_eref; }
std::vector<NucDecay*>& GenDecay::NucState::decays ( ) [inline]

Definition at line 45 of file NucState.h.

{ return m_decays; }
int NucState::Z ( )

Definition at line 27 of file NucState.cc.

{
    return m_nuc.n_prot();
}
int NucState::A ( )

Definition at line 31 of file NucState.cc.

{
    return m_nuc.n_prot() + m_nuc.n_neut();
}
double NucState::lifetime ( )

Return lifetime (not halflife) in seconds.

Definition at line 35 of file NucState.cc.

{
    const double ln2 = log(2.0);
    double hl = m_halflife.cent();
    if (isnan(hl)) return 0;
    return hl / ln2;
}
double NucState::lifetime_clhep ( )

Returns lifetime (not halflife) in CLHEP units (ns)

Definition at line 42 of file NucState.cc.

{
    return this->lifetime()/SI::s*CLHEP::second;
}
double NucState::energy ( )

Return energy level in eV.

Definition at line 46 of file NucState.cc.

{
    // fixme: ignores eref!
    return m_erel.cent();
}
double NucState::energy_clhep ( )

Returns energy level in CLHEP units (MeV)

Definition at line 51 of file NucState.cc.

{
    return this->energy()/SI::MeV*CLHEP::MeV;
}
int NucState::ndecays ( )

Definition at line 55 of file NucState.cc.

{
    return m_decays.size();
}
GenDecay::NucDecay * NucState::decay ( int  ind)

Definition at line 60 of file NucState.cc.

{
    if (ind<0 || ind>= (int)m_decays.size()) return 0;
    return m_decays[ind];
}
bool NucState::ground_state ( )

Return true if this is a ground state.

Definition at line 66 of file NucState.cc.

{
    return 0.0 == energy();
}
std::vector<NucDecay*>& GenDecay::NucState::origin_decays ( ) [inline]

Definition at line 67 of file NucState.h.

{ return m_origin_decays;}
GenDecay::NucDecay * NucState::origin_decay ( int  ind)

Definition at line 76 of file NucState.cc.

{
    if (ind<0 || ind>= (int)m_decays.size()) return 0;
    return m_origin_decays[ind];
}
int NucState::n_origin_decays ( )

Definition at line 71 of file NucState.cc.

{
    return m_origin_decays.size();
}

Member Data Documentation

more::phys::nucleus GenDecay::NucState::m_nuc [private]

Definition at line 27 of file NucState.h.

more::phys::ens::confiv_t GenDecay::NucState::m_halflife [private]

Definition at line 28 of file NucState.h.

more::phys::ens::confiv_t GenDecay::NucState::m_erel [private]

Definition at line 29 of file NucState.h.

Definition at line 30 of file NucState.h.

std::vector<NucDecay*> GenDecay::NucState::m_decays [private]

Definition at line 31 of file NucState.h.

Definition at line 64 of file NucState.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 10:21:06 for GenDecay by doxygen 1.7.4