LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
raw.h
Go to the documentation of this file.
1 
6 #ifndef RAWDATA_RAW_H
7 #define RAWDATA_RAW_H
8 
9 #include <vector>
10 #include <boost/circular_buffer.hpp>
12 
13 namespace raw{
14 
33  void Uncompress(const std::vector<short>& adc,
34  std::vector<short> &uncompressed,
35  raw::Compress_t compress);
36 
37  void Uncompress(const std::vector<short>& adc,
38  std::vector<short> &uncompressed,
39  int pedestal,
40  raw::Compress_t compress);
41 
42  void Compress(std::vector<short> &adc,
43  raw::Compress_t compress,
44  int &nearestneighbor);
45  void Compress(std::vector<short> &adc,
46  raw::Compress_t compress,
47  unsigned int &zerothreshold,
48  int &nearestneighbor);
49  void Compress(std::vector<short> &adc,
50  raw::Compress_t compress,
51  unsigned int &zerothreshold,
52  int pedestal,
53  int &nearestneighbor,
54  bool fADCStickyCodeFeature=false);
55 
68  void Compress(std::vector<short> &adc,
69  raw::Compress_t compress);
70  void Compress(std::vector<short> &adc,
71  raw::Compress_t compress,
72  unsigned int &zerothreshold);
73 
74  void Compress(const boost::circular_buffer<std::vector<short>> &adcvec_neighbors,
75  std::vector<short> &adc,
76  raw::Compress_t compress,
77  unsigned int &zerothreshold,
78  int &nearestneighbor);
79 
80  void Compress(const boost::circular_buffer<std::vector<short>> &adcvec_neighbors,
81  std::vector<short> &adc,
82  raw::Compress_t compress,
83  unsigned int &zerothreshold,
84  int pedestal,
85  int &nearestneighbor,
86  bool fADCStickyCodeFeature=false);
87 
88  void CompressHuffman(std::vector<short> &adc);
89 
90  void UncompressHuffman(const std::vector<short>& adc,
91  std::vector<short> &uncompressed);
92 
93  void ZeroSuppression(std::vector<short> &adc,
94  unsigned int &zerothreshold,
95  int &nearestneighbor);
96 
97  void ZeroSuppression(std::vector<short> &adc,
98  unsigned int &zerothreshold,
99  int pedestal,
100  int &nearestneighbor,
101  bool fADCStickyCodeFeature=false);
102 
103 
104  void ZeroSuppression(std::vector<short> &adc,
105  unsigned int &zerothreshold);
106 
107  void ZeroSuppression(const boost::circular_buffer<std::vector<short>> &adcvec_neighbors,
108  std::vector<short> &adc,
109  unsigned int &zerothreshold,
110  int &nearestneighbor);
111 
112  void ZeroSuppression(const boost::circular_buffer<std::vector<short>> &adcvec_neighbors,
113  std::vector<short> &adc,
114  unsigned int &zerothreshold,
115  int pedestal,
116  int &nearestneighbor,
117  bool fADCStickyCodeFeature=false);
118 
119 
120  void ZeroUnsuppression(const std::vector<short>& adc,
121  std::vector<short> &uncompressed);
122 
123  void ZeroUnsuppression(const std::vector<short>& adc,
124  std::vector<short> &uncompressed,
125  int pedestal);
126 
127  const unsigned int onemask = 0x003f; // Unsigned int ending in 111111 used to select 6 LSBs with bitwise AND
128 
129  int ADCStickyCodeCheck(const short adc_current_value, // Function to check if ADC value may be ADC sticky code in DUNE35t data
130  const int pedestal,
131  bool fADCStickyCodeFeature);
132 
133 } // namespace raw
134 
135 #endif // RAWDATA_RAW_H
void CompressHuffman(std::vector< short > &adc)
Definition: raw.cxx:823
enum raw::_compress Compress_t
void UncompressHuffman(const std::vector< short > &adc, std::vector< short > &uncompressed)
Definition: raw.cxx:1033
const unsigned int onemask
Definition: raw.h:127
Raw data description.
Definition: RawTypes.h:6
int ADCStickyCodeCheck(const short adc_value, const int pedestal, bool fADCStickyCodeFeature)
Definition: raw.cxx:1159
void ZeroUnsuppression(const std::vector< short > &adc, std::vector< short > &uncompressed)
Definition: raw.cxx:696
void Compress(std::vector< short > &adc, raw::Compress_t compress)
Compresses a raw data buffer.
Definition: raw.cxx:20
void Uncompress(const std::vector< short > &adc, std::vector< short > &uncompressed, raw::Compress_t compress)
Uncompresses a raw data buffer.
Definition: raw.cxx:756
void ZeroSuppression(std::vector< short > &adc, unsigned int &zerothreshold)
Definition: raw.cxx:153