fdhwlib  2.0.25
FEtiming Class Reference

#include <FEtiming.h>

Inheritance diagram for FEtiming:
FEbaseTiming

List of all members.

Public Member Functions

Private Attributes


Detailed Description

It is necessary to synchronize all subsystems of the Auger experiment with a resolution in time of 100ns.

The time base of the FD system is defined by two long words with a resolution of one second and 50ns.

Every Second a strobe signal is trigged. Possible sources are

  • the second strobe signal from the GPS clock (source 0)
  • the external trigger signal (source 1)
  • the carry of the SubSecond counter (source 3)

The methods forceStrobe() immediately triggers the second strobe.

The electronic will automatically count the number of time atoms, where no normal operation was possible. This will allow to determine the exact observation period.

Changes:

  • Added functions to read veto and dead time (30.1.03 ak)
  • The name "SecondStrobe" has been changed to "Sync" (26.7.00, ak).
Todo:
Add a function to read the "GPS clock" from the mirrorPC
See also:
FE

Definition at line 54 of file FEtiming.h.


Constructor & Destructor Documentation

FEtiming::FEtiming ( Subrack s)

Member Function Documentation

void FEtiming::disableDeadTimeCounter ( ) [virtual]

Disable the counters for veto- and dead-time.

Implements FEbaseTiming.

void FEtiming::disableSyncErr ( ) [virtual]

Reimplemented from FEbaseTiming.

void FEtiming::enableDeadTimeCounter ( ) [virtual]

Enable the counters for veto- and dead-time.

Before starting the data aquisition the veto- and and dead-time counters should be disabled and a reset should be performed. The value of the counters will be set to zero with the reset command. Directly after starting the data aquisition the inhibit is released and the counters should be enabled.

Note: If the dead-time counters are enabled before the inhibit is released the time between this two commands will be counted as dead-time.

Implements FEbaseTiming.

void FEtiming::enableSyncErr ( ) [virtual]

Reimplemented from FEbaseTiming.

void FEtiming::forceStrobe ( ) [virtual]

Implements FEbaseTiming.

void FEtiming::getActualTime ( FEtimeStamp t) [virtual]

Get the actual time from the FD Electronics.

Parameters:
tTimestamp containing second and subsecond values

Reimplemented from FEbaseTiming.

void FEtiming::getActualTime ( unsigned long *  second,
unsigned long *  subSecond 
) [virtual]

Get the actual time from the FD Electronics.

Parameters:
secondValue of the second counter
subSecondValue of the subsecond counter

Implements FEbaseTiming.

void FEtiming::getDeadTime ( unsigned long *  high,
unsigned long *  low 
) [virtual]

Read the dead time counter.

Implements FEbaseTiming.

void FEtiming::getDeadTime ( unsigned long long *  time) [virtual]

Read the dead time counter.

Implements FEbaseTiming.

unsigned long FEtiming::getSecond ( ) [virtual]

Read the second counter.

Note: This command can be used only in conjunction with getSubSecond. Every call of getSubSecond will copy both second and subsecond counter.

Implements FEbaseTiming.

int FEtiming::getStrobeSource ( ) [virtual]

Implements FEbaseTiming.

unsigned long FEtiming::getSubSecond ( ) [virtual]

The SubSecond field is divided in SubSecond1 (bit 24-11) and.

SubSecond2 (bit 10-0). SubSecond2 counts from 0..1999 with a resolution equal to 50ns. SubSecond1 counts from 0..9999 and has a resolution equal to 100us.

Implements FEbaseTiming.

void FEtiming::getVetoTime ( unsigned long *  high,
unsigned long *  low 
) [virtual]

Read the veto time counter.

Implements FEbaseTiming.

void FEtiming::getVetoTime ( unsigned long long *  time) [virtual]

Read the veto time counter.

Implements FEbaseTiming.

bool FEtiming::isEnabledDeadTimeCounter ( ) [virtual]

Request the status of the veto- and dead-time counters.

Implements FEbaseTiming.

bool FEtiming::isEnabledSyncErr ( ) [virtual]

Reimplemented from FEbaseTiming.

void FEtiming::resetDeadTimeCounter ( ) [virtual]

Reset veto and dead time counter.

Implements FEbaseTiming.

unsigned long FEtiming::setActualTime ( ) [virtual]

Write the actual time to the second counter.

From the PC Clock the appropriate number of GPS seconds is calulated and writen in the "midle" of the (PC) second to the hardware register. The command returns the GPS second writen to the hardware.

Implements FEbaseTiming.

void FEtiming::setSecond ( unsigned long  sec) [virtual]

Write a certain value to the second counter register.

The functions takes into account, that the new value will be set with the next second strobe and always writes sec + 1 to the second counter.

Implements FEbaseTiming.

void FEtiming::setStrobeSource ( int  source) [virtual]

Implements FEbaseTiming.

int FEtiming::waitForSyncErr ( ) [virtual]

A synchronization error may occur in every FPGA.

All interrupt are collected in this function

Returns:
The ID of the FPGA causing the interrupt

Reimplemented from FEbaseTiming.


Member Data Documentation

Subrack* FEtiming::s [private]

Definition at line 165 of file FEtiming.h.


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