00001
00002
00003
00004
00005
00006
00007
00008
00011 #ifndef RIGFILLCUT_H_
00012 #define RIGFILLCUT_H_
00013
00014 #include "../../PamCutBase/PamCutBase.h"
00015
00017 enum RIGFILL_return {
00018 RIGOUT,
00019 THRESHRIGOUT
00020 };
00021
00037 class RigFillCut: public PamCut {
00038
00039 public:
00051 RigFillCut(const char *cutName, std::vector<float> binning, float thresholdCoeff) :
00052 PamCut(cutName), _binning(binning), _histogram(binning.size() - 1, binning.size() - 1, 0),
00053 _thresholdCoeff(thresholdCoeff) {
00054 }
00055
00057 ~RigFillCut() {
00058 }
00059
00069 int Check(PamLevel2 *event);
00070
00077 void OnGood(PamLevel2 *event);
00078
00086 SimpleMatrix<UInt_t> &GetHisto() {
00087 return _histogram;
00088 }
00089
00090 private:
00091
00092 std::vector<float> _binning;
00093 SimpleMatrix<UInt_t> _histogram;
00094 float _thresholdCoeff;
00095 };
00096 #endif