34 : myDQMrootFolder(pset.getUntrackedParameter<
string>(
"MyDQMrootFolder")),
47 if (inputMEnames.size() != inputLabels.size()) {
48 LogDebug(
"HLTriggerOfflineHeavyFlavor") <<
"Number of labels must match the histos[0]ber of InputMEnames" << endl;
53 for (
size_t i = 0;
i < inputMEnames.size();
i++) {
57 LogDebug(
"HLTriggerOfflineHeavyFlavor") <<
"Could not find ME: " << MEname << endl;
60 histos.push_back(ME->
getTH1());
61 labels.push_back(inputLabels[
i]);
71 if (string::npos != slashPos) {
72 outputDir +=
"/" + outputMEname.substr(0, slashPos);
73 outputMEname.erase(0, slashPos + 1);
78 if (histos[0]->GetXaxis()->GetXbins()->GetSize() == 0) {
79 output =
new TH2F(outputMEname.c_str(),
81 histos[0]->GetXaxis()->GetNbins(),
82 histos[0]->GetXaxis()->GetXmin(),
83 histos[0]->GetXaxis()->GetXmax(),
88 output =
new TH2F(outputMEname.c_str(),
90 histos[0]->GetXaxis()->GetNbins(),
91 histos[0]->GetXaxis()->GetXbins()->GetArray(),
96 output->SetTitle(outputMEname.c_str());
97 output->SetXTitle(histos[0]->GetXaxis()->GetTitle());
98 output->SetStats(kFALSE);
99 output->SetOption(
"colztexte");
100 for (
size_t i = 0;
i < histos.size();
i++) {
101 for (
int j = 1;
j <= histos[0]->GetNbinsX();
j++) {
102 output->SetBinContent(
j,
i + 1, histos[
i]->GetBinContent(
j));
103 output->SetBinError(
j,
i + 1, histos[
i]->GetBinError(
j));
105 output->GetYaxis()->SetBinLabel(
i + 1, labels[
i]);
107 ibooker_.
book2D(outputMEname, output);
T getUntrackedParameter(std::string const &, T const &) const
virtual void setCurrentFolder(std::string const &fullpath)
#define DEFINE_FWK_MODULE(type)
std::vector< ParameterSet > VParameterSet
virtual MonitorElement * get(std::string const &fullpath) const
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
const VParameterSet plots
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
void makePlot(const ParameterSet &pset, DQMStore::IBooker &, DQMStore::IGetter &)
virtual TH1 * getTH1() const
PlotCombiner(const edm::ParameterSet &pset)