PamCut: MiscCuts/OBTQualCut/OBTQualCut.h Source File

- Main Page
- Classes
- Files

- File List
- File Members

# MiscCuts/OBTQualCut/OBTQualCut.h

Go to the documentation of this file.

    00001 /*
    00002  * OBTQualCut.h
    00003  *
    00004  *  Created on: 10-mar-2009
    00005  *      Author: Nicola Mori
    00006  */
    00007
    00010 #ifndef OBTQUALCUT_H_
    00011 #define OBTQUALCUT_H_
    00012
    00013 #include "../../PamCutBase/PamCutBase.h"
    00014
    00016 enum OBT_Return {
    00017   OBT_NEWRUN,
    00018   OBT_INVALID
    00019 };
    00020
    00021 using std::numeric_limits;
    00028 class OBTQualCut: public PamCut {
    00029
    00030 public:
    00032   OBTQualCut(const char *cutName) :
    00033     PamCut(cutName), _previousOBT(numeric_limits<UInt_t>::max()), _previousRun(numeric_limits<UInt_t>::max()) {
    00034   }
    00036   ~OBTQualCut() {
    00037   }
    00038
    00046   int Check(PamLevel2 *event);
    00047
    00048 private:
    00049   UInt_t _previousOBT;
    00050   UInt_t _previousRun;
    00051
    00052 };
    00053
    00054 #endif /* OBTQUALCUT_H_ */