#include <OBTQualCut.h>
Public Member Functions | |
OBTQualCut (const char *cutName) | |
Constructor. | |
~OBTQualCut () | |
Destructor. | |
int | Check (PamLevel2 *event) |
The On Board Time quality check. | |
Private Attributes | |
UInt_t | _previousOBT |
UInt_t | _previousRun |
This cut rejects events whose OBT is less than that of the previous event. When a new run starts, the previous OBT is set to the current one and the current event (ie., the first event of the run) is discarded.
Definition at line 28 of file OBTQualCut.h.
OBTQualCut::OBTQualCut | ( | const char * | cutName | ) | [inline] |
OBTQualCut::~OBTQualCut | ( | ) | [inline] |
int OBTQualCut::Check | ( | PamLevel2 * | event | ) | [virtual] |
The On Board Time quality check.
event | The event to analyze. |
OBT_NEWRUN if the event has been discarded since it is the first of the run
OBT_INVALID if OBT < previous OBT
Implements PamCut.
Definition at line 12 of file OBTQualCut.cpp.
References _previousOBT, _previousRun, CUTOK, and OBT_INVALID.
UInt_t OBTQualCut::_previousOBT [private] |
UInt_t OBTQualCut::_previousRun [private] |