Skip to content

Commit

Permalink
Merge pull request #44994 from mmusich/mm_dev_improve_DiMuonValidation
Browse files Browse the repository at this point in the history
Improvements for Tracker Alignment `DiMuonValidation`
  • Loading branch information
cmsbuild authored May 21, 2024
2 parents e95546f + 4dcf990 commit c52102f
Show file tree
Hide file tree
Showing 3 changed files with 958 additions and 18 deletions.
19 changes: 11 additions & 8 deletions Alignment/OfflineValidation/interface/DiLeptonVertexHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,23 +71,26 @@ namespace DiLeptonHelp {
if (etaReg == etaRegion::END)
continue;

const auto& toSub = m_etaRegionNames[etaReg];

if (((TObject*)histo)->InheritsFrom("TH2")) {
m_h2_map[etaReg] = fs.make<TH2F>(
(name + "_" + m_etaRegionNames[etaReg]).c_str(),
(title + " (" + m_etaRegionNames[etaReg] + ");" + xTitle + ";" + yTitle + ";" + zTitle).c_str(),
(name + "_" + toSub).c_str(),
(title + " (" + toSub + ");" + xTitle + " (" + toSub + ") ;" + yTitle + " (" + toSub + ");" + zTitle)
.c_str(),
histo->GetNbinsX(),
histo->GetXaxis()->GetXmin(),
histo->GetXaxis()->GetXmax(),
histo->GetNbinsY(),
histo->GetYaxis()->GetXmin(),
histo->GetYaxis()->GetXmax());
} else {
m_h1_map[etaReg] =
fs.make<TH1F>((name + "_" + m_etaRegionNames[etaReg]).c_str(),
(title + " (" + m_etaRegionNames[etaReg] + ");" + xTitle + ";" + yTitle).c_str(),
histo->GetNbinsX(),
histo->GetXaxis()->GetXmin(),
histo->GetXaxis()->GetXmax());
m_h1_map[etaReg] = fs.make<TH1F>(
(name + "_" + toSub).c_str(),
(title + " (" + toSub + ");" + xTitle + " (" + toSub + ") ;" + yTitle + " (" + toSub + ")").c_str(),
histo->GetNbinsX(),
histo->GetXaxis()->GetXmin(),
histo->GetXaxis()->GetXmax());
}
}

Expand Down
Loading

0 comments on commit c52102f

Please sign in to comment.