CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/HLTrigger/HLTfilters/src/HLTBool.cc

Go to the documentation of this file.
00001 
00013 #include "HLTrigger/HLTfilters/interface/HLTBool.h"
00014 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00015 #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
00016 #include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
00017 
00018 //
00019 // constructors and destructor
00020 //
00021 HLTBool::HLTBool(const edm::ParameterSet& iConfig) :
00022   result_(iConfig.getParameter<bool> ("result"))
00023 {
00024   LogDebug("HLTBool") << " configured result is: " << result_;
00025 }
00026 
00027 HLTBool::~HLTBool()
00028 {
00029 }
00030 
00031 void
00032 HLTBool::fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
00033   edm::ParameterSetDescription desc;
00034   desc.add<bool>("result", false);
00035   descriptions.add("hltBool", desc);
00036 }
00037 
00038 //
00039 // member functions
00040 //
00041 
00042 // ------------ method called to produce the data  ------------
00043 bool
00044 HLTBool::filter(edm::Event& iEvent, const edm::EventSetup& iSetup)
00045 {
00046    return result_;
00047 }