32 : myDQMrootFolder(
pset.getUntrackedParameter<
string>(
"MyDQMrootFolder")),
43 vector<string> inputMEnames =
pset.getUntrackedParameter<vector<string> >(
"InputMEnames");
44 vector<string> inputLabels =
pset.getUntrackedParameter<vector<string> >(
"InputLabels");
45 if (inputMEnames.size() != inputLabels.size()) {
46 LogDebug(
"HLTriggerOfflineHeavyFlavor") <<
"Number of labels must match the histos[0]ber of InputMEnames" << endl;
51 for (
size_t i = 0;
i < inputMEnames.size();
i++) {
55 LogDebug(
"HLTriggerOfflineHeavyFlavor") <<
"Could not find ME: " << MEname << endl;
59 labels.push_back(inputLabels[
i]);
65 string outputMEname =
pset.getUntrackedParameter<
string>(
"OutputMEname");
69 if (string::npos != slashPos) {
70 outputDir +=
"/" + outputMEname.substr(0, slashPos);
71 outputMEname.erase(0, slashPos + 1);
76 if (
histos[0]->GetXaxis()->GetXbins()->GetSize() == 0) {
77 output =
new TH2F(outputMEname.c_str(),
79 histos[0]->GetXaxis()->GetNbins(),
80 histos[0]->GetXaxis()->GetXmin(),
81 histos[0]->GetXaxis()->GetXmax(),
86 output =
new TH2F(outputMEname.c_str(),
88 histos[0]->GetXaxis()->GetNbins(),
89 histos[0]->GetXaxis()->GetXbins()->GetArray(),
94 output->SetTitle(outputMEname.c_str());
97 output->SetOption(
"colztexte");
98 for (
size_t i = 0;
i <
histos.size();
i++) {
99 for (
int j = 1;
j <=
histos[0]->GetNbinsX();
j++) {
virtual void setCurrentFolder(std::string const &fullpath)
#define DEFINE_FWK_MODULE(type)
std::vector< ParameterSet > VParameterSet
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())
virtual MonitorElement * get(std::string const &fullpath) const
void makePlot(const ParameterSet &pset, DQMStore::IBooker &, DQMStore::IGetter &)
def makePlot(name, x, ys, ytitle, title=None, legends=None, ideal1=None, bounds={}, legendYmax=0.99)
PlotCombiner(const edm::ParameterSet &pset)