SRHeader.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file SRHeader.h
3 // \version $Id: SRHeader.h,v 1.5 2012-11-19 17:32:22 rocco Exp $
4 // \author $Author: rocco $
5 // \date $Date: 2012-11-19 17:32:22 $
6 ////////////////////////////////////////////////////////////////////////
7 #ifndef SRHEADER_H
8 #define SRHEADER_H
9 
10 #include "StandardRecord/SREnums.h"
11 
12 namespace caf
13 {
14  /// Header representing overview information for the current event/slice
15  class SRHeader
16  {
17  public:
18  SRHeader();
19  ~SRHeader();
20 
21  unsigned int run; ///< run number
22  unsigned int subrun; ///< subrun number
23  int cycle; ///< MC simulation cycle number
24  int batch; ///< MC simulation batch number
25  unsigned int evt; ///< ART event number, indexes trigger windows.
26  unsigned short subevt; ///< slice number within spill
27  bool ismc; ///< data or MC? True if MC
28  Det_t det; ///< Detector, ND = 1, FD = 2, NDOS = 3
29  bool blind; ///< if true, record has been corrupted for blindness
30  bool filt; ///< if true, record has ben filtered
31 
32  unsigned short dibfirst; ///< first diblock in detector configuration (1-14)
33  unsigned short diblast; ///< last diblock in detector configuration (1-14)
34  unsigned short dibmask; ///< diblock mask (bitfield, lowest bit = diblock 1)
35  unsigned short maskstatus;///< 0 no mask found in DB, 1 mask used ok, 2 masking turned off. If 0 or 2 dibmask is instead the configuration based on what RH says is alive. dibfirst/last may be wrong in this case.
36 
37  unsigned short year; ///< year of spill
38  unsigned short month; ///< month of spill
39  unsigned short day; ///< day of spill within month
40  unsigned short doy; ///< day of spill within year
41  unsigned short hour; ///< hour of spill
42  unsigned short minute; ///< minute of spill
43  unsigned short second; ///< second of spill
44 
45  float unixtime; ///< unix time of spill
46 
47  float subevtstarttime; ///< time of beginning of slice within spill [ns]
48  float subevtendtime; ///< Slice end time [ns]
49  float subevtmeantime; ///< Slice mean time [ns]
50 
51  unsigned int nbadchan; ///< Number of bad channels in a subrun. Ignores channels in diblocks that are masked off for analysis.
52  unsigned int ntotchan; ///< Total number of channels in the analysis masked region of the detector.
53 
54  unsigned short gain; ///< Global gain setting of the detector
55  bool finetiming;///< Is fine timing enabled in this run?
56 
57  void setDefault();
58  };
59 
60 } // end namespace
61 
62 #endif // SRHEADER_H
63 //////////////////////////////////////////////////////////////////////////////
Det_t det
Detector, ND = 1, FD = 2, NDOS = 3.
Definition: SRHeader.h:28
Det_t
Which NOvA detector?
Definition: SREnums.h:7
float unixtime
unix time of spill
Definition: SRHeader.h:45
unsigned short maskstatus
0 no mask found in DB, 1 mask used ok, 2 masking turned off. If 0 or 2 dibmask is instead the configu...
Definition: SRHeader.h:35
bool blind
if true, record has been corrupted for blindness
Definition: SRHeader.h:29
unsigned int subrun
subrun number
Definition: SRHeader.h:22
unsigned short day
day of spill within month
Definition: SRHeader.h:39
bool finetiming
Is fine timing enabled in this run?
Definition: SRHeader.h:55
unsigned int run
run number
Definition: SRHeader.h:21
bool ismc
data or MC? True if MC
Definition: SRHeader.h:27
float subevtstarttime
time of beginning of slice within spill [ns]
Definition: SRHeader.h:47
unsigned short minute
minute of spill
Definition: SRHeader.h:42
unsigned int evt
ART event number, indexes trigger windows.
Definition: SRHeader.h:25
unsigned short gain
Global gain setting of the detector.
Definition: SRHeader.h:54
void setDefault()
Definition: SRHeader.cxx:48
bool filt
if true, record has ben filtered
Definition: SRHeader.h:30
unsigned int nbadchan
Number of bad channels in a subrun. Ignores channels in diblocks that are masked off for analysis...
Definition: SRHeader.h:51
float subevtendtime
Slice end time [ns].
Definition: SRHeader.h:48
unsigned short doy
day of spill within year
Definition: SRHeader.h:40
float subevtmeantime
Slice mean time [ns].
Definition: SRHeader.h:49
unsigned short second
second of spill
Definition: SRHeader.h:43
unsigned short month
month of spill
Definition: SRHeader.h:38
Header representing overview information for the current event/slice.
Definition: SRHeader.h:15
unsigned short hour
hour of spill
Definition: SRHeader.h:41
unsigned short year
year of spill
Definition: SRHeader.h:37
int batch
MC simulation batch number.
Definition: SRHeader.h:24
This module creates Common Analysis Files.
Definition: FileReducer.h:10
unsigned short subevt
slice number within spill
Definition: SRHeader.h:26
unsigned short dibfirst
first diblock in detector configuration (1-14)
Definition: SRHeader.h:32
unsigned int ntotchan
Total number of channels in the analysis masked region of the detector.
Definition: SRHeader.h:52
int cycle
MC simulation cycle number.
Definition: SRHeader.h:23
unsigned short diblast
last diblock in detector configuration (1-14)
Definition: SRHeader.h:33
unsigned short dibmask
diblock mask (bitfield, lowest bit = diblock 1)
Definition: SRHeader.h:34