PamCut: TrkCuts/RigFillCut/RigFillCut.h Source File

- Main Page
- Classes
- Files

- File List
- File Members

# TrkCuts/RigFillCut/RigFillCut.h

Go to the documentation of this file.

    00001 /*
    00002  * RigFillCut.h
    00003  *
    00004  *  Created on: 27-mar-2009
    00005  *      Author: Nicola Mori, S. Ricciarini
    00006  *  Last update: 30-apr-2009
    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 /* RIGFILLCUT_H_ */