EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
evt_mnemonic.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file evt_mnemonic.cc
1 // ---------------------------------------------------------------------
2 #include "EventTypes.h"
3 
4 const char *get_evt_mnemonic(const int id)
5 {
6 
7  int mid = id & ( CORRUPTEVENTMASK ^ 0xffff);
8  switch (mid)
9  {
10  case (DATAEVENT):
11  case (DATA2EVENT):
12  case (DATA3EVENT):
13  return "Data Event";
14 
15  case (SPILLONEVENT):
16  return "Spill On Event";
17 
18  case (BEGRUNEVENT):
19  return "Begin Run Event";
20 
21  case (RUNINFOEVENT):
22  return "Run Info Event";
23 
24  case (ENDRUNEVENT):
25  return "End Run Event";
26 
27  case (13):
28  return "Movie Event";
29 
30  case (SCALEREVENT):
31  return "Scaler Event";
32 
33  case (REJECTEDEVENT):
34  return "Rejected Event";
35 
36  case (SPILLOFFEVENT):
37  return "Spill Off Event";
38 
39  default:
40  return "Unknown Event";
41  }
42 
43 
44 }