GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Bool_t GeantLMOF::NextEvent ( UInt_t  mult = kMaxUInt)

To load the next event.

It returns kFALSE if something goes wrong. The Status field gives you informations to know why the next event cannot be loaded (kEoE=end of events, kFail=something goes wrong during the last reading).
This member function could be used to read:

  • formatted files (with a begin of event flag -100, if the GEANT simulation has been performed with an external file). Simply call NextEvent() to fill GeantLMOF with the next event.
  • unformatted files (no begin of event flag -100). In this case call NextEvent(mul), with mult the multiplicity of the cascade you would like to build.

Definition at line 205 of file GeantLMOF.cpp.