Changeset 85 for drsdaq


Ignore:
Timestamp:
07/09/09 16:24:10 (15 years ago)
Author:
ogrimm
Message:
Small change in slow data format
Location:
drsdaq
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • drsdaq/RawDataCTX.h

    r79 r85  
    1212  using the gcc attribute __attribute__((__packed__)) is incompatible with root.
    1313
    14 
    1514  The convention for the header structure is that exisitng structure entries
    1615  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.
    1816*/
    1917
     
    2624#define DATA_FORMAT 1
    2725#define IDENTIFICATION 1    // Raw data file identification
    28 
    2926
    3027typedef char I8;
     
    5552  I32 SoftwareRevision; // Subversion revision number (negative for modified working copy)
    5653
    57   //U32 _res1[2];
    5854  U32 Identification;
    5955  U32 Type;             // Run type: 0=data, 1=pedestal, 3=test
    6056  U32 RunNumber;
    6157  U32 FileNumber;
    62 
    6358  I8  Description[100];
    64   //I8  _res2[140];
    65   //U32 _res3[6];
    6659       
    6760  U32 NBoards;          // Number of used mezzanine boards
     
    7366
    7467  U32 Events;           // Number of events in the file
    75   //U32  _res4;
    7668  U32 NBytes;           // Bytes per sample
    77   //I8  _res5[20];
    7869 
    7970  U32 StartSecond;      // Opening and closing time of the file
     
    8576// Board structure
    8677typedef struct {
    87   //I8  _res[17];
    8878  I32 SerialNo;     // Board serial number
    8979  F32 NomFreq;      // Nominal sampling frequency [GHz]
     
    9787  U32 Second;          // Event time stamp (result of gettimeofday())
    9888  U32 Microsecond;
    99   //U32 _res[4];
    10089  U32 TriggerType;
    10190  U32 EventSize;        // Size of following data in bytes
  • drsdaq/SlowData.cc

    r68 r85  
    5858  gettimeofday(&Time, NULL);
    5959  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);
    6161  InternalCall = false;
    6262  return NewEntryCalled;
Note: See TracChangeset for help on using the changeset viewer.