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

ccnc.h File Reference

#include "Rtypes.h"

Go to the source code of this file.

Namespaces

namespace  ccnc

Typedefs

typedef enum ccnc_enum ccnc_t

Enumerations

enum  ccnc_enum { e_cc = 1, e_nc, e_both_ccnc, e_undefined_ccnc }

Functions

const char * as_string (ccnc_t ccnc)
ccnc_t get_from_code (int code)


Typedef Documentation

typedef enum ccnc_enum ccnc_t
 

Referenced by ccnc::get_from_code(), neugen_inputs::get_interaction(), and interaction::getCCNC().


Enumeration Type Documentation

enum ccnc_enum
 

Enumeration values:
e_cc 
e_nc 
e_both_ccnc 
e_undefined_ccnc 

Definition at line 22 of file ccnc.h.

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

00022                        {
00023 
00024   e_cc = 1,
00025   e_nc,
00026   e_both_ccnc,
00027   e_undefined_ccnc
00028 
00029 } ccnc_t;


Function Documentation

const char* as_string ccnc_t  ccnc  )  [inline]
 

Definition at line 33 of file ccnc.h.

References e_both_ccnc, e_cc, e_nc, and e_undefined_ccnc.

Referenced by interaction::print().

00034      {
00035        switch(ccnc) {
00036          case e_cc:          return "CC";     break;
00037          case e_nc:          return "NC";     break;
00038          case e_both_ccnc:   return "CC+NC";  break;
00039 
00040          case e_undefined_ccnc:
00041          default:            
00042                       return "unknown CCNC"; break;
00043        }
00044        return "bad ccnc";
00045      }

ccnc_t get_from_code int  code  )  [inline]
 

Definition at line 47 of file ccnc.h.

References ccnc_t.

Referenced by neugen_inputs::get_interaction().

00048      {
00049         if      (code == 1) return e_cc;
00050         else if (code == 2) return e_nc;
00051         else if (code == 3) return e_both_ccnc;
00052         else                return e_undefined_ccnc;
00053      }


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