45 vector<string> inputMEnames =
pset.getUntrackedParameter<vector<string> >(
"InputMEnames");
46 vector<string> inputLabels =
pset.getUntrackedParameter<vector<string> >(
"InputLabels");
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;
61 labels.push_back(inputLabels[
i]);
67 string outputMEname =
pset.getUntrackedParameter<
string>(
"OutputMEname");
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());
99 output->SetOption(
"colztexte");
100 for (
size_t i = 0;
i <
histos.size();
i++) {
101 for (
int j = 1;
j <=
histos[0]->GetNbinsX();
j++) {
107 ibooker_.book2D(outputMEname,
output);