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

neugen3 Namespace Reference

Interface to the NEUGEN3 package. More...


Functions

void ranecq (int s1, int s2, int iseq, const char *opt)
void set_default_parameters ()
 Setup defaults for neugen3.

void initialize_configuration (const char *name, int len, int iver, int lok)
void gen_control (const char *param, int val, int *lok)
void total_xsec (int nutype, int a, int z, float e, float *val)
void generate_nu_event (int nutype, float E, int A, int Z)


Detailed Description

Interface to the NEUGEN3 package.

Function Documentation

void neugen3::gen_control const char *  opt,
int  setting,
int *  lok
 

Throw switches about how events are to be generated See http://minos.phy.tufts.edu/gallag/neugen/ for switches

Parameters:
param - which switch to change
val - new value of switch
lok - Command executed ok?

Definition at line 52 of file ineugen3.cxx.

References gen_control_().

Referenced by main().

00052                                                          {
00053     gen_control_(param, &val, lok, strlen(param));
00054   }

void neugen3::generate_nu_event int  nutype,
float  E,
int  A,
int  Z
 

Produce a neutrino interaction

Parameters:
nutype - PDG code of incident neutrino
E - Neutrino energy in GeV
A - Target nucleus atomic weight
Z - Target nucleus atomic number

Definition at line 70 of file ineugen3.cxx.

References generate_nu_event_().

Referenced by main().

00070                                                             {
00071     generate_nu_event_(&nutype,&E,&A,&Z);
00072   }

void neugen3::initialize_configuration const char *  name,
int  len,
int  iver,
int  lok
 

Initialize neugen using a named configuration parameter set See http://minos.phy.tufts.edu/gallag/neugen/ for configurations

Parameters:
name - Name of configuration set
len - length of name string
iver - version number of configuration
lok - Command executed ok?

Definition at line 42 of file ineugen3.cxx.

References initialize_configuration_().

Referenced by main().

00042                                                                               {
00043     initialize_configuration_(name,&len,&iver,&lok,strlen(name));
00044   }

void neugen3::ranecq int  iseed1,
int  iseed2,
int  iseq,
const char *  opt
 

Interface to the random number generator used by neugen See http://wwwasdoc.web.cern.ch/wwwasdoc/shortwrupsdir/v114/top.html

Parameters:
s1 - first integer seed
s2 - second integer seed
iseq - sequence number
opt - "R","Q",or "S"

Definition at line 27 of file ineugen3.cxx.

References ranecq_().

Referenced by main().

00027                                                          {
00028     ranecq_(&s1,&s2,&iseq,opt,strlen(opt));
00029   }

void neugen3::set_default_parameters  ) 
 

Setup defaults for neugen3.

Definition at line 32 of file ineugen3.cxx.

References set_default_parameters_().

Referenced by main().

00032                                 {
00033     set_default_parameters_();
00034   }

void neugen3::total_xsec int  nutype,
int  A,
int  Z,
float  E,
float *  val
 

Return the total cross-section given the switches set by gen_control

Parameters:
nutype - Incident neutrino PDG code
a - Target nucleus atomic weight
z - Target nucleus atomic number
val - Returned cross-section value in units of 10**-38 cm^2

Definition at line 61 of file ineugen3.cxx.

References total_xsec_().

00061                                                                  {
00062     total_xsec_(&nutype, &a, &z, &e, val);
00063   }


Generated on Thu Sep 4 02:05:35 2008 for NOvA Offline by doxygen 1.3.5