#include <OSWtimeContribution.h>
Collaboration diagram for OSWtimeContribution:
Public Types | |
enum | { ID = LATidentity_(LATprimaryId::Id_Time, LATsecondaryId::Id_Time) } |
Public Member Functions | |
OSWtimeContribution () | |
Do nothing constructor. | |
OSWtimeContribution (const OSWcontribution &contribution) | |
"Copy" constructor taking an OSWcontribution | |
~OSWtimeContribution () | |
Do nothing destructor. | |
const struct timespec * | timeStamp () const |
Return the timespec structure found in the data. | |
const OSWtimeBase * | timebase () const |
Return the 64 bit timebase value found in the data as two unsigneds. | |
const unsigned | evtSeqMSW () const |
Return the event sequence number most significant word. | |
const unsigned | evtSequence () const |
Return the event sequence number. |
This class exists to support data taken after the GASU came into existance. Data that falls into this catagory is labeled with the EBFevent::ID typeId. Data taken before this point contains this time stamp information as well, but in the form of a GLTcontribution.
This contribution will disappear some time in the future when FSW provides their own implementation of assigning absolute time to events. It is likely to be very different than what is presented here.
Copyright: Copyright 2004 by The Board of Trustees of the Leland Stanford Junior University. All rights reserved.
|
"Copy" constructor taking an OSWcontribution This constructor exists for the Python interface to get around the inability to recast an OSWcontribution as an OSWtimeContribution. This constructor creates a new object by making a copy of the parent OSWcontribution. |
|
Return the event sequence number most significant word. The event sequence number most significant word is created by counting the number of times the hardware's event number rolls over.
|
|
Return the event sequence number. The event sequence number is created by concatenating the event sequence number most significant word (32 bits), the hardware event number (15 bits) and the hardware tag (2 bits) value. Only the lower 32 bits of the result are returned as this allows for some 4 billion events in a run, way more then we ever expect to encounter.
|
|
Return the 64 bit timebase value found in the data as two unsigneds. The timebase value comes from a PPC register that increments at a rate given by the board's implementation. Ric hasn't been able to find any supporting documentation giving the rate, but one measurement gives 16.6667 MHz.
|
|
Return the timespec structure found in the data. The timestamp value comes from the VxWorks real-time clock. The clock is periodically updated. The period is settable through software, but defaults to 60 Hz.
|