LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
Raw data description. More...
Classes | |
class | AuxDetDigit |
class | BeamInfo |
class | DAQHeader |
class | ExternalTrigger |
class | OpDetPulse |
class | OpDetWaveform |
class | RawDigit |
Collection of charge vs time digitized from a single readout channel. More... | |
class | RDTimeStamp |
class | RecompressRawDigits |
Writes the input raw::RawDigit with a different compression. More... | |
class | Trigger |
Typedefs | |
typedef enum raw::_compress | Compress_t |
typedef enum raw::_auxdettype | AuxDetType_t |
typedef int | TDCtick_t |
Type representing a TDC tick. More... | |
typedef unsigned int | ChannelID_t |
Type representing the ID of a readout channel. More... | |
typedef long long | TriggerTimeStamp_t |
type of trigger time stamp More... | |
typedef short | ADC_Count_t |
typedef unsigned int | Channel_t |
typedef double | TimeStamp_t |
us since 1970, based on TimeService More... | |
Enumerations | |
enum | _compress { kNone, kHuffman, kZeroSuppression, kZeroHuffman, kDynamicDec } |
enum | _auxdettype { kUnknownAuxDet, kScintillator, kTimeOfFlight, kCherenkov } |
Functions | |
constexpr bool | isValidChannelID (raw::ChannelID_t channel) |
std::ostream & | operator<< (std::ostream &os, const raw::BeamInfo &o) |
bool | operator< (const OpDetWaveform &lhs, const OpDetWaveform &rhs) |
void | Compress (std::vector< short > &adc, raw::Compress_t compress) |
Compresses a raw data buffer. More... | |
void | Compress (std::vector< short > &adc, raw::Compress_t compress, int &nearestneighbor) |
void | Compress (std::vector< short > &adc, raw::Compress_t compress, unsigned int &zerothreshold) |
void | Compress (std::vector< short > &adc, raw::Compress_t compress, unsigned int &zerothreshold, int &nearestneighbor) |
void | Compress (const boost::circular_buffer< std::vector< short >> &adcvec_neighbors, std::vector< short > &adc, raw::Compress_t compress, unsigned int &zerothreshold, int &nearestneighbor) |
void | Compress (std::vector< short > &adc, raw::Compress_t compress, unsigned int &zerothreshold, int pedestal, int &nearestneighbor, bool fADCStickyCodeFeature) |
void | Compress (const boost::circular_buffer< std::vector< short >> &adcvec_neighbors, std::vector< short > &adc, raw::Compress_t compress, unsigned int &zerothreshold, int pedestal, int &nearestneighbor, bool fADCStickyCodeFeature) |
void | ZeroSuppression (std::vector< short > &adc, unsigned int &zerothreshold) |
void | ZeroSuppression (std::vector< short > &adc, unsigned int &zerothreshold, int &nearestneighbor) |
void | ZeroSuppression (std::vector< short > &adc, unsigned int &zerothreshold, int pedestal, int &nearestneighbor, bool fADCStickyCodeFeature) |
void | ZeroSuppression (const boost::circular_buffer< std::vector< short >> &adcvec_neighbors, std::vector< short > &adc, unsigned int &zerothreshold, int &nearestneighbor) |
void | ZeroSuppression (const boost::circular_buffer< std::vector< short >> &adcvec_neighbors, std::vector< short > &adc, unsigned int &zerothreshold, int pedestal, int &nearestneighbor, bool fADCStickyCodeFeature) |
void | ZeroUnsuppression (const std::vector< short > &adc, std::vector< short > &uncompressed) |
void | ZeroUnsuppression (const std::vector< short > &adc, std::vector< short > &uncompressed, int pedestal) |
void | Uncompress (const std::vector< short > &adc, std::vector< short > &uncompressed, raw::Compress_t compress) |
Uncompresses a raw data buffer. More... | |
void | Uncompress (const std::vector< short > &adc, std::vector< short > &uncompressed, int pedestal, raw::Compress_t compress) |
void | CompressHuffman (std::vector< short > &adc) |
void | UncompressHuffman (const std::vector< short > &adc, std::vector< short > &uncompressed) |
int | ADCStickyCodeCheck (const short adc_value, const int pedestal, bool fADCStickyCodeFeature) |
Variables | |
constexpr ChannelID_t | InvalidChannelID = std::numeric_limits<ChannelID_t>::max() |
ID of an invalid channel. More... | |
const unsigned int | onemask = 0x003f |
Raw data description.
Raw data description and utilities.
raw/OpDetWaveform.h
Raw signals from the photon detectors. Waveform (adcs in time bins), a channel number, and a time stamp.
typedef short raw::ADC_Count_t |
Definition at line 22 of file OpDetWaveform.h.
typedef enum raw::_auxdettype raw::AuxDetType_t |
typedef unsigned int raw::Channel_t |
Definition at line 23 of file OpDetWaveform.h.
typedef unsigned int raw::ChannelID_t |
Type representing the ID of a readout channel.
Definition at line 27 of file RawTypes.h.
typedef enum raw::_compress raw::Compress_t |
typedef int raw::TDCtick_t |
Type representing a TDC tick.
Definition at line 24 of file RawTypes.h.
typedef double raw::TimeStamp_t |
us since 1970, based on TimeService
Definition at line 24 of file OpDetWaveform.h.
typedef long long raw::TriggerTimeStamp_t |
type of trigger time stamp
Definition at line 18 of file ExternalTrigger.h.
enum raw::_auxdettype |
Enumerator | |
---|---|
kUnknownAuxDet |
no idea |
kScintillator |
Scintillator paddle. |
kTimeOfFlight |
Time of flight. |
kCherenkov |
Cherenkov counter. |
Definition at line 16 of file RawTypes.h.
enum raw::_compress |
Enumerator | |
---|---|
kNone |
no compression |
kHuffman |
Huffman Encoding. |
kZeroSuppression |
Zero Suppression algorithm. |
kZeroHuffman |
Zero Suppression followed by Huffman Encoding. |
kDynamicDec |
Dynamic decimation. |
Definition at line 8 of file RawTypes.h.
int raw::ADCStickyCodeCheck | ( | const short | adc_value, |
const int | pedestal, | ||
bool | fADCStickyCodeFeature | ||
) |
Definition at line 1159 of file raw.cxx.
References onemask.
Referenced by ZeroSuppression().
void raw::Compress | ( | std::vector< short > & | adc, |
raw::Compress_t | compress | ||
) |
Compresses a raw data buffer.
adc | buffer with uncompressed data |
compress | type of compression to be applied |
This function dispatches the compression to the function appropriate for the specified compression type. The resulting compressed data replaces the input buffer content, which is lost. Compression is expected to reduce the size of the data, so that there is in principle no need for reallocation of the input buffer, adc, to store the result.
Definition at line 20 of file raw.cxx.
References CompressHuffman(), kHuffman, kZeroHuffman, kZeroSuppression, and ZeroSuppression().
Referenced by detsim::SimWireAna::analyze(), detsim::SimWire::produce(), and raw::RecompressRawDigits::recompress().
void raw::Compress | ( | std::vector< short > & | adc, |
raw::Compress_t | compress, | ||
int & | nearestneighbor | ||
) |
Definition at line 38 of file raw.cxx.
References CompressHuffman(), kHuffman, kZeroHuffman, kZeroSuppression, and ZeroSuppression().
void raw::Compress | ( | std::vector< short > & | adc, |
raw::Compress_t | compress, | ||
unsigned int & | zerothreshold | ||
) |
Definition at line 58 of file raw.cxx.
References CompressHuffman(), kHuffman, kZeroHuffman, kZeroSuppression, and ZeroSuppression().
void raw::Compress | ( | std::vector< short > & | adc, |
raw::Compress_t | compress, | ||
unsigned int & | zerothreshold, | ||
int & | nearestneighbor | ||
) |
Definition at line 73 of file raw.cxx.
References CompressHuffman(), kHuffman, kZeroHuffman, kZeroSuppression, and ZeroSuppression().
void raw::Compress | ( | const boost::circular_buffer< std::vector< short >> & | adcvec_neighbors, |
std::vector< short > & | adc, | ||
raw::Compress_t | compress, | ||
unsigned int & | zerothreshold, | ||
int & | nearestneighbor | ||
) |
Definition at line 91 of file raw.cxx.
References CompressHuffman(), kHuffman, kZeroHuffman, kZeroSuppression, and ZeroSuppression().
void raw::Compress | ( | std::vector< short > & | adc, |
raw::Compress_t | compress, | ||
unsigned int & | zerothreshold, | ||
int | pedestal, | ||
int & | nearestneighbor, | ||
bool | fADCStickyCodeFeature | ||
) |
Definition at line 110 of file raw.cxx.
References CompressHuffman(), kHuffman, kZeroHuffman, kZeroSuppression, and ZeroSuppression().
void raw::Compress | ( | const boost::circular_buffer< std::vector< short >> & | adcvec_neighbors, |
std::vector< short > & | adc, | ||
raw::Compress_t | compress, | ||
unsigned int & | zerothreshold, | ||
int | pedestal, | ||
int & | nearestneighbor, | ||
bool | fADCStickyCodeFeature | ||
) |
Definition at line 130 of file raw.cxx.
References CompressHuffman(), kHuffman, kZeroHuffman, kZeroSuppression, and ZeroSuppression().
void raw::CompressHuffman | ( | std::vector< short > & | adc | ) |
|
inline |
Returns whether the specified channel ID is valid
Definition at line 36 of file RawTypes.h.
References InvalidChannelID.
Referenced by geo::DumpChannelMap::beginRun(), geo::ChannelMapStandardAlg::ChannelToROP(), lariov::SimpleChannelStatus::FillGoodChannels(), evd::RawDataDrawer::FillTQHisto(), geo::ChannelMapAlg::HasChannel(), and lariov::SimpleChannelStatus::IsPresent().
|
inline |
Definition at line 84 of file OpDetWaveform.h.
References raw::OpDetWaveform::ChannelNumber(), and raw::OpDetWaveform::TimeStamp().
std::ostream& raw::operator<< | ( | std::ostream & | os, |
const raw::BeamInfo & | o | ||
) |
Definition at line 120 of file BeamInfo.cxx.
References raw::BeamInfo::GetDataMap(), raw::BeamInfo::GetMilliSeconds(), raw::BeamInfo::GetNumberOfDevices(), raw::BeamInfo::GetRecordType(), and raw::BeamInfo::GetSeconds().
void raw::Uncompress | ( | const std::vector< short > & | adc, |
std::vector< short > & | uncompressed, | ||
raw::Compress_t | compress | ||
) |
Uncompresses a raw data buffer.
adc | compressed buffer |
uncompressed | buffer to be filled with uncompressed data |
compress | type of compression in the adc buffer |
This function dispatches the uncompression to the correct uncompress function according to compression type in compress.
The uncompressed buffer must be already allocated with enough space to store the full inflated adc data. Uncompressing raw::RawDigit can be done as follows:
std::vector<ADC_t> uncompressed(digit.Samples(), 0); raw::Uncompress(digit.ADC(), uncompressed, digit.ADC());
Definition at line 756 of file raw.cxx.
References kHuffman, kNone, kZeroHuffman, kZeroSuppression, tmp, UncompressHuffman(), and ZeroUnsuppression().
Referenced by detsim::SimWireAna::analyze(), filter::ADCFilter::filter(), detsim::DumpRawDigits::PrintRawDigit(), wc::CellTree::processRaw(), caldata::CalWire::produce(), caldata::CalWireT962::produce(), hit::RawHitFinder::produce(), raw::RecompressRawDigits::recompress(), and evd::details::RawDigitInfo_t::UncompressData().
void raw::Uncompress | ( | const std::vector< short > & | adc, |
std::vector< short > & | uncompressed, | ||
int | pedestal, | ||
raw::Compress_t | compress | ||
) |
Definition at line 782 of file raw.cxx.
References kHuffman, kNone, kZeroHuffman, kZeroSuppression, tmp, UncompressHuffman(), and ZeroUnsuppression().
void raw::UncompressHuffman | ( | const std::vector< short > & | adc, |
std::vector< short > & | uncompressed | ||
) |
Definition at line 1033 of file raw.cxx.
References s.
Referenced by Uncompress().
void raw::ZeroSuppression | ( | std::vector< short > & | adc, |
unsigned int & | zerothreshold | ||
) |
void raw::ZeroSuppression | ( | std::vector< short > & | adc, |
unsigned int & | zerothreshold, | ||
int & | nearestneighbor | ||
) |
void raw::ZeroSuppression | ( | std::vector< short > & | adc, |
unsigned int & | zerothreshold, | ||
int | pedestal, | ||
int & | nearestneighbor, | ||
bool | fADCStickyCodeFeature | ||
) |
Definition at line 334 of file raw.cxx.
References ADCStickyCodeCheck().
void raw::ZeroSuppression | ( | const boost::circular_buffer< std::vector< short >> & | adcvec_neighbors, |
std::vector< short > & | adc, | ||
unsigned int & | zerothreshold, | ||
int & | nearestneighbor | ||
) |
Definition at line 445 of file raw.cxx.
void raw::ZeroSuppression | ( | const boost::circular_buffer< std::vector< short >> & | adcvec_neighbors, |
std::vector< short > & | adc, | ||
unsigned int & | zerothreshold, | ||
int | pedestal, | ||
int & | nearestneighbor, | ||
bool | fADCStickyCodeFeature | ||
) |
Definition at line 570 of file raw.cxx.
References ADCStickyCodeCheck().
void raw::ZeroUnsuppression | ( | const std::vector< short > & | adc, |
std::vector< short > & | uncompressed | ||
) |
void raw::ZeroUnsuppression | ( | const std::vector< short > & | adc, |
std::vector< short > & | uncompressed, | ||
int | pedestal | ||
) |
constexpr ChannelID_t raw::InvalidChannelID = std::numeric_limits<ChannelID_t>::max() |
ID of an invalid channel.
Definition at line 31 of file RawTypes.h.
Referenced by evd::details::RawDigitInfo_t::Channel(), geo::ChannelMapStandardAlg::FirstChannelInROP(), isValidChannelID(), geo::GeometryCore::NearestChannel(), geo::ChannelMapStandardAlg::PlaneWireToChannel(), hit::FFTHitFinder::produce(), caldata::CalWire::produce(), caldata::CalWireT962::produce(), hit::GausHitFinder::produce(), hit::DPRawHitFinder::produce(), img::DataProviderAlg::resizeView(), nnet::TrainingDataAlg::setEventData(), and geo::GeometryCore::View().
const unsigned int raw::onemask = 0x003f |
Definition at line 127 of file raw.h.
Referenced by ADCStickyCodeCheck().