/* dMvdDCM.idl */ /* This file was created based on a document written by J. Nagle and*/ /* C.Y. Chi: */ /* http://www.nevis.columbia.edu/~nagle/PHENIX/mvd_format_pub.htm */ /* J.P. Sullivan 24-Jul-98, replaces an older and significantly */ /* different version which was created 10-Jul-98. */ /* Modified by J.P.Sullvan and Martin Purschke 29-Sep-98 -- added */ /* nWord, scheme, packetID */ /* This information represents the output on the DCM's for the MVD. */ /* There is one DCM report for each MCM in the MVD. There are 136 */ /* MCM's in the MVD. */ struct dMvdDCM { unsigned long nWord; /* of words in "payload" */ unsigned long scheme; /* ID_MVD_DCM0 is pass through */ unsigned long packetID; /* starts from 2001 ... */ /* the "payload" starts here: */ unsigned long Flgs; /* misc flags */ unsigned long module; /* module address, the lower 2 bits are */ /* the "PLEX" bits and the rest are used */ /* to identify the MCM number */ unsigned long event; /* event number */ unsigned long Bcounter; /* FEM beam clock counter (8 bits) */ unsigned long det; /* 2 is MVD */ unsigned long amucells; /* amu cells */ unsigned long adc[256]; /* adc values */ unsigned long user[8]; /* user words, used to contain various */ /* error codes */ /* positions of the words containing data */ /* parity errors are stored in the first */ /* 7 words, the 8th word contains framing */ /* error identifiers */ /* underflow (not enough words) - bit 11 */ /* overflow (too many words ) - bit 12 */ /* two start bits without a stop- bit 13 */ unsigned long parity; /* checksum -- a.k.a. vertical checksum */ /* -- a.k.a. longitudinal parity word */ unsigned long LastWord; /* not sure what this will be */ };