Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DStatusBits.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DStatusBits.h
4 // Created: Fri Nov 20 09:58:15 EST 2015
5 // Creator: davidl (on Darwin harriet.jlab.org 13.4.0 i386)
6 //
7 
8 // This class is used to set descriptions for the basic set of
9 // event status bits used in Hall-D. It is here rather than
10 // being embedded as part of DApplication so that it can be used
11 // with JEventSource_EVIO without having to tie in the whole
12 // DApplication class. This is so the DAQ plugin can be used
13 // with generic JANA executables that don't have DApplication
14 // linked in.
15 //
16 // The status bits are contained in a uint64_t so there are
17 // 64 bits available. The first 16 should be reserved for
18 // things defined inside this file. The remaning 48 are
19 // available for other things like flagging certain topologies.
20 
21 #ifndef _DStatusBits_
22 #define _DStatusBits_
23 
24 #include <JANA/JApplication.h>
25 
26 // Used for status flags set for each event
40 
43 
50 
52 };
53 
54 
56  public:
58  virtual ~DStatusBits(){}
59 
60  static void SetStatusBitDescriptions(jana::JApplication *japp){
61  // Set status bit descriptions
62  japp->SetStatusBitDescription( kSTATUS_HDDM, "HDDM file" );
63  japp->SetStatusBitDescription( kSTATUS_REST, "REST file" );
64  japp->SetStatusBitDescription( kSTATUS_EVIO, "EVIO" );
65  japp->SetStatusBitDescription( kSTATUS_CODA, "CODA event recorder" );
66  japp->SetStatusBitDescription( kSTATUS_CDAQ, "CDAQ event recorder" );
67  japp->SetStatusBitDescription( kSTATUS_FROM_FILE, "Event read from file" );
68  japp->SetStatusBitDescription( kSTATUS_FROM_ET, "Event read from ET system" );
69  japp->SetStatusBitDescription( kSTATUS_CONTROL_EVENT, "Control event" );
70  japp->SetStatusBitDescription( kSTATUS_PHYSICS_EVENT, "Physics event" );
71  japp->SetStatusBitDescription( kSTATUS_EPICS_EVENT, "EPICS event" );
72  japp->SetStatusBitDescription( kSTATUS_SYNC_EVENT, "SYNC event" );
73  japp->SetStatusBitDescription( kSTATUS_BOR_EVENT, "Beginning Of Run (BOR) event") ;
74 
75  japp->SetStatusBitDescription( kSTATUS_L3PASS, "L3 Pass") ;
76  japp->SetStatusBitDescription( kSTATUS_L3FAIL, "L3 Fail") ;
77 
78  }
79 };
80 
81 #endif // _DStatusBits_
82 
JApplication * japp
static void SetStatusBitDescriptions(jana::JApplication *japp)
Definition: DStatusBits.h:60
StatusBitType
Definition: DStatusBits.h:27
virtual ~DStatusBits()
Definition: DStatusBits.h:58