- Timestamp:
- 07/09/09 16:24:10 (15 years ago)
- Location:
- drsdaq
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
drsdaq/RawDataCTX.h
r79 r85 12 12 using the gcc attribute __attribute__((__packed__)) is incompatible with root. 13 13 14 15 14 The convention for the header structure is that exisitng structure entries 16 15 should never be deleted. New items may only be added at the end. 17 Items named _res are introduced for compatibility with the MAGIC data format and are set to zero.18 16 */ 19 17 … … 26 24 #define DATA_FORMAT 1 27 25 #define IDENTIFICATION 1 // Raw data file identification 28 29 26 30 27 typedef char I8; … … 55 52 I32 SoftwareRevision; // Subversion revision number (negative for modified working copy) 56 53 57 //U32 _res1[2];58 54 U32 Identification; 59 55 U32 Type; // Run type: 0=data, 1=pedestal, 3=test 60 56 U32 RunNumber; 61 57 U32 FileNumber; 62 63 58 I8 Description[100]; 64 //I8 _res2[140];65 //U32 _res3[6];66 59 67 60 U32 NBoards; // Number of used mezzanine boards … … 73 66 74 67 U32 Events; // Number of events in the file 75 //U32 _res4;76 68 U32 NBytes; // Bytes per sample 77 //I8 _res5[20];78 69 79 70 U32 StartSecond; // Opening and closing time of the file … … 85 76 // Board structure 86 77 typedef struct { 87 //I8 _res[17];88 78 I32 SerialNo; // Board serial number 89 79 F32 NomFreq; // Nominal sampling frequency [GHz] … … 97 87 U32 Second; // Event time stamp (result of gettimeofday()) 98 88 U32 Microsecond; 99 //U32 _res[4];100 89 U32 TriggerType; 101 90 U32 EventSize; // Size of following data in bytes -
drsdaq/SlowData.cc
r68 r85 58 58 gettimeofday(&Time, NULL); 59 59 InternalCall = true; 60 NewEntryCalled = AddToEntry("\n%s %s %d %d %d %d %d %d %d %lu %lu", Issuer, Variable, TM->tm_year+1900,TM->tm_mon+1,TM->tm_mday,TM->tm_hour,TM->tm_min,TM->tm_sec, Time.tv_usec/1000, Time.tv_sec, Time.tv_usec);60 NewEntryCalled = AddToEntry("\n%s %s %d %d %d %d %d %d %d %lu ", Issuer, Variable, TM->tm_year+1900,TM->tm_mon+1,TM->tm_mday,TM->tm_hour,TM->tm_min,TM->tm_sec, Time.tv_usec/1000, Time.tv_sec); 61 61 InternalCall = false; 62 62 return NewEntryCalled;
Note:
See TracChangeset
for help on using the changeset viewer.