File indexing completed on 2023-03-17 10:58:35
0001
0002
0003
0004
0005 #include "DQMOffline/Trigger/interface/HLTInclusiveVBFClient.h"
0006
0007 using namespace std;
0008 using namespace edm;
0009
0010 HLTInclusiveVBFClient::HLTInclusiveVBFClient(const edm::ParameterSet& iConfig) : conf_(iConfig) {
0011
0012 dbe_ = Service<DQMStore>().operator->();
0013
0014
0015 if (!dbe_) {
0016 edm::LogError("HLTInclusiveVBFClient")
0017 << "unable to get DQMStore service, upshot is no client histograms will be made";
0018 }
0019
0020
0021 debug_ = false;
0022 verbose_ = false;
0023
0024
0025 processname_ = iConfig.getParameter<std::string>("processname");
0026
0027
0028 hltTag_ = iConfig.getParameter<std::string>("hltTag");
0029 if (debug_)
0030 std::cout << hltTag_ << std::endl;
0031
0032
0033 dirName_ = iConfig.getParameter<std::string>("DQMDirName");
0034 if (dbe_)
0035 dbe_->setCurrentFolder(dirName_);
0036 }
0037
0038 HLTInclusiveVBFClient::~HLTInclusiveVBFClient() = default;
0039
0040 void HLTInclusiveVBFClient::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup) {}
0041
0042 void HLTInclusiveVBFClient::endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) {
0043 runClient_();
0044 }
0045
0046 void HLTInclusiveVBFClient::runClient_() {
0047 if (!dbe_)
0048 return;
0049 dbe_->setCurrentFolder(dirName_);
0050
0051 LogDebug("HLTInclusiveVBFClient") << "runClient" << std::endl;
0052 if (debug_)
0053 std::cout << "runClient" << std::endl;
0054 }
0055
0056 #include "FWCore/Framework/interface/MakerMacros.h"
0057 DEFINE_FWK_MODULE(HLTInclusiveVBFClient);