#include "HeadersFAD.h" #include #include #include "Converter.h" using namespace std; void FAD::EventHeader::print(std::ostream &out) const { out << "Delimiter: "; if (fStartDelimiter==kDelimiterStart) out << "ok"; else out << hex << fStartDelimiter; out << " (Crate=" << dec << (fBoardId>>8) << ", Board=" << (fBoardId&0xff) << ", 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