Public Member Functions | Protected Attributes | List of all members
flat::FlatHeader Class Reference

Flat encoding of SRHeader. More...

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

Public Member Functions

 FlatHeader (const std::string &prefix, TTree *tr, const IBranchPolicy *policy)
 
 ~FlatHeader ()
 
void Fill (const caf::SRHeader &sr)
 

Protected Attributes

unsigned int run
 
unsigned int subrun
 
int cycle
 
int batch
 
unsigned int evt
 
short unsigned int subevt
 
bool ismc
 
short unsigned int det
 
bool blind
 
bool filt
 
short unsigned int dibfirst
 
short unsigned int diblast
 
short unsigned int dibmask
 
short unsigned int maskstatus
 
short unsigned int year
 
short unsigned int month
 
short unsigned int day
 
short unsigned int doy
 
short unsigned int hour
 
short unsigned int minute
 
short unsigned int second
 
float unixtime
 
float subevtstarttime
 
float subevtendtime
 
float subevtmeantime
 
unsigned int nbadchan
 
unsigned int ntotchan
 
short unsigned int gain
 
bool finetiming
 

Detailed Description

Flat encoding of SRHeader.

Definition at line 20 of file FlatHeader.h.

Constructor & Destructor Documentation

flat::FlatHeader::FlatHeader ( const std::string prefix,
TTree *  tr,
const IBranchPolicy policy 
)

Definition at line 5206 of file FlatRecord.cxx.

References APDHVSetting::batch, compare_h5_caf::branch, make_root_from_grid_output::cycle, febshutoff_auto::day, flat::FlatSpill::det, flat::FlatSpill::dibfirst, flat::FlatSpill::diblast, flat::FlatSpill::dibmask, flat::FlatSpill::evt, filt, febshutoff_auto::hour, flat::FlatSpill::ismc, flat::FlatSpill::maskstatus, febshutoff_auto::minute, moon_position_table_new3::second, subevt, flat::FlatSpill::subrun, and Munits::year.

5207 {
5208  branch(tr, prefix+"run", &run, policy);
5209  branch(tr, prefix+"subrun", &subrun, policy);
5210  branch(tr, prefix+"cycle", &cycle, policy);
5211  branch(tr, prefix+"batch", &batch, policy);
5212  branch(tr, prefix+"evt", &evt, policy);
5213  branch(tr, prefix+"subevt", &subevt, policy);
5214  branch(tr, prefix+"ismc", &ismc, policy);
5215  branch(tr, prefix+"det", &det, policy);
5216  branch(tr, prefix+"blind", &blind, policy);
5217  branch(tr, prefix+"filt", &filt, policy);
5218  branch(tr, prefix+"dibfirst", &dibfirst, policy);
5219  branch(tr, prefix+"diblast", &diblast, policy);
5220  branch(tr, prefix+"dibmask", &dibmask, policy);
5221  branch(tr, prefix+"maskstatus", &maskstatus, policy);
5222  branch(tr, prefix+"year", &year, policy);
5223  branch(tr, prefix+"month", &month, policy);
5224  branch(tr, prefix+"day", &day, policy);
5225  branch(tr, prefix+"doy", &doy, policy);
5226  branch(tr, prefix+"hour", &hour, policy);
5227  branch(tr, prefix+"minute", &minute, policy);
5228  branch(tr, prefix+"second", &second, policy);
5229  branch(tr, prefix+"unixtime", &unixtime, policy);
5230  branch(tr, prefix+"subevtstarttime", &subevtstarttime, policy);
5231  branch(tr, prefix+"subevtendtime", &subevtendtime, policy);
5232  branch(tr, prefix+"subevtmeantime", &subevtmeantime, policy);
5233  branch(tr, prefix+"nbadchan", &nbadchan, policy);
5234  branch(tr, prefix+"ntotchan", &ntotchan, policy);
5235  branch(tr, prefix+"gain", &gain, policy);
5236  branch(tr, prefix+"finetiming", &finetiming, policy);
5237 }
unsigned int nbadchan
Definition: FlatHeader.h:54
unsigned int evt
Definition: FlatHeader.h:33
short unsigned int maskstatus
Definition: FlatHeader.h:42
short unsigned int day
Definition: FlatHeader.h:45
short unsigned int det
Definition: FlatHeader.h:36
short unsigned int year
Definition: FlatHeader.h:43
short unsigned int hour
Definition: FlatHeader.h:47
float subevtstarttime
Definition: FlatHeader.h:51
unsigned int ntotchan
Definition: FlatHeader.h:55
unsigned int subrun
Definition: FlatHeader.h:30
float subevtendtime
Definition: FlatHeader.h:52
short unsigned int dibfirst
Definition: FlatHeader.h:39
short unsigned int doy
Definition: FlatHeader.h:46
const XML_Char * prefix
Definition: expat.h:380
Definition: run.py:1
short unsigned int minute
Definition: FlatHeader.h:48
short unsigned int diblast
Definition: FlatHeader.h:40
short unsigned int subevt
Definition: FlatHeader.h:34
short unsigned int dibmask
Definition: FlatHeader.h:41
float subevtmeantime
Definition: FlatHeader.h:53
short unsigned int gain
Definition: FlatHeader.h:56
short unsigned int month
Definition: FlatHeader.h:44
short unsigned int second
Definition: FlatHeader.h:49
flat::FlatHeader::~FlatHeader ( )

