8 if(ch >= 0 && ch <
NADC)
21 static int checkword = 0xfeed;
33 std::cout <<
"This event had only 11 samples; not 12. Setting all values to -1." << std::endl;
38 std::cout <<
"This event seems mangled; whole set of events probably mangled." << std::endl;
46 for(
int i = 0; i <
NADC; i++){
50 std::cout <<
"Data (@" << pointer <<
") " <<
GetData16()[pointer] <<
" doesn't match checkword "
51 << checkword << std::endl;
60 std::cout <<
"TCamacData::CamacData: Triggers don't match!! " << ntriggers <<
" " <<
fMeasurements.size() << std::endl;
64 std::cout <<
"bklen: " << bklen << std::endl;
65 for(
int i = 0; i < bklen; i++){
66 if(i%16 == 0){ std::cout << i << std::endl;}
67 std::cout << std::hex <<
GetData16()[i] <<
" " << std::dec;
68 if(i%16 == 15) std::cout << std::endl;
71 std::cout << std::endl;
This class is meant to store a single trigger (LAM) of CAMAC ADC data.
void SetADC(int ch, int adc)
std::vector< CamacADCEvent > fMeasurements
Vector of CAMAC ADC measurements.
TCamacData(int bklen, int bktype, const char *name, void *pdata)
Constructor.
const uint16_t * GetData16() const