Classes | Enumerations | Functions
dqsf Namespace Reference

Calculate the spill level data quality flags and save to sumdata::EventQuality. More...

Classes

struct  DCMId
 
class  DQSpillFlags
 
struct  Edges
 

Enumerations

enum  Dir { kLeft, kUp, kRight, kDown }
 

Functions

Dir Opposite (Dir d)
 
DCMId Move (DCMId dcm, Dir d)
 

Detailed Description

Calculate the spill level data quality flags and save to sumdata::EventQuality.

Authors
xbbu@.nosp@m.fnal.nosp@m..gov
Date
11/10/2014

Enumeration Type Documentation

enum dqsf::Dir
Enumerator
kLeft 
kUp 
kRight 
kDown 

Definition at line 288 of file DQSpillFlags_module.cc.

Function Documentation

DCMId dqsf::Move ( DCMId  dcm,
Dir  d 
)

Definition at line 303 of file DQSpillFlags_module.cc.

References ana::assert(), dqsf::DCMId::DCMId(), kLeft, kRight, kUp, dqsf::DCMId::view, dqsf::DCMId::x, and dqsf::DCMId::y.

Referenced by dqsf::DQSpillFlags::AccumulateSyncMetric().

304  {
305  switch(d){
306  case kLeft: return DCMId(dcm.view, dcm.x-1, dcm.y );
307  case kRight: return DCMId(dcm.view, dcm.x+1, dcm.y );
308  case kUp: return DCMId(dcm.view, dcm.x, dcm.y+1);
309  case kDown: return DCMId(dcm.view, dcm.x, dcm.y-1);
310  default: assert(0 && "Not reached");
311  }
312  }
Float_t d
Definition: plot.C:236
assert(nhit_max >=nhit_nbins)
Dir dqsf::Opposite ( Dir  d)

Definition at line 291 of file DQSpillFlags_module.cc.

References ana::assert(), kDown, kLeft, kRight, and kUp.

Referenced by dqsf::DQSpillFlags::AccumulateSyncMetric().

292  {
293  switch(d){
294  case kLeft: return kRight;
295  case kRight: return kLeft;
296  case kUp: return kDown;
297  case kDown: return kUp;
298  default: assert(0 && "Not reached");
299  }
300  }
Float_t d
Definition: plot.C:236
assert(nhit_max >=nhit_nbins)