fdhwlib  2.0.25
SltTime Class Reference

#include <SltTime.h>

Inheritance diagram for SltTime:
SltTimeBase FEtimeStamp

List of all members.

Public Member Functions

Public Attributes

Static Public Attributes


Detailed Description

Class to describe the timing data of the second level trigger board.

The class is via the version field able to handle also the time stamp format of the prototype electronic.

Todo:
Simplify the calculation of the offsets
      SltOffset = (LastTriggerTimeStamp >> 10) & 0x7fe;
      FltOffset = (LastTriggerTimeStamp >> 11) & 0x3fe;
     The SltOffset calculated in this way is always multiple of 20.
  

Changes:

  • 25.03.2003 ak, Added filed triggerAllActive for the new trigger time stamp features in Hw version 3.
  • 22.02.2002 ak, Functions to handle GPS and UTC second counters added .
  • 29.8.01 ak, Error in setSec fixed - length was only 25bit instead of 32bit!
  • 6.6.01 ak: Take the additional information about the trigger source into account!
  • 3.6.01 ak: Commands added to reconstruct the timestamp back!

Definition at line 43 of file SltTime.h.


Constructor & Destructor Documentation

SltTime::SltTime ( )
SltTime::~SltTime ( )

Member Function Documentation

int SltTime::getFltOffset ( ) [virtual]

Get the address of the first time bin for readout of the Flt pages.

Reimplemented from SltTimeBase.

unsigned long SltTime::getLastTrigger ( ) [virtual]

Get the time stamp for the last trigger time stamp.

Reimplemented from SltTimeBase.

int SltTime::getSltOffset ( ) [virtual]

Get the address of the first time bin for readout of the Slt pages.

Reimplemented from SltTimeBase.

unsigned long SltTime::getSubSec ( ) [virtual]

Get the time stamp - raw data format - for the subseconds.

Reimplemented from SltTimeBase.

const char* SltTime::getTriggerSourceBrief ( ) [virtual]

Returns a brief string for the trigger source.

Reimplemented from SltTimeBase.

SltTime& SltTime::minus ( const SltTime t1,
const SltTime t2 
)

Difference of two time stamps (t1 - t2).

All other fields are afterwards invalid !

Referenced by minus().

void SltTime::minus ( SltTime time) [inline]

Definition at line 92 of file SltTime.h.

References minus().

                            {
    SltTimeBase::minus( *this, time );
  }
SltTime& SltTime::operator= ( const SltTime )

Assignment operator.

void SltTime::setLastTrigger ( unsigned long  data) [virtual]

Read the information from the LastTriggerTimeStamp.

The time stamp also includes information about the active trigger mask, the number of the page with the event before this and the readout pointer.

Reimplemented from SltTimeBase.

void SltTime::setSubSec ( unsigned long  data) [virtual]

Set sub-second fields with the information read from the sub-second counter.

Reimplemented from SltTimeBase.

void SltTime::setVersionPrototype ( )

Set the version number for the prototype system (SLT version 1.1)


Member Data Documentation

Offset of the page start address in the Flt.

10bit, 0..999, resolution 100ns. The information is stored in the LastTriggerTimeStamp.

Definition at line 112 of file SltTime.h.

Add to the actual time.

Bit field with all possible trigger sources set to 1. The information is stored in the LastTriggerTimeStamp.

Definition at line 105 of file SltTime.h.

const char* SltTime::triggerSourceBrief[] [static]

Names returned for the trigger source.

Definition at line 115 of file SltTime.h.


The documentation for this class was generated from the following file: