8 #ifndef MVD_MVDTESTBEAM_PASTATB_PNDMVDPASTADIGIFULL_H_ 9 #define MVD_MVDTESTBEAM_PASTATB_PNDMVDPASTADIGIFULL_H_ 69 fTimeStamp = CalcTimeStamp();
80 ULong64_t timeStamp = fFrameHeader.frameId * 1024 + fTimeBranch.t_coarse;
81 fTimeStamp = timeStamp;
87 int tot = fEnergyBranch.t_coarse - fTimeBranch.t_coarse;
103 out << std::dec <<
" Header: nHits " << digi.fFrameHeader.
nEvents <<
" frameId: " << digi.fFrameHeader.
frameId << std::endl;
104 out <<
"TimeBranch: " << digi.fTimeBranch << std::endl;
105 out <<
"EnergyBranch: " << digi.fEnergyBranch << std::endl;
113 ULong64_t fTimeStamp;
void SetTimeBranch(ThresholdDataFullMode time)
void SetEnergyBranch(ThresholdDataFullMode energy)
int fWrongFrameCount
count of all frames where the expected frame ID did not match the frameID in the header ...
int fWrongHitCount
count of all frames where the hits in the header do not match the data
int fSingleWordFrames
count of all frames with just one word. This is an error a frame has at least two words ...
PndMvdPastaDigi(FrameHeader header, ThresholdDataFullMode time, ThresholdDataFullMode energy)
friend std::ostream & operator<<(std::ostream &out, const PndMvdPastaDigi &digi)
void SetHeader(FrameHeader header)
int fAllPartialResets
count of all partial resets detected
int fMissingFrames
count of all missing frames (not very reliable)
int fCrcErrorCount
count of all frames with wrong CRC
std::vector< ULong64_t > fAllCountedFrames
counts all frames within a partial reset
ULong64_t CalcTimeStamp()
int fSuperFrameCount
count of frame counter overflow (should not happen because the frame counter is HUGE ...
friend std::ostream & operator<<(std::ostream &out, const ThresholdDataFullMode &data)
int fCrcMatchCount
count of all frames with correct CRC