Public Member Functions | Public Attributes | List of all members
caf::SRHeader Class Reference

Header representing overview information for the current event/slice. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-28/StandardRecord/SRHeader.h"

Public Member Functions

 SRHeader ()
 
 ~SRHeader ()
 
void setDefault ()
 

Public Attributes

unsigned int run
 run number More...
 
unsigned int subrun
 subrun number More...
 
int cycle
 MC simulation cycle number. More...
 
int batch
 MC simulation batch number. More...
 
unsigned int evt
 ART event number, indexes trigger windows. More...
 
unsigned short subevt
 slice number within spill More...
 
bool ismc
 data or MC? True if MC More...
 
Det_t det
 Detector, ND = 1, FD = 2, NDOS = 3. More...
 
bool blind
 if true, record has been corrupted for blindness More...
 
bool filt
 if true, record has ben filtered More...
 
unsigned short dibfirst
 first diblock in detector configuration (1-14) More...
 
unsigned short diblast
 last diblock in detector configuration (1-14) More...
 
unsigned short dibmask
 diblock mask (bitfield, lowest bit = diblock 1) More...
 
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. More...
 
unsigned short year
 year of spill More...
 
unsigned short month
 month of spill More...
 
unsigned short day
 day of spill within month More...
 
unsigned short doy
 day of spill within year More...
 
unsigned short hour
 hour of spill More...
 
unsigned short minute
 minute of spill More...
 
unsigned short second
 second of spill More...
 
float unixtime
 unix time of spill More...
 
float subevtstarttime
 time of beginning of slice within spill [ns] More...
 
float subevtendtime
 Slice end time [ns]. More...
 
float subevtmeantime
 Slice mean time [ns]. More...
 
unsigned int nbadchan
 Number of bad channels in a subrun. Ignores channels in diblocks that are masked off for analysis. More...
 
unsigned int ntotchan
 Total number of channels in the analysis masked region of the detector. More...
 
unsigned short gain
 Global gain setting of the detector. More...
 
bool finetiming
 Is fine timing enabled in this run? More...
 

Detailed Description

Header representing overview information for the current event/slice.

Definition at line 15 of file SRHeader.h.

Constructor & Destructor Documentation

caf::SRHeader::SRHeader ( )

Definition at line 16 of file SRHeader.cxx.

16  :
17  run(0),
18  subrun(0),
19  cycle(0),
20  batch(0),
21  evt(0),
22  subevt(0),
23  ismc(false),
24  det(std::numeric_limits<Det_t>::signaling_NaN()),
25  blind(false),
26  filt(false),
27  dibfirst(0),
28  diblast(0),
29  dibmask(0),
30  maskstatus(0),
31  year(0),
32  month(0),
33  day(0),
34  doy(0),
35  hour(0),
36  minute(0),
37  second(0),
38  subevtstarttime(std::numeric_limits<float>::signaling_NaN()),
39  subevtendtime(std::numeric_limits<float>::signaling_NaN()),
40  subevtmeantime(std::numeric_limits<float>::signaling_NaN()),
41  gain(0),
42  finetiming(false)
43  { }
Det_t det
Detector, ND = 1, FD = 2, NDOS = 3.
Definition: SRHeader.h:28
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
bool filt
if true, record has ben filtered
Definition: SRHeader.h:30
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
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
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
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
caf::SRHeader::~SRHeader ( )

Definition at line 46 of file SRHeader.cxx.

46 { }

Member Function Documentation

void caf::SRHeader::setDefault ( )

Definition at line 48 of file SRHeader.cxx.

References batch, and cycle.

49  {
50  cycle = -5;
51  batch = -5;
52  }
int batch
MC simulation batch number.
Definition: SRHeader.h:24
int cycle
MC simulation cycle number.
Definition: SRHeader.h:23

Member Data Documentation

int caf::SRHeader::batch
bool caf::SRHeader::blind
int caf::SRHeader::cycle
unsigned short caf::SRHeader::day
Det_t caf::SRHeader::det
unsigned short caf::SRHeader::dibfirst
unsigned short caf::SRHeader::diblast
unsigned short caf::SRHeader::dibmask
unsigned short caf::SRHeader::doy
unsigned int caf::SRHeader::evt
bool caf::SRHeader::filt
bool caf::SRHeader::finetiming
unsigned short caf::SRHeader::gain
unsigned short caf::SRHeader::hour
bool caf::SRHeader::ismc
unsigned short caf::SRHeader::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.

Definition at line 35 of file SRHeader.h.

Referenced by caf::Proxy< caf::SRHeader >::CheckEquals(), flat::FlatHeader::Fill(), hdf5::HDF5Header< Tidx >::Fill(), caf::Proxy< caf::SRHeader >::operator=(), and caf::CAFMaker::produce().

unsigned short caf::SRHeader::minute
unsigned short caf::SRHeader::month
unsigned int caf::SRHeader::nbadchan

Number of bad channels in a subrun. Ignores channels in diblocks that are masked off for analysis.

Definition at line 51 of file SRHeader.h.

Referenced by caf::Proxy< caf::SRHeader >::CheckEquals(), flat::FlatHeader::Fill(), hdf5::HDF5Header< Tidx >::Fill(), caf::Proxy< caf::SRHeader >::operator=(), and caf::CAFMaker::produce().

unsigned int caf::SRHeader::ntotchan

Total number of channels in the analysis masked region of the detector.

Definition at line 52 of file SRHeader.h.

Referenced by caf::Proxy< caf::SRHeader >::CheckEquals(), flat::FlatHeader::Fill(), hdf5::HDF5Header< Tidx >::Fill(), caf::Proxy< caf::SRHeader >::operator=(), and caf::CAFMaker::produce().

unsigned int caf::SRHeader::run
unsigned short caf::SRHeader::second
unsigned short caf::SRHeader::subevt
float caf::SRHeader::subevtendtime
float caf::SRHeader::subevtmeantime
float caf::SRHeader::subevtstarttime
unsigned int caf::SRHeader::subrun
float caf::SRHeader::unixtime
unsigned short caf::SRHeader::year

The documentation for this class was generated from the following files: