BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtStatus.hh
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2//
3// Environment:
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.
7//
8// Copyright Information: See EvtGen/COPYRIGHT
9// Copyright (C) 1998 Caltech, UCSB
10//
11// Module: EvtGen/EvtGen.hh
12//
13// Description:Main class to provide user interface to EvtGen.
14//
15// Modification history:
16//
17// RYD March 24, 1998 Module created
18//
19// DJL August 10, 1998 Additional Event member function added
20//
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
27
28//------------------------------------------------------------------------
29
30#ifndef EVTSTATUS_HH
31#define EVTSTATUS_HH
32
33class EvtStatus {
34
35public:
36 static void setRejectFlag() {
37 int* temp = rejectFlag();
38 *temp = 1;
39 return;
40 }
41 static void initRejectFlag() {
42 int* temp = rejectFlag();
43 *temp = 0;
44 return;
45 }
46 static int* rejectFlag() {
47 static int rejectEvent = 0;
48 return &rejectEvent;
49 }
50 static int getRejectFlag() {
51 int* temp = rejectFlag();
52 return *temp;
53 }
54};
55
56#endif
static int * rejectFlag()
Definition EvtStatus.hh:46
static void setRejectFlag()
Definition EvtStatus.hh:36
static void initRejectFlag()
Definition EvtStatus.hh:41
static int getRejectFlag()
Definition EvtStatus.hh:50