Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 /** \class HLTBool
0002  *
0003  * See header file for documentation
0004  *
0005  *
0006  *  \author Martin Grunewald
0007  *
0008  */
0009 
0010 #include "HLTBool.h"
0011 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0012 #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
0013 #include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
0014 
0015 //
0016 // constructors and destructor
0017 //
0018 HLTBool::HLTBool(const edm::ParameterSet& iConfig) : result_(iConfig.getParameter<bool>("result")) {
0019   LogDebug("HLTBool") << " configured result is: " << result_;
0020 }
0021 
0022 HLTBool::~HLTBool() = default;
0023 
0024 void HLTBool::fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
0025   edm::ParameterSetDescription desc;
0026   desc.add<bool>("result", false);
0027   descriptions.add("hltBool", desc);
0028 }
0029 
0030 //
0031 // member functions
0032 //
0033 
0034 // ------------ method called to produce the data  ------------
0035 bool HLTBool::filter(edm::StreamID, edm::Event& event, edm::EventSetup const& setup) const { return result_; }