final_state Class Reference

#include <neugen3_dummy.h>

List of all members.

Public Member Functions

 final_state ()
 final_state (const char *name)
 final_state (int proton, int neutron, int piplus, int piminus, int pizero)
 final_state (int neugenID)
 ~final_state ()
void setFinalState (int proton, int neutron, int piplus, int piminus, int pizero)
void setNeugenID (int neugenID)
int getProton (void) const
int getNeutron (void) const
int getPiplus (void) const
int getPiminus (void) const
int getPizero (void) const
int getNeugenID (void) const
int getMultiplicity (void) const
void print (ostream &stream) const

Private Attributes

string _name
int _proton
int _neutron
int _piplus
int _piminus
int _pizero
int _neugenID
int _multiplicity

Friends

ostream & operator<< (ostream &stream, const final_state &final)

Detailed Description

____________________________________________________________________________

Definition at line 19 of file neugen3_dummy.h.


Constructor & Destructor Documentation

final_state::final_state (  ) 

Definition at line 26 of file final_state.cxx.

References _multiplicity, _neugenID, _neutron, _piminus, _piplus, _pizero, and _proton.

00026                          :
00027 _name("default")
00028 {
00029   _proton  = 0;
00030   _neutron = 0;
00031   _piplus  = 0;
00032   _piminus = 0;
00033   _pizero  = 0;
00034   _neugenID = 0;
00035   _multiplicity = 0;
00036 }
//____________________________________________________________________________

final_state::final_state ( const char *  name  ) 

Definition at line 38 of file final_state.cxx.

References _multiplicity, _neugenID, _neutron, _piminus, _piplus, _pizero, and _proton.

00038                                           :
00039 _name(name)
00040 {
00041   _proton  = 0;
00042   _neutron = 0;
00043   _piplus  = 0;
00044   _piminus = 0;
00045   _pizero  = 0;
00046   _neugenID = 0;
00047   _multiplicity = 0;
00048 }
//____________________________________________________________________________

final_state::final_state ( int  proton,
int  neutron,
int  piplus,
int  piminus,
int  pizero 
)

Definition at line 50 of file final_state.cxx.

References _multiplicity, _name, and _neugenID.

00051                                                                              :
00052 _proton  (proton  ),
00053 _neutron (neutron ),
00054 _piplus  (piplus  ),
00055 _piminus (piminus ),
00056 _pizero  (pizero  )
00057 {
00058  _neugenID = 0;
00059  _multiplicity = proton + neutron + piplus + piminus + pizero; 
00060  _name = "default";
00061 }
//____________________________________________________________________________

final_state::final_state ( int  neugenID  ) 

Definition at line 63 of file final_state.cxx.

References _multiplicity, _name, _neutron, _piminus, _piplus, _pizero, and _proton.

00063                                      :
00064 _neugenID  (neugenID )
00065 {
00066   _proton = 0;
00067   _neutron = 0;
00068   _piplus = 0;
00069   _piminus = 0;
00070   _pizero = 0;
00071  
00072   _multiplicity =  ((neugenID-128)/4) - 20;    
00073   _name = "default";
00074 }
//____________________________________________________________________________

final_state::~final_state (  ) 

Definition at line 76 of file final_state.cxx.

00077 {
00078 
00079 }


Member Function Documentation

int final_state::getMultiplicity ( void   )  const [inline]

Definition at line 43 of file final_state.h.

References _multiplicity.

00043 { return _multiplicity;}

int final_state::getNeugenID ( void   )  const [inline]

Definition at line 42 of file final_state.h.

References _neugenID.

00042 { return _neugenID;}

int final_state::getNeutron ( void   )  const [inline]

Definition at line 38 of file final_state.h.

References _neutron.

00038 { return _neutron; }

int final_state::getPiminus ( void   )  const [inline]

Definition at line 40 of file final_state.h.

References _piminus.

00040 { return _piminus; }

int final_state::getPiplus ( void   )  const [inline]

Definition at line 39 of file final_state.h.

References _piplus.

00039 { return _piplus;  }

int final_state::getPizero ( void   )  const [inline]

Definition at line 41 of file final_state.h.

References _pizero.

00041 { return _pizero;  }

int final_state::getProton ( void   )  const [inline]

Definition at line 37 of file final_state.h.

References _proton.

00037 { return _proton;  }

void final_state::print ( ostream &  stream  )  const

Definition at line 98 of file final_state.cxx.

References _multiplicity, _neugenID, _neutron, _piminus, _piplus, _pizero, and _proton.

00099 {
00100   stream << "Protons:..........." << _proton       << endl;
00101   stream << "Neutrons:.........." << _neutron      << endl;
00102   stream << "Piplus:............" << _piplus       << endl;
00103   stream << "Piminus:..........." << _piminus      << endl;
00104   stream << "Pizero:............" << _pizero       << endl;
00105   stream << "Neugen ID:........." << _neugenID     << endl;
00106   stream << "Multiplicity......." << _multiplicity << endl;
00107 }

void final_state::setFinalState ( int  proton,
int  neutron,
int  piplus,
int  piminus,
int  pizero 
)

Definition at line 81 of file final_state.cxx.

References _multiplicity, _neutron, _piminus, _piplus, _pizero, and _proton.

Referenced by neugen_inputs::get_final_state().

00083 {
00084   _proton  = proton;
00085   _neutron = neutron;
00086   _piplus  = piplus;
00087   _piminus = piminus;
00088   _pizero  = pizero;
00089   _multiplicity = proton + neutron + piplus + piminus + pizero; 
00090 }

void final_state::setNeugenID ( int  neugenID  ) 

Definition at line 92 of file final_state.cxx.

References _multiplicity, and _neugenID.

00093 {
00094   _neugenID = neugenID;
00095   _multiplicity =  ((neugenID-128)/4) - 20;    
00096 }


Friends And Related Function Documentation

ostream& operator<< ( ostream &  stream,
const final_state final 
) [friend]

Member Data Documentation

Definition at line 58 of file final_state.h.

Referenced by final_state(), getMultiplicity(), print(), setFinalState(), and setNeugenID().

string final_state::_name [private]

Definition at line 51 of file final_state.h.

Referenced by final_state().

int final_state::_neugenID [private]

Definition at line 57 of file final_state.h.

Referenced by final_state(), getNeugenID(), print(), and setNeugenID().

int final_state::_neutron [private]

Definition at line 53 of file final_state.h.

Referenced by final_state(), getNeutron(), print(), and setFinalState().

int final_state::_piminus [private]

Definition at line 55 of file final_state.h.

Referenced by final_state(), getPiminus(), print(), and setFinalState().

int final_state::_piplus [private]

Definition at line 54 of file final_state.h.

Referenced by final_state(), getPiplus(), print(), and setFinalState().

int final_state::_pizero [private]

Definition at line 56 of file final_state.h.

Referenced by final_state(), getPizero(), print(), and setFinalState().

int final_state::_proton [private]

Definition at line 52 of file final_state.h.

Referenced by final_state(), getProton(), print(), and setFinalState().


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1