Public Member Functions | Private Attributes | List of all members
rawdata::RawBeamlineDigit Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-02-24/RawData/RawBeamline.h"

Public Member Functions

 RawBeamlineDigit ()
 
 RawBeamlineDigit (beamlinegeo::ChannelID channel)
 
virtual ~RawBeamlineDigit ()
 
beamlinegeo::ChannelID ChannelID () const
 
uint32_t Timestamp () const
 
unsigned int NADC () const
 
uint16_t ADC (unsigned int sample) const
 
std::vector< uint16_t > ADCs () const
 
void SetChannelID (beamlinegeo::ChannelID channel)
 
void SetTimestamp (uint32_t timestamp)
 
void SetWaveform (std::vector< uint16_t > waveform)
 

Private Attributes

beamlinegeo::ChannelID fChannelID
 
uint32_t fTimestamp
 
std::vector< uint16_t > fADCs
 

Detailed Description

Definition at line 92 of file RawBeamline.h.

Constructor & Destructor Documentation

rawdata::RawBeamlineDigit::RawBeamlineDigit ( )

Definition at line 114 of file RawBeamline.cxx.

114  {
115 }
rawdata::RawBeamlineDigit::RawBeamlineDigit ( beamlinegeo::ChannelID  channel)

Definition at line 118 of file RawBeamline.cxx.

118  {
119  fChannelID = channel;
120 }
beamlinegeo::ChannelID fChannelID
Definition: RawBeamline.h:112
virtual rawdata::RawBeamlineDigit::~RawBeamlineDigit ( )
inlinevirtual

Definition at line 98 of file RawBeamline.h.

References submit_nova_art::timestamp.

98 {};

Member Function Documentation

uint16_t rawdata::RawBeamlineDigit::ADC ( unsigned int  sample) const

Definition at line 138 of file RawBeamline.cxx.

References om::cout, and allTimeWatchdog::endl.

138  {
139  if (sample >= this->NADC()) {
140  std::cout << "Sample index " << sample << " out of range (ADCs.size() == " << this->NADC() << "). "
141  << "Aborting..." << std::endl;
142  abort();
143  }
144  return fADCs.at(sample);
145 }
unsigned int NADC() const
std::vector< uint16_t > fADCs
Definition: RawBeamline.h:114
OStream cout
Definition: OStream.cxx:6
std::vector< uint16_t > rawdata::RawBeamlineDigit::ADCs ( ) const

Definition at line 148 of file RawBeamline.cxx.

148  {
149  return fADCs;
150 }
std::vector< uint16_t > fADCs
Definition: RawBeamline.h:114
beamlinegeo::ChannelID rawdata::RawBeamlineDigit::ChannelID ( ) const

Definition at line 123 of file RawBeamline.cxx.

123  {
124  return fChannelID;
125 }
beamlinegeo::ChannelID fChannelID
Definition: RawBeamline.h:112
unsigned int rawdata::RawBeamlineDigit::NADC ( ) const

Definition at line 133 of file RawBeamline.cxx.

133  {
134  return fADCs.size();
135 }
std::vector< uint16_t > fADCs
Definition: RawBeamline.h:114
void rawdata::RawBeamlineDigit::SetChannelID ( beamlinegeo::ChannelID  channel)

Definition at line 153 of file RawBeamline.cxx.

153  {
154  fChannelID = channel;
155 }
beamlinegeo::ChannelID fChannelID
Definition: RawBeamline.h:112
void rawdata::RawBeamlineDigit::SetTimestamp ( uint32_t  timestamp)

Definition at line 158 of file RawBeamline.cxx.

References submit_nova_art::timestamp.

158  {
160 }
void rawdata::RawBeamlineDigit::SetWaveform ( std::vector< uint16_t >  waveform)

Definition at line 163 of file RawBeamline.cxx.

Referenced by daq2raw::BeamlineUnpack::UnpackDigits().

163  {
164  fADCs = waveform;
165 }
std::vector< uint16_t > fADCs
Definition: RawBeamline.h:114
uint32_t rawdata::RawBeamlineDigit::Timestamp ( ) const

Definition at line 128 of file RawBeamline.cxx.

128  {
129  return fTimestamp;
130 }

Member Data Documentation

std::vector<uint16_t> rawdata::RawBeamlineDigit::fADCs
private

Definition at line 114 of file RawBeamline.h.

beamlinegeo::ChannelID rawdata::RawBeamlineDigit::fChannelID
private

Definition at line 112 of file RawBeamline.h.

uint32_t rawdata::RawBeamlineDigit::fTimestamp
private

Definition at line 113 of file RawBeamline.h.


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