Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:20:42

0001 #ifndef _HLTPixelActivityHFSumEnergyFilter_H
0002 #define _HLTPixelActivityHFSumEnergyFilter_H
0003 
0004 // system include files
0005 #include <memory>
0006 
0007 // user include files
0008 #include "FWCore/Framework/interface/stream/EDFilter.h"
0009 
0010 #include "FWCore/Framework/interface/Event.h"
0011 #include "FWCore/Framework/interface/EventSetup.h"
0012 #include "FWCore/Framework/interface/MakerMacros.h"
0013 #include "FWCore/Utilities/interface/StreamID.h"
0014 
0015 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0016 #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
0017 #include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
0018 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0019 #include "DataFormats/Common/interface/Handle.h"
0020 
0021 #include "DataFormats/HLTReco/interface/TriggerTypeDefs.h"
0022 #include "DataFormats/Common/interface/DetSetVector.h"
0023 #include "DataFormats/SiPixelCluster/interface/SiPixelCluster.h"
0024 #include "DataFormats/HcalRecHit/interface/HcalRecHitCollections.h"
0025 
0026 //
0027 // class declaration
0028 //
0029 
0030 class HLTPixelActivityHFSumEnergyFilter : public edm::stream::EDFilter<> {
0031 public:
0032   explicit HLTPixelActivityHFSumEnergyFilter(const edm::ParameterSet&);
0033   ~HLTPixelActivityHFSumEnergyFilter() override;
0034   static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0035 
0036 private:
0037   bool filter(edm::Event& iEvent, const edm::EventSetup& iSetup) override;
0038 
0039   edm::InputTag inputTag_;  // input tag identifying product containing pixel clusters
0040   edm::EDGetTokenT<edmNew::DetSetVector<SiPixelCluster> > inputToken_;
0041   edm::EDGetTokenT<HFRecHitCollection> HFHitsToken_;
0042   edm::InputTag HFHits_;
0043   double eCut_HF_;
0044   double eMin_HF_;
0045   double offset_;
0046   double slope_;
0047 };
0048 
0049 #endif