File indexing completed on 2024-04-06 12:10:20
0001 #ifndef CASTORDATAFRAMEFILTER_H
0002 #define CASTORDATAFRAMEFILTER_H 1
0003
0004 #include "DataFormats/HcalDigi/interface/HcalDigiCollections.h"
0005 #include "DataFormats/HcalDigi/interface/HcalUnpackerReport.h"
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 class CastorDataFrameFilter {
0019 public:
0020 CastorDataFrameFilter(bool requireCapid,
0021 bool requireDVER,
0022 bool energyFilter,
0023 int firstSample = -1,
0024 int lastSample = -1,
0025 double minAmpl = -1);
0026
0027 CastorDigiCollection filter(const CastorDigiCollection& incol, HcalUnpackerReport& r);
0028
0029 bool active() const;
0030
0031 private:
0032 bool requireCapid_;
0033 bool requireDVER_;
0034 bool energyFilter_;
0035 int firstSample_, lastSample_;
0036 double minimumAmplitude_;
0037 };
0038
0039 #endif