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

interaction Class Reference

#include <neugen3_dummy.h>

List of all members.

Public Member Functions

 interaction ()
 interaction (const char *name)
 interaction (const interaction *inter)
 interaction (flavor_t f, nucleus_t n, ccnc_t c, init_state_t in)
 ~interaction ()
const char * name (void) const
void setFlavor (flavor_t f)
void setNucleus (nucleus_t n)
void setCCNC (ccnc_t c)
void setInitState (init_state_t i)
flavor_t getFlavor (void) const
nucleus_t getNucleus (void) const
ccnc_t getCCNC (void) const
init_state_t getInitState (void) const
int getProcess (void) const
int getProcess (final_state *final) const
void print (ostream &stream) const

Private Attributes

string _name
flavor_t _flavor
nucleus_t _nucleus
ccnc_t _ccnc
init_state_t _init_state

Friends

ostream & operator<< (ostream &stream, const interaction &inter)


Detailed Description

____________________________________________________________________________

??

Costas Andreopoulos (Rutherford Lab.) <C.V.Andreopoulos@rl.ac.uk> Hugh Gallagher (Tufts University) <gallag@minos.phy.tufts.edu> _______________________________________________________________________________

Definition at line 12 of file neugen3_dummy.h.


Constructor & Destructor Documentation

interaction::interaction  ) 
 

Definition at line 28 of file interaction.cxx.

00028                          :
00029 _name("default")
00030 {
00031 
00032 }
//____________________________________________________________________________

interaction::interaction const char *  name  ) 
 

Definition at line 34 of file interaction.cxx.

00034                                           :
00035 _name(name)
00036 {
00037 
00038 }
//____________________________________________________________________________

interaction::interaction const interaction inter  ) 
 

Definition at line 40 of file interaction.cxx.

References _ccnc, _flavor, _init_state, _name, and _nucleus.

00041 {
00042   _name       = inter->_name;
00043   _flavor     = inter->_flavor;
00044   _nucleus    = inter->_nucleus;
00045   _ccnc       = inter->_ccnc;
00046   _init_state = inter->_init_state;
00047 }

interaction::interaction flavor_t  f,
nucleus_t  n,
ccnc_t  c,
init_state_t  in
 

Definition at line 49 of file interaction.cxx.

00049                                                                            :
00050 _flavor(f),_nucleus(n),_ccnc(c),_init_state(in)
00051 {
00052 
00053 }
//____________________________________________________________________________

interaction::~interaction  ) 
 

Definition at line 55 of file interaction.cxx.

00056 {
00057 
00058 }


Member Function Documentation

ccnc_t interaction::getCCNC void   )  const [inline]
 

Definition at line 56 of file interaction.h.

References ccnc_t.

00056 { return _ccnc;       }

flavor_t interaction::getFlavor void   )  const [inline]
 

Definition at line 54 of file interaction.h.

References flavor_t.

00054 { return _flavor;     }

init_state_t interaction::getInitState void   )  const [inline]
 

Definition at line 57 of file interaction.h.

References init_state_t.

00057 { return _init_state; }

nucleus_t interaction::getNucleus void   )  const [inline]
 

Definition at line 55 of file interaction.h.

References nucleus_t.

Referenced by neugen_wrapper::diff_xsec(), neugen_wrapper::exclusive_diff_xsec(), neugen_wrapper::exclusive_xsec(), neugen_wrapper::offshell_diff_xsec(), and neugen_wrapper::xsec().

00055 { return _nucleus;    }

int interaction::getProcess final_state final  )  const
 

Definition at line 75 of file interaction.cxx.

References makestate_().

00076 {
00077   int proton =  final->getProton();
00078   int neutron = final->getNeutron();
00079   int piplus =  final->getPiplus();
00080   int piminus = final->getPiminus();
00081   int pizero =  final->getPizero();
00082   
00083   int icode = 0;
00084   int im    = _init_state;
00085   int it    = _flavor;
00086   int cn    = _ccnc;
00087 
00088   makestate_(&piplus, &piminus, &pizero, &proton, &neutron,
00089              &it, &im, &cn, &icode);
00090 
00091   cout << "In interaction, process (w/final)= " << icode << endl;
00092 
00093   return icode;
00094 }

int interaction::getProcess void   )  const
 

Definition at line 60 of file interaction.cxx.

References makestate_().

Referenced by neugen_wrapper::diff_xsec(), neugen_wrapper::exclusive_diff_xsec(), neugen_wrapper::exclusive_xsec(), neugen_wrapper::offshell_diff_xsec(), and neugen_wrapper::xsec().

00061 {
00062   int icode = 0;
00063   int pa    = 0;
00064   int im    = _init_state;
00065   int it    = _flavor;
00066   int cn    = _ccnc;
00067 
00068   makestate_(&pa, &pa, &pa, &pa, &pa, &it, &im, &cn, &icode);
00069 
00070   //writestate_(&icode);  
00071 
00072   return icode;
00073 }

const char* interaction::name void   )  const [inline]
 

Definition at line 47 of file interaction.h.

References _name.

00047 { return _name.c_str(); }

void interaction::print ostream &  stream  )  const
 

Definition at line 96 of file interaction.cxx.

References _ccnc, _flavor, _init_state, _name, _nucleus, init_state::as_string(), ccnc::as_string(), nucleus::as_string(), and flavor::as_string().

00097 {
00098   stream << "Interaction Name:........." << _name  << endl;
00099   stream << "Flavor:..................." << flavor::as_string(_flavor) << endl;
00100   stream << "Nucleus:.................." << nucleus::as_string(_nucleus) << endl;
00101   stream << "CCNC:....................." << ccnc::as_string(_ccnc) << endl;
00102   stream << "Init_State:..............." << init_state::as_string(_init_state) << endl;  
00103 }

void interaction::setCCNC ccnc_t  c  )  [inline]
 

Definition at line 51 of file interaction.h.

References _ccnc.

00051 { _ccnc       = c; }

void interaction::setFlavor flavor_t  f  )  [inline]
 

Definition at line 49 of file interaction.h.

References _flavor.

00049 { _flavor     = f; }

void interaction::setInitState init_state_t  i  )  [inline]
 

Definition at line 52 of file interaction.h.

References _init_state.

00052 { _init_state = i; }

void interaction::setNucleus nucleus_t  n  )  [inline]
 

Definition at line 50 of file interaction.h.

References _nucleus.

00050 { _nucleus    = n; }


Friends And Related Function Documentation

ostream& operator<< ostream &  stream,
const interaction inter
[friend]
 

Definition at line 22 of file interaction.cxx.

00023 {
00024   conf.print(stream);
00025   return stream;
00026 }


Member Data Documentation

ccnc_t interaction::_ccnc [private]
 

Definition at line 68 of file interaction.h.

Referenced by interaction(), print(), and setCCNC().

flavor_t interaction::_flavor [private]
 

Definition at line 66 of file interaction.h.

Referenced by interaction(), print(), and setFlavor().

init_state_t interaction::_init_state [private]
 

Definition at line 69 of file interaction.h.

Referenced by interaction(), print(), and setInitState().

string interaction::_name [private]
 

Definition at line 65 of file interaction.h.

Referenced by interaction(), name(), and print().

nucleus_t interaction::_nucleus [private]
 

Definition at line 67 of file interaction.h.

Referenced by interaction(), print(), and setNucleus().


The documentation for this class was generated from the following files:
Generated on Mon Feb 15 11:09:20 2010 for loon by  doxygen 1.3.9.1