Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
/*
 *  \author N. Srimanobhas
 */

#include "DQMOffline/Trigger/interface/HLTInclusiveVBFClient.h"

using namespace std;
using namespace edm;

HLTInclusiveVBFClient::HLTInclusiveVBFClient(const edm::ParameterSet& iConfig) : conf_(iConfig) {
  //
  dbe_ = Service<DQMStore>().operator->();

  //
  if (!dbe_) {
    edm::LogError("HLTInclusiveVBFClient")
        << "unable to get DQMStore service, upshot is no client histograms will be made";
  }

  //
  debug_ = false;
  verbose_ = false;

  //
  processname_ = iConfig.getParameter<std::string>("processname");

  //
  hltTag_ = iConfig.getParameter<std::string>("hltTag");
  if (debug_)
    std::cout << hltTag_ << std::endl;

  //
  dirName_ = iConfig.getParameter<std::string>("DQMDirName");
  if (dbe_)
    dbe_->setCurrentFolder(dirName_);
}

HLTInclusiveVBFClient::~HLTInclusiveVBFClient() = default;

void HLTInclusiveVBFClient::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup) {}

void HLTInclusiveVBFClient::endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) {
  runClient_();
}

void HLTInclusiveVBFClient::runClient_() {
  if (!dbe_)
    return;  //we dont have the DQMStore so we cant do anything
  dbe_->setCurrentFolder(dirName_);

  LogDebug("HLTInclusiveVBFClient") << "runClient" << std::endl;
  if (debug_)
    std::cout << "runClient" << std::endl;
}

#include "FWCore/Framework/interface/MakerMacros.h"
DEFINE_FWK_MODULE(HLTInclusiveVBFClient);