Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:18:30

0001 #ifndef HLTHcalLaserFilter_h
0002 #define HLTHcalLaserFilter_h
0003 
0004 /** \class HLTHcalLaserFilter
0005  *
0006  *  \author Alex Mott (Caltech), Jeff Temple (FNAL)
0007  *
0008  */
0009 
0010 #include "FWCore/Framework/interface/Frameworkfwd.h"
0011 #include "FWCore/Framework/interface/Event.h"
0012 #include "FWCore/Framework/interface/global/EDFilter.h"
0013 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0014 #include "FWCore/Utilities/interface/InputTag.h"
0015 #include "RecoMET/METAlgorithms/interface/HcalNoiseAlgo.h"
0016 #include "DataFormats/HcalDigi/interface/HcalDigiCollections.h"
0017 
0018 namespace edm {
0019   class ConfigurationDescriptions;
0020 }
0021 
0022 class HLTHcalLaserFilter : public edm::global::EDFilter<> {
0023 public:
0024   explicit HLTHcalLaserFilter(const edm::ParameterSet&);
0025   static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0026   bool filter(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
0027 
0028 private:
0029   const edm::EDGetTokenT<HcalCalibDigiCollection> m_theCalibToken;
0030   // parameters
0031   const std::vector<int> timeSlices_;
0032   const std::vector<double> thresholdsfC_;
0033   const std::vector<int> CalibCountFilterValues_;
0034   const std::vector<double> CalibChargeFilterValues_;
0035   const double maxTotalCalibCharge_;
0036   const int maxAllowedHFcalib_;
0037 };
0038 
0039 #endif  //HLTHcalLaserFilter_h