• Main INDEX
  • Monthly INDEX
  • PREV
  • NEXT
    Make New Entry, Make Followup Entry

    User name Ole Hansen

    Log entry time 15:45:16 on July 08, 2010

    Entry number 330825

    This entry is a followup to: 330820

    keyword=Re: fEvtHdr.fEvtType (readable)

    Does this explain the observed 100 ns time offsets?
    
    Regarding the TS programming, is there any reason not to program a simple
    priority list?
    
    int getevtype() {
      int trigbits = gettrigbits();
      // Experiment-specific priority list of triggers
      // Whichever numbered triggerbit is present in this order, it
      // is the event type
      int types[] = { 6, 4, 5, 3, 1, 0 };
    
      int* type = types;
      while( *type ) {
        if( trigbits & (1<<(*type-1)) )
           break;
        ++type;
      }
      return *type;
    }
    
    Should beat a hardcoded arbitrary number.
    
    


    A copy of this log entry has been emailed to: rom