22 if( (
GetData32()[0] & 0xf0000000) != 0xa0000000)
23 std::cerr <<
"First word has wrong identifier; first word = 0x"
24 << std::hex <<
GetData32()[0] << std::dec << std::endl;
29 for(
int ch = 0; ch < 16; ch++){
38 uint32_t size = header0 & 0x7fff;
41 int nsamples = size - 2;
43 std::vector<uint32_t> Samples;
45 for(
int i = 0; i < nsamples; i++){
46 uint32_t sample = (
GetData32()[counter] & 0x3fff);
47 Samples.push_back(sample);
48 sample = (
GetData32()[counter] & 0x3fff0000) >> 16;
49 Samples.push_back(sample);
65 std::cout <<
"V1730Dpp decoder for bank " <<
GetName().c_str() << std::endl;
void AddSamples(std::vector< uint32_t > Samples)
const uint32_t * GetData32() const
std::string GetName() const
std::vector< uint32_t > fGlobalHeader
The overall global header.
TV1730DppData(int bklen, int bktype, const char *name, void *pdata)
Constructor.
void Print()
Print the bank contents in a structured way.
uint32_t GetChMask()
Get channel mask.
std::vector< ChannelMeasurement > fMeasurements
Vector of V1730 Measurements.