Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

nucleus.h File Reference

#include "Rtypes.h"

Go to the source code of this file.

Namespaces

namespace  nucleus

Typedefs

typedef enum nucleus_enum nucleus_t

Enumerations

enum  nucleus_enum {
  e_free = 0, e_C12 = 274, e_O16 = 284, e_Fe56 = 372,
  e_Al27 = 304, e_undefined_nucleus
}

Functions

const char * as_string (nucleus_t nucleus)


Typedef Documentation

typedef enum nucleus_enum nucleus_t
 

Referenced by neugen_wrapper::diff_xsec(), neugen_wrapper::exclusive_diff_xsec(), neugen_wrapper::exclusive_xsec(), neugen_inputs::get_interaction(), interaction::getNucleus(), neugen_wrapper::offshell_diff_xsec(), and neugen_wrapper::xsec().


Enumeration Type Documentation

enum nucleus_enum
 

Enumeration values:
e_free 
e_C12 
e_O16 
e_Fe56 
e_Al27 
e_undefined_nucleus 

Definition at line 22 of file nucleus.h.

Referenced by NeugenWeightCalculator::GetWeight(), and NuTransition::GetXSecNeugen().

00022                           {
00023 
00024   e_free              = 0,
00025   e_C12               = 274,
00026   e_O16               = 284,
00027   e_Fe56              = 372,
00028   e_Al27              = 304,
00029   e_undefined_nucleus
00030 
00031 } nucleus_t;


Function Documentation

const char* as_string nucleus_t  nucleus  )  [inline]
 

Definition at line 35 of file nucleus.h.

References e_Al27, e_C12, e_Fe56, e_free, e_O16, and e_undefined_nucleus.

Referenced by interaction::print().

00035                                                       {
00036        switch(nucleus) {
00037          case e_free:  return "Free nucleon";       break;
00038          case e_C12:   return "Carbon";       break;
00039          case e_O16:   return "Oxygen";       break;
00040          case e_Fe56:  return "Iron";   break;
00041          case e_Al27:  return "Aluminum";   break;
00042 
00043          case e_undefined_nucleus:
00044          default:            
00045                       return "unknown nucleus"; break;
00046        }
00047        return "bad nucleus";
00048      }


Generated on Mon Feb 15 11:08:07 2010 for loon by  doxygen 1.3.9.1