File indexing completed on 2021-02-14 13:13:24
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::beginRun(const edm::Run& r, const edm::EventSetup& context) {}
0041
0042 void HLTInclusiveVBFClient::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup) {}
0043
0044 void HLTInclusiveVBFClient::endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) {
0045 runClient_();
0046 }
0047
0048 void HLTInclusiveVBFClient::endRun(const edm::Run& r, const edm::EventSetup& context) {}
0049
0050 void HLTInclusiveVBFClient::runClient_() {
0051 if (!dbe_)
0052 return;
0053 dbe_->setCurrentFolder(dirName_);
0054
0055 LogDebug("HLTInclusiveVBFClient") << "runClient" << std::endl;
0056 if (debug_)
0057 std::cout << "runClient" << std::endl;
0058 }