Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:49:44

0001 #ifndef HLTBool_h
0002 #define HLTBool_h
0003 
0004 /** \class HLTBool
0005  *
0006  *  
0007  *  This class is an HLTFilter (-> EDFilter) returning always the same
0008  *  configurable Boolean value (good for tests)
0009  *
0010  *
0011  *  \author Martin Grunewald
0012  *
0013  */
0014 
0015 #include "FWCore/Framework/interface/Event.h"
0016 #include "FWCore/Framework/interface/global/EDFilter.h"
0017 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0018 
0019 namespace edm {
0020   class ConfigurationDescriptions;
0021 }
0022 
0023 //
0024 // class declaration
0025 //
0026 
0027 class HLTBool : public edm::global::EDFilter<> {
0028 public:
0029   explicit HLTBool(const edm::ParameterSet &);
0030   ~HLTBool() override;
0031   static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);
0032   bool filter(edm::StreamID, edm::Event &, edm::EventSetup const &) const final;
0033 
0034 private:
0035   /// boolean result
0036   bool result_;
0037 };
0038 
0039 #endif  //HLTBool_h