Go to the documentation of this file.00001 #ifndef HCALHFSTATUSFROMDIGIS_H
00002 #define HCALHFSTATUSFROMDIGIS_H 1
00003
00004 #include "DataFormats/HcalDigi/interface/HFDataFrame.h"
00005 #include "DataFormats/HcalRecHit/interface/HFRecHit.h"
00006 #include "RecoLocalCalo/HcalRecAlgos/interface/HcalCaloFlagLabels.h"
00007 #include "CalibFormats/HcalObjects/interface/HcalCalibrations.h"
00008 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00009 #include "CalibFormats/HcalObjects/interface/HcalCoderDb.h"
00010
00020 class HcalHFStatusBitFromDigis {
00021 public:
00023 HcalHFStatusBitFromDigis();
00024 HcalHFStatusBitFromDigis(const edm::ParameterSet& HFDigiTimeParams,
00025 const edm::ParameterSet& HFTimeInWindowParams);
00026
00027 ~HcalHFStatusBitFromDigis();
00028
00029
00030 void hfSetFlagFromDigi(HFRecHit& hf, const HFDataFrame& digi,
00031 const HcalCoder& coder,
00032 const HcalCalibrations& calib);
00033 void resetParamsFromDB(int firstSample, int samplesToAdd, int expectedPeak, double minthreshold, std::vector<double> coef);
00034 void resetFlagTimeSamples(int firstSample, int samplesToAdd, int expectedPeak);
00035
00036 private:
00037
00038
00039
00040
00041 double minthreshold_;
00042
00043 int recoFirstSample_;
00044 int recoSamplesToAdd_;
00045
00046 int firstSample_;
00047 int samplesToAdd_;
00048 int expectedPeak_;
00049
00050
00051
00052 std::vector<double> coef_;
00053
00054
00055
00056 double HFlongwindowEthresh_;
00057 std::vector<double> HFlongwindowMinTime_;
00058 std::vector<double> HFlongwindowMaxTime_;
00059 double HFshortwindowEthresh_;
00060 std::vector<double> HFshortwindowMinTime_;
00061 std::vector<double> HFshortwindowMaxTime_;
00062 };
00063
00064 #endif