GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
void oneLS ( const Char_t *  nameAGS,
Int_t  nbcas = 100 
)

Function to make a monte carlo on any AGS file.

Usage:

  • root
  • root [0] .L firstdemo.C
  • root [1] oneLS("197Pb.ags") or root [1] oneLS("197Pb.ags",1000)

nameAGS is the name of the AGS file used to produce the random cascades nbcas corresponds to the number of cascades to be simulated

It produces two histograms in the current directory

  • the multiplicity distribution of the simlated cascades
  • the gamma ray spectrum of all gammas

Olivier Stezowski - 07/2004

PS: libGWPHYSICS and libGWGEM must be loaded before running this macro (see rootlogon.C)

Definition at line 174 of file firstdemo.C.