18 for(
int i = 0; i <
GetSize(); i++){
21 if( (word & 0xc0000000) == 0x40000000){
25 if(bitresolution == 1)
27 else if(bitresolution == 2)
29 else if(bitresolution == 4)
34 if( (word & 0xc0000000) == 0x00000000 &&
35 (word & 0x3fe00000) == 0x04000000 ){
39 if( (word & 0xc0000000) == 0x00000000 &&
40 (word & 0x3fe00000) == 0x04000000 ){
44 if((word & 0xc0000000) == 0xc0000000){
55 std::cout <<
"Data for Mesytec module in bank " <<
GetName() << std::endl;
56 std::cout <<
"Module ID = " <<
GetModuleID() << std::endl;
57 std::cout <<
"Bit resolution : 0x" << std::hex
60 std::cout <<
"Timestamp = " <<
GetTimeStamp() << std::endl;
63 std::cout <<
"Number of measurements: " << measurements.size() << std::endl;
65 for(
unsigned int i = 0; i < measurements.size(); i++){
70 if(i%2==1) std::cout << std::endl;
72 std::cout << std::endl;
bool IsOutOfRange() const
Is Out Of Range?
uint32_t GetChannel() const
Get the channel number.
uint32_t GetMeasurement() const
Get the ADC measurement.
uint32_t adc_measurement_word
std::string GetName() const
const uint32_t * GetData32() const
std::vector< ADCMeasMesy > & GetMeasurements()
Get the Vector of ADC Measurements.
uint32_t fGlobalTrailer
The overall global trailer.
TMesytecData(int bklen, int bktype, const char *name, void *pdata)
Constructor.
uint32_t fGlobalHeader
The overall global header.
uint32_t GetTimeStamp() const
void Print()
Print the bank contents in a structured way.
std::vector< ADCMeasMesy > fMeasurements
Vector of ADC Measurements.
uint32_t GetModuleID() const
Get Module ID.