Changeset 15465 for trunk/FACT++/src


Ignore:
Timestamp:
05/01/13 09:48:15 (12 years ago)
Author:
tbretz
Message:
Removed some obsolete structure members; renamed some for easier understanding their meaning in the code
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/FAD.h

    r15462 r15465  
    162162//---------------------------------------------------------------
    163163
    164 
    165164typedef struct _RUN_TAIL {
    166   uint32_t nEventsOk ;  //how many events were written
     165/*  uint32_t nEventsOk ;  //how many events were written
    167166  uint32_t nEventsRej;  //how many events were rejected by SW-trig
    168167  uint32_t nEventsBad;  //how many events were rejected by Error
     
    171170  uint32_t PCtimeX ;    //time when last  event received
    172171
    173  
     172*/
    174173//probably more to come ...
    175174} __attribute__((__packed__)) RUN_TAIL ;
     
    186185typedef struct {
    187186  uint32_t runId ;       //run number
    188   uint32_t firstTime ;   //epoch of first event received
    189   uint32_t firstUsec ;   //epoch of first event received
     187//  uint32_t firstTime ;   //epoch of first event received
     188//  uint32_t firstUsec ;   //epoch of first event received
    190189  uint32_t lastTime ;    //time when last event written so far
    191190  uint32_t closeTime ;   //time when run should be closed
     
    194193  uint32_t procEvt ;     //actual number of events processed so far
    195194   int32_t lastEvt ;     //last event of this run read so far
    196   uint32_t nextEvt ;     //next event number to be written
    197   uint32_t waitEvt ;     //event that would be ready to be written
     195//  uint32_t nextEvt ;     //next event number to be written
     196//  uint32_t waitEvt ;     //event that would be ready to be written
    198197   int16_t fileId  ;     //<0 never opened, 0=open, >0 closed
    199198   int16_t procId  ;     //processing <0 never opened, 0=open, >0 closed
     
    223222  int16_t  nRoiTM ;
    224223  uint32_t pcTime[2] ;
    225   int32_t  evtLen ;
     224//  int32_t  evtLen ;
    226225  uint8_t  Errors[4] ;
     226
     227  uint32_t evtCtrl_idx;
     228
    227229  EVENT   *fEvent ;
    228230  PEVNT_HEADER *FADhead; //
    229   int8_t  *buffer ;
     231//  int8_t  *buffer ;
    230232
    231233} WRK_DATA ;             //internal to eventbuilder
     
    236238
    237239typedef struct {
    238   int frstPtr ;             //first used index
    239   int lastPtr ;             //last  used index
    240   int evtBuf[MAX_EVT*MAX_RUN] ;     //index of event in mBuffer
    241   int evtStat[MAX_EVT*MAX_RUN] ;    //status of event:
     240//  int frstPtr ;             //first used index
     241//  int lastPtr ;             //last  used index
     242    int mBuffer_idx;//[MAX_EVT*MAX_RUN] ;     //index of event in mBuffer
     243  int evtStat;//[MAX_EVT*MAX_RUN] ;    //status of event:
    242244                                      // -1=empty
    243245                                      //  1..NBoards reading #Boards
     
    251253                                //(TO BE REVISED)
    252254
    253   uint32_t pcTime[MAX_EVT*MAX_RUN] ;     //time when last action happened
     255//  uint32_t lastRecv;//[MAX_EVT*MAX_RUN] ;     //time when last action happened
    254256} EVT_CTRL ;     //internal to eventbuilder
    255257
Note: See TracChangeset for help on using the changeset viewer.