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