AbsTimeCut Class Reference

A cut on absolute time. More...

#include <AbsTimeCut.h>

Inheritance diagram for AbsTimeCut:

PamCut

List of all members.

Public Member Functions

 AbsTimeCut (const char *cutName, const char *initDate, const char *initTime, const char *endDate, const char *endTime)
 Constructor.
 ~AbsTimeCut ()
 Destructor.
int Check (PamLevel2 *event)
 The absolute time check.


Detailed Description

A cut on absolute time.

This selection rejects all events recorded outside a certain time interval.


Constructor & Destructor Documentation

AbsTimeCut::AbsTimeCut ( const char *  cutName,
const char *  initDate,
const char *  initTime,
const char *  endDate,
const char *  endTime 
) [inline]

Constructor.

The parameters define the time interval. They have to be encoded as 6-digits numbers, eg.: 18 March 2008 15:30:00 will be encoded as 080318 for the date and as 153000 for the time.

Parameters:
cutName The cut's name
initDate The initial date (format: YYMMDD).
initTime The initial time (format: hhmmss).
endDate The final date (format: YYMMDD);.
endTime The final time (format: hhmmss).


Member Function Documentation

int AbsTimeCut::Check ( PamLevel2 *  event  )  [virtual]

The absolute time check.

Parameters:
event The event to analyze.
Returns:
CUTOK if the event happened inside the time interval

ABSTIMECUT_TOOEARLY if the event happened before the begin of the time interval.

ABSTIMECUT_TOOLATE if the event happened after the end of the time interval.

Implements PamCut.


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

Generated on Fri Jun 5 15:08:59 2009 for PamCut by  doxygen 1.5.9