PamCut: MiscCuts/LTGeoFillCut/LTGeoFillCut.h Source File

- Main Page
- Classes
- Files

- File List
- File Members

# MiscCuts/LTGeoFillCut/LTGeoFillCut.h

Go to the documentation of this file.

    00001 /*
    00002  * LTGeoFillCut.h
    00003  *
    00004  *  Created on: 26-mar-2009
    00005  *      Author: Nicola Mori
    00006  *  Last update: 30-apr-2009, S. Ricciarini
    00007  */
    00008
    00011 #ifndef LTGEOFILLCUT_H_
    00012 #define LTGEOFILLCUT_H_
    00013
    00014 #include "../../PamCutBase/PamCutBase.h"
    00015
    00024 class LTGeoFillCut: public PamCut {
    00025
    00026 public:
    00036   LTGeoFillCut(const char *cutName, std::vector<float> binning, float thresholdCoeff) :
    00037     PamCut(cutName), _binning(binning), _thresholdCoeff(thresholdCoeff), _histogram(binning.size() - 1, 0.),
    00038         _histogram_tot(0.) {
    00039   }
    00041   ~LTGeoFillCut() {
    00042   }
    00043
    00053   int Check(PamLevel2 *event);
    00054
    00061   void OnGood(PamLevel2 *event);
    00062
    00072   std::vector<float> &GetHisto() {
    00073     return _histogram;
    00074   }
    00075
    00082   float GetHistoTot() {
    00083     return _histogram_tot;
    00084   }
    00085
    00086 private:
    00087
    00088   std::vector<float> _binning;
    00089   float _thresholdCoeff;
    00090
    00091   std::vector<float> _histogram;
    00092   float _histogram_tot;
    00093
    00094 };
    00095
    00096 #endif /* LTGEOFILLCUT_H_ */