1 //--------------------------------------------------------------------------
4 // This software is part of the EvtGen package developed jointly
5 // for the BaBar and CLEO collaborations. If you use all or part
6 // of it, please give an appropriate acknowledgement.
8 // Copyright Information: See EvtGen/COPYRIGHT
9 // Copyright (C) 1998 Caltech, UCSB
11 // Module: EvtGen/EvtGen.hh
13 // Description:Main class to provide user interface to EvtGen.
15 // Modification history:
17 // RYD March 24, 1998 Module created
19 // DJL August 10, 1998 Additional Event member function added
21 // RYD December 25, 1999 Any application using EvtGen will need
22 // to instantiate an instance of this class
23 // and hold on to it untill done generating
24 // events. This class will now hold data used
25 // for the lifetime of the generator.
26 // Lange April 18, 2002 - split "status" info into own class
28 //------------------------------------------------------------------------
39 static void setRejectFlag() {int *temp=rejectFlag(); *temp=1; return;}
40 static void initRejectFlag() {int *temp=rejectFlag(); *temp=0; return;}
41 static int* rejectFlag() {static int rejectEvent=0; return &rejectEvent;}
42 static int getRejectFlag() {int *temp=rejectFlag(); return *temp;}