#include "RawData/RawTOFDigit.h"#include "MessageService/MsgService.h"#include "MessageService/MsgFormat.h"#include "MessageService/MsgStream.h"Go to the source code of this file.
Functions | |
| CVSID ("$Id: RawTOFDigit.cxx,v 1.5 2003/07/10 19:36:30 rhatcher Exp $") | |
| ostream & | operator<< (ostream &os, const RawTOFDigit &r) |
|
||||||||||||
|
|
|
||||||||||||
|
Definition at line 23 of file RawTOFDigit.cxx. 00024 {
00025 MsgFormat ifmt("%2d");
00026 MsgFormat ecfmt("%3d");
00027 MsgFormat adcfmt("%5d");
00028 MsgFormat timefmt("%10d");
00029 MsgFormat hexfmt("%8.8x");
00030
00031 os << " " << r.GetName()
00032 << " ErrorCode " << ecfmt(r.fErrorCode)
00033 << " ADC: " << adcfmt(r.fAdc) << " Time " << timefmt(r.fTdc);
00034 os << " TDC: " << r.GetNumberOfEntries()
00035 <<" entries (" << ((r.IsStructureOk()) ? "ok" : "bad structure")
00036 << "), tdc evt counter " << r.GetTdcEventCounter() << endl;
00037 int n = r.GetNumberOfEntries();
00038 if (n>0)
00039 os << " channel value valid under over" << endl;
00040 for (int i=0; i<n; i++) {
00041 os << " [" << ifmt(i) << "]" << ecfmt(r.GetTdcChannel(i))
00042 << " " << adcfmt(r.GetTdcValue(i))
00043 << " " << (int)r.IsTdcValid(i)
00044 << " " << (int)r.IsTdcUnderThreshold(i)
00045 << " " << (int)r.IsTdcOverflow(i);
00046 }
00047 int NN = r.GetTdcArraySize();
00048 os << " raw tdc block: ";
00049 for (int II=0; II<NN; II++)
00050 os << " 0x" << hexfmt(r.GetTdcArray()[II]);
00051 os << endl;
00052
00053 return os;
00054 }
|
1.3.9.1