#include "HeadersFAD.h" #include #include #include "Converter.h" using namespace std; void FAD::EventHeader::print(std::ostream &out) const { out << "Delimiter: " << hex << fStartDelimiter; out << (fStartDelimiter==kDelimiterStart?" (ok)":" (WRONG)") << endl; out << " (Crate=" << dec << Crate() << ", Board=" << Board() << ", Version=" << (fVersion>>8) << "." << (fVersion&0xff) << ", DNA=" << hex << fDNA <<")" << endl; out << dec; out << "PkgLength: " << fPackageLength << endl; out << "RunNumber: " << fRunNumber << endl; out << "Time: " << fTimeStamp/10000. << "s" << endl; out << "EvtCounter: " << fEventCounter << " of " << fNumTriggersToGenerate << endl; out << "Trigger: Type=" << fTriggerType << " Id=" << fTriggerId << " Crc=0x" << hex << fTriggerCrc << endl; out << "RefClock: " << dec << fFreqRefClock << endl; out << "PhaseShift: " << fAdcClockPhaseShift << endl; out << "Prescaler: " << fTriggerGeneratorPrescaler << endl; out << "DAC: " << dec; for (int i=0; i