Classes | Enumerations | Functions
rawdata Namespace Reference

Definition of connection map class. More...

Classes

class  DAQHeader
 
class  DAQUnpack
 
class  FlatDAQData
 
class  RawBeamlineConfig
 
class  RawBeamlineDigit
 
class  RawBeamlineTrigger
 
class  RawBeamlineWC
 
class  RawDigit
 
class  RawSumDCM
 
class  RawSumDCMPoint
 
class  RawSumDropMB
 
class  RawTrigger
 

Enumerations

enum  ChanMasks {
  DETECTOR_MASK = 0XF0000000, PLANE_MASK = 0x0FFFFC00, CELL_MASK = 0X000003FF, DETECTOR_SHIFT = 28,
  PLANE_SHIFT = 10, CELL_SHIFT = 0
}
 
enum  RawSumDCMType { RawSumDCMType_INVALID = 0xFF, RawSumDCMType_DCMMissing = 0, RawSumDCMType_MuSlMissing = 1, RawSumDCMType_MuSlCorrupt = 2 }
 

Functions

std::ostream & operator<< (std::ostream &o, const RawDigit &r)
 
std::ostream & operator<< (std::ostream &o, const RawTrigger &rt)
 

Detailed Description

Definition of connection map class.

Definition of basic raw Trigger information. See definition of all trigger fields in the DAQDataFormats documentation, NOvA-DocDB-4390 in the section "Trigger Formats".

RawTrigger class.

Definition of basic raw digits TDC and ADC vectors are no longer unsigned. The DAQ may very well write out negative numbers (especially for the ADC values, which are actually outputs of an algorithm applied to the digitizations.)

RawDigit class.

FlatDAQData class contains data for each event as it is presented in a raw DAQ data file. Use DAQDataFormats::RawEvent to interpret it.

Definition of basic raw digits.

DAQHeader class.

Author
jpale.nosp@m.y@fn.nosp@m.al.go.nosp@m.v
Date
Sept. 2016
Author
jpale.nosp@m.y@in.nosp@m.diana.nosp@m..edu/
Date
Author
jpale.nosp@m.y@in.nosp@m.diana.nosp@m..edu
Date
Author
denis.nosp@m.@fna.nosp@m.l.gov
Date
Author
j
Date
Author
atsar.nosp@m.is@f.nosp@m.nal.g.nosp@m.ov
Date

Enumeration Type Documentation

Enumerator
DETECTOR_MASK 
PLANE_MASK 
CELL_MASK 
DETECTOR_SHIFT 
PLANE_SHIFT 
CELL_SHIFT 

Definition at line 24 of file RawDigit.h.

24  {
25  DETECTOR_MASK = 0XF0000000,
26  PLANE_MASK = 0x0FFFFC00,
27  CELL_MASK = 0X000003FF,
28 
29  DETECTOR_SHIFT = 28,
30  PLANE_SHIFT = 10,
31  CELL_SHIFT = 0
32  };
Enumerator
RawSumDCMType_INVALID 
RawSumDCMType_DCMMissing 
RawSumDCMType_MuSlMissing 
RawSumDCMType_MuSlCorrupt 

Definition at line 13 of file RawSumDCM.h.

Function Documentation

std::ostream& rawdata::operator<< ( std::ostream &  o,
const RawTrigger rt 
)

Definition at line 51 of file RawTrigger.cxx.

References rawdata::RawTrigger::fTriggerHeader_Source, rawdata::RawTrigger::fTriggerMask_TriggerType, rawdata::RawTrigger::fTriggerRange_TriggerLength, rawdata::RawTrigger::fTriggerTimingMarker_TimeStart, msf_helper::o, art::right(), and rawdata::RawTrigger::TDCT0().

52  {
53  o << std::setiosflags(std::ios::fixed) << std::setprecision(2);
54  o << "TDCT0 = " << std::setw(5) << std::right << rt.TDCT0()
55  << " Trigger Header Source = " << std::setw(5) << std::right << rt.fTriggerHeader_Source
56  << " Trigger Mask Type = " << std::setw(5) << std::right << rt.fTriggerMask_TriggerType
57  << " Trigger Length = " << std::setw(5) << std::right << rt.fTriggerRange_TriggerLength
58  << " Trigger Time Start = " << std::setw(5) << std::right << rt.fTriggerTimingMarker_TimeStart;
59 
60  return o;
61  }
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:112
std::ostream& rawdata::operator<< ( std::ostream &  o,
const RawDigit r 
)

Definition at line 122 of file RawDigit.cxx.

References rawdata::RawDigit::Channel(), makeTrainCVSamples::int, rawdata::RawDigit::IsMC(), rawdata::RawDigit::IsRealData(), rawdata::RawDigit::NADC(), msf_helper::o, art::right(), and rawdata::RawDigit::Version().

123  {
124  if(r.IsMC()){
125  o << std::setiosflags(std::ios::fixed) << std::setprecision(2);
126  o << " Version = " << std::setw(5) << std::right << (int)r.Version()
127  << " NADC = " << std::setw(5) << std::right << r.NADC();
128  }
129  else if (r.IsRealData()){
130  o << std::setiosflags(std::ios::fixed) << std::setprecision(2);
131  o << " Channel = " << std::setw(5) << std::right << r.Channel()
132  << " Version = " << std::setw(5) << std::right << (int)r.Version()
133  << " NADC = " << std::setw(5) << std::right << r.NADC();
134  }
135  return o;
136  }
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:112
TRandom3 r(0)