Class Reference for E1039 Core & Analysis Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DecoParam.h
Go to the documentation of this file.
1 #ifndef __DECO_PARAM_H__
2 #define __DECO_PARAM_H__
6 //#include "assert.h"
7 class EventInfo;
8 
14 struct DecoParam {
18  std::string fn_in;
19  std::string dir_param;
20  bool is_online;
21  int sampling;
22  int verbose;
23  int time_wait; //< waiting time in second to pretend the online data flow.
24 
28 
32  unsigned short int runID;
33 
34  int spillID;
35  int spillID_cntr; // spillID from spill-counter event
36  int spillID_slow; // spillID from slow-control event
37  short targPos;
38  short targPos_slow; // from slow-control event
39 
40  unsigned int codaID; //< current Coda event ID
41  short spillType; //< current spill type
42  short rocID; //< current ROC ID
43  int eventIDstd; //< current event ID of standard physics events
44  long int hitID; //< current hit ID, commonly used by Hit and TriggerHit.
45 
46  bool has_1st_bos; //< Set 'true' at the 1st BOS event.
47  bool at_bos; //< Set 'true' at BOS, which triggers parsing the data in one spill.
48 
50  unsigned int turn_id_max;
51 
52  // Benchmarking Values
53  time_t timeStart, timeEnd;
54 
55  DecoParam();
56  ~DecoParam() {;}
57  int InitMapper();
58 };
59 
60 #endif // __DECO_PARAM_H__
unsigned short int runID
Definition: DecoParam.h:32
int spillID_slow
Definition: DecoParam.h:36
int spillID_cntr
Definition: DecoParam.h:35
std::string fn_in
Definition: DecoParam.h:18
ChanMapV1495 chan_map_v1495
Definition: DecoParam.h:26
int eventIDstd
Definition: DecoParam.h:43
short targPos
Definition: DecoParam.h:37
ChanMapTaiwan chan_map_taiwan
Definition: DecoParam.h:25
int sampling
Definition: DecoParam.h:21
short targPos_slow
Definition: DecoParam.h:38
time_t timeStart
Definition: DecoParam.h:53
bool is_online
Definition: DecoParam.h:20
~DecoParam()
Definition: DecoParam.h:56
DecoParam()
Definition: DecoParam.cc:7
time_t timeEnd
Definition: DecoParam.h:53
bool has_1st_bos
Definition: DecoParam.h:46
ChanMapScaler chan_map_scaler
Definition: DecoParam.h:27
int time_wait
Definition: DecoParam.h:23
short spillType
Definition: DecoParam.h:41
long int hitID
Definition: DecoParam.h:44
unsigned int turn_id_max
Max turnOnset in a spill. Used to drop NIM3 events that came after the beam stops. See elog 15010.
Definition: DecoParam.h:50
bool at_bos
Definition: DecoParam.h:47
unsigned int codaID
Definition: DecoParam.h:40
int spillID
Definition: DecoParam.h:34
int InitMapper()
Definition: DecoParam.cc:16
short rocID
Definition: DecoParam.h:42
std::string dir_param
Definition: DecoParam.h:19
int verbose
Definition: DecoParam.h:22