Definition at line 5239 of file FlatRecord.cxx.

5240 {
5241 }

Member Function Documentation

void flat::FlatHeader::Fill ( const caf::SRHeader sr)

Definition at line 5243 of file FlatRecord.cxx.

References caf::SRHeader::batch, APDHVSetting::batch, caf::SRHeader::blind, caf::SRHeader::cycle, make_root_from_grid_output::cycle, caf::SRHeader::day, febshutoff_auto::day, caf::SRHeader::det, flat::FlatSpill::det, caf::SRHeader::dibfirst, flat::FlatSpill::dibfirst, caf::SRHeader::diblast, flat::FlatSpill::diblast, caf::SRHeader::dibmask, flat::FlatSpill::dibmask, caf::SRHeader::doy, caf::SRHeader::evt, flat::FlatSpill::evt, filt, caf::SRHeader::filt, caf::SRHeader::finetiming, caf::SRHeader::gain, caf::SRHeader::hour, febshutoff_auto::hour, caf::SRHeader::ismc, flat::FlatSpill::ismc, caf::SRHeader::maskstatus, flat::FlatSpill::maskstatus, caf::SRHeader::minute, febshutoff_auto::minute, caf::SRHeader::month, caf::SRHeader::nbadchan, caf::SRHeader::ntotchan, caf::SRHeader::run, caf::SRHeader::second, moon_position_table_new3::second, subevt, caf::SRHeader::subevt, caf::SRHeader::subevtendtime, caf::SRHeader::subevtmeantime, caf::SRHeader::subevtstarttime, caf::SRHeader::subrun, flat::FlatSpill::subrun, caf::SRHeader::unixtime, caf::SRHeader::year, and Munits::year.

Referenced by flat::FlatRecord::Fill().

5244 {
5245  run = sr.run;
5246  subrun = sr.subrun;
5247  cycle = sr.cycle;
5248  batch = sr.batch;
5249  evt = sr.evt;
5250  subevt = sr.subevt;
5251  ismc = sr.ismc;
5252  det = sr.det;
5253  blind = sr.blind;
5254  filt = sr.filt;
5255  dibfirst = sr.dibfirst;
5256  diblast = sr.diblast;
5257  dibmask = sr.dibmask;
5258  maskstatus = sr.maskstatus;
5259  year = sr.year;
5260  month = sr.month;
5261  day = sr.day;
5262  doy = sr.doy;
5263  hour = sr.hour;
5264  minute = sr.minute;
5265  second = sr.second;
5266  unixtime = sr.unixtime;
5270  nbadchan = sr.nbadchan;
5271  ntotchan = sr.ntotchan;
5272  gain = sr.gain;
5273  finetiming = sr.finetiming;
5274 }
Det_t det
Detector, ND = 1, FD = 2, NDOS = 3.
Definition: SRHeader.h:28
unsigned int nbadchan
Definition: FlatHeader.h:54
unsigned int evt
Definition: FlatHeader.h:33
short unsigned int maskstatus
Definition: FlatHeader.h:42
short unsigned int day
Definition: FlatHeader.h:45
short unsigned int det
Definition: FlatHeader.h:36
short unsigned int year
Definition: FlatHeader.h:43
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
short unsigned int hour
Definition: FlatHeader.h:47
float subevtstarttime
Definition: FlatHeader.h:51
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 int ntotchan
Definition: FlatHeader.h:55
unsigned short gain
Global gain setting of the detector.
Definition: SRHeader.h:54
unsigned int subrun
Definition: FlatHeader.h:30
float subevtendtime
Definition: FlatHeader.h:52
short unsigned int dibfirst
Definition: FlatHeader.h:39
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
short unsigned int doy
Definition: FlatHeader.h:46
float subevtmeantime
Slice mean time [ns].
Definition: SRHeader.h:49
unsigned short second
second of spill
Definition: SRHeader.h:43
Definition: run.py:1
unsigned short month
month of spill
Definition: SRHeader.h:38
short unsigned int minute
Definition: FlatHeader.h:48
unsigned short hour
hour of spill
Definition: SRHeader.h:41
short unsigned int diblast
Definition: FlatHeader.h:40
unsigned short year
year of spill
Definition: SRHeader.h:37
short unsigned int subevt
Definition: FlatHeader.h:34
int batch
MC simulation batch number.
Definition: SRHeader.h:24
unsigned short subevt
slice number within spill
Definition: SRHeader.h:26
short unsigned int dibmask
Definition: FlatHeader.h:41
float subevtmeantime
Definition: FlatHeader.h:53
unsigned short dibfirst
first diblock in detector configuration (1-14)
Definition: SRHeader.h:32
short unsigned int gain
Definition: FlatHeader.h:56
short unsigned int month
Definition: FlatHeader.h:44
short unsigned int second
Definition: FlatHeader.h:49
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

Member Data Documentation

int flat::FlatHeader::batch
protected

Definition at line 32 of file FlatHeader.h.

bool flat::FlatHeader::blind
protected

Definition at line 37 of file FlatHeader.h.

int flat::FlatHeader::cycle
protected

Definition at line 31 of file FlatHeader.h.

Referenced by MetadataUtils.metaDataMgr::getOutputFileName().

short unsigned int flat::FlatHeader::day
protected

Definition at line 45 of file FlatHeader.h.

short unsigned int flat::FlatHeader::det
protected

Definition at line 36 of file FlatHeader.h.

short unsigned int flat::FlatHeader::dibfirst
protected

Definition at line 39 of file FlatHeader.h.

short unsigned int flat::FlatHeader::diblast
protected

Definition at line 40 of file FlatHeader.h.

short unsigned int flat::FlatHeader::dibmask
protected

Definition at line 41 of file FlatHeader.h.

short unsigned int flat::FlatHeader::doy
protected

Definition at line 46 of file FlatHeader.h.

unsigned int flat::FlatHeader::evt
protected

Definition at line 33 of file FlatHeader.h.

bool flat::FlatHeader::filt
protected

Definition at line 38 of file FlatHeader.h.

bool flat::FlatHeader::finetiming
protected

Definition at line 57 of file FlatHeader.h.

short unsigned int flat::FlatHeader::gain
protected

Definition at line 56 of file FlatHeader.h.

short unsigned int flat::FlatHeader::hour
protected

Definition at line 47 of file FlatHeader.h.

bool flat::FlatHeader::ismc
protected

Definition at line 35 of file FlatHeader.h.

short unsigned int flat::FlatHeader::maskstatus
protected

Definition at line 42 of file FlatHeader.h.

short unsigned int flat::FlatHeader::minute
protected

Definition at line 48 of file FlatHeader.h.

short unsigned int flat::FlatHeader::month
protected

Definition at line 44 of file FlatHeader.h.

unsigned int flat::FlatHeader::nbadchan
protected

Definition at line 54 of file FlatHeader.h.

unsigned int flat::FlatHeader::ntotchan
protected

Definition at line 55 of file FlatHeader.h.

unsigned int flat::FlatHeader::run
protected

Definition at line 29 of file FlatHeader.h.

Referenced by Metric.Metric::__repr__(), and fabricate.Builder::memoize().

short unsigned int flat::FlatHeader::second
protected

Definition at line 49 of file FlatHeader.h.

short unsigned int flat::FlatHeader::subevt
protected

Definition at line 34 of file FlatHeader.h.

float flat::FlatHeader::subevtendtime
protected

Definition at line 52 of file FlatHeader.h.

float flat::FlatHeader::subevtmeantime
protected

Definition at line 53 of file FlatHeader.h.

float flat::FlatHeader::subevtstarttime
protected

Definition at line 51 of file FlatHeader.h.

unsigned int flat::FlatHeader::subrun
protected

Definition at line 30 of file FlatHeader.h.

float flat::FlatHeader::unixtime
protected

Definition at line 50 of file FlatHeader.h.

short unsigned int flat::FlatHeader::year
protected

Definition at line 43 of file FlatHeader.h.


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