PamCut: PktQualCut Class Reference

# PktQualCut Class Reference

The packet number quality cut. More...

`#include <PktQualCut.h>`

Inheritance diagram for PktQualCut:

List of all members.

## 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

## Detailed Description

The packet number quality cut.

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.

## Constructor & Destructor Documentation

PktQualCut::PktQualCut | ( | const char * | cutName | ) | `[inline]`

Constructor.

Definition at line 33 of file PktQualCut.h.

PktQualCut::~PktQualCut | ( |  | ) | `[inline]`

Destructor.

Definition at line 37 of file PktQualCut.h.

## Member Function Documentation

int PktQualCut::Check | ( | PamLevel2 * | event | ) | `[virtual]`

The packet number quality check.

Parameters:

  | event | The event to analyze.

Returns:
  CUTOK if packet number > previous packet number.

  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.

## Member Data Documentation

UInt_t PktQualCut::_previousPkt`[private]`

Definition at line 50 of file PktQualCut.h.

Referenced by Check().

UInt_t PktQualCut::_previousRun`[private]`

Definition at line 51 of file PktQualCut.h.

Referenced by Check().

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

- MiscCuts/PktQualCut/PktQualCut.h
- MiscCuts/PktQualCut/PktQualCut.cpp