Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef HLTElectronMissingHitsFilter_h
0002 #define HLTElectronMissingHitsFilter_h
0003 
0004 /** \class HLTElectronMissingHitsFilter
0005  *
0006  *  \author Matteo Sani (UCSD)
0007  */
0008 
0009 namespace edm {
0010   class ConfigurationDescriptions;
0011 }
0012 
0013 #include "HLTrigger/HLTcore/interface/HLTFilter.h"
0014 #include "DataFormats/EgammaCandidates/interface/ElectronFwd.h"
0015 #include "DataFormats/HLTReco/interface/TriggerFilterObjectWithRefs.h"
0016 
0017 class HLTElectronMissingHitsFilter : public HLTFilter {
0018 public:
0019   explicit HLTElectronMissingHitsFilter(const edm::ParameterSet&);
0020   ~HLTElectronMissingHitsFilter() override;
0021   bool hltFilter(edm::Event&,
0022                  const edm::EventSetup&,
0023                  trigger::TriggerFilterObjectWithRefs& filterproduct) const override;
0024   static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0025 
0026 private:
0027   // input tag and token for the RecoCandidates from the previous filter
0028   edm::InputTag candTag_;
0029   edm::EDGetTokenT<trigger::TriggerFilterObjectWithRefs> candToken_;
0030   // input tag and token for the producer of electrons
0031   edm::InputTag electronTag_;
0032   edm::EDGetTokenT<reco::ElectronCollection> electronToken_;
0033 
0034   int barrelcut_;  // barrel cut
0035   int endcapcut_;  // endcap cut
0036   int ncandcut_;   // number of electrons required
0037 };
0038 
0039 #endif