PamCut: MiscCuts/AbsTimeCut/AbsTimeCut.h Source File

- Main Page
- Classes
- Files

- File List
- File Members

# MiscCuts/AbsTimeCut/AbsTimeCut.h

Go to the documentation of this file.

    00001 /*
    00002  * AbsTimeCut.h
    00003  *
    00004  *  Created on: 22-mag-2009
    00005  *      Author: Nicola Mori
    00006  */
    00007
    00010 #ifndef ABSTIMECUT_H_
    00011 #define ABSTIMECUT_H_
    00012
    00013 #include "../../PamCutBase/PamCutBase.h"
    00014 #include <TTimeStamp.h>
    00015
    00017 enum AbsTimeCut_Return {
    00018   ABSTIMECUT_TOOEARLY,
    00019   ABSTIMECUT_TOOLATE
    00021 };
    00022
    00027 class AbsTimeCut: public PamCut {
    00028
    00029 public:
    00030
    00042   AbsTimeCut(const char *cutName, const char *initDate, const char * initTime, const char * endDate,
    00043       const char * endTime) :
    00044     PamCut(cutName), _initDate(atoi(initDate)), _initTime(atoi(initTime)), _endDate(atoi(endDate)), _endTime(atoi(
    00045         endTime)), _time() {
    00046   }
    00047
    00049   ~AbsTimeCut() {
    00050   }
    00051
    00059   int Check(PamLevel2 *event);
    00060
    00061 private:
    00062
    00063   unsigned int _initDate, _initTime, _endDate, _endTime;
    00064   TTimeStamp _time;
    00065 };
    00066 #endif /* ABSTIMECUT_H_ */