Skip to content

Commit

Permalink
Make summary histogram title configurable for RegionalMuonCand compar…
Browse files Browse the repository at this point in the history
…ison
  • Loading branch information
thomreis committed Nov 15, 2016
1 parent be8f02f commit 2716967
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions DQM/L1TMonitor/interface/L1TStage2RegionalMuonCandComp.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class L1TStage2RegionalMuonCandComp : public DQMEDAnalyzer {
std::string monitorDir;
std::string muonColl1Title;
std::string muonColl2Title;
std::string summaryTitle;
bool ignoreBadTrkAddr;
bool verbose;

Expand Down
2 changes: 2 additions & 0 deletions DQM/L1TMonitor/python/L1TStage2uGMT_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
monitorDir = cms.untracked.string("L1T2016/L1TStage2uGMT/BMTFoutput_vs_uGMTinput"),
regionalMuonCollection1Title = cms.untracked.string("BMTF output data"),
regionalMuonCollection2Title = cms.untracked.string("uGMT input data from BMTF"),
summaryTitle = cms.untracked.string("Summary of comparison between BMTF output muons and uGMT input muons from BMTF"),
verbose = cms.untracked.bool(False),
)

Expand All @@ -57,6 +58,7 @@
monitorDir = cms.untracked.string("L1T2016/L1TStage2uGMT/EMTFoutput_vs_uGMTinput"),
regionalMuonCollection1Title = cms.untracked.string("EMTF output data"),
regionalMuonCollection2Title = cms.untracked.string("uGMT input data from EMTF"),
summaryTitle = cms.untracked.string("Summary of comparison between EMTF output muons and uGMT input muons from EMTF"),
verbose = cms.untracked.bool(False),
)

1 change: 1 addition & 0 deletions DQM/L1TMonitor/python/L1TdeStage2BMTF_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
monitorDir = cms.untracked.string("L1T2016EMU/L1TdeStage2BMTF"),
regionalMuonCollection1Title = cms.untracked.string("BMTF data"),
regionalMuonCollection2Title = cms.untracked.string("BMTF emulator"),
summaryTitle = cms.untracked.string("Summary of comparison between BMTF muons and BMTF emulator muons"),
verbose = cms.untracked.bool(False),
)

1 change: 1 addition & 0 deletions DQM/L1TMonitor/python/L1TdeStage2EMTF_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
monitorDir = cms.untracked.string("L1T2016EMU/L1TdeStage2EMTF"),
regionalMuonCollection1Title = cms.untracked.string("EMTF data"),
regionalMuonCollection2Title = cms.untracked.string("EMTF emulator"),
summaryTitle = cms.untracked.string("Summary of comparison between EMTF muons and EMTF emulator muons"),
ignoreBadTrackAddress = cms.untracked.bool(True),
verbose = cms.untracked.bool(False),
)
Expand Down
1 change: 1 addition & 0 deletions DQM/L1TMonitor/python/L1TdeStage2OMTF_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
monitorDir = cms.untracked.string("L1T2016EMU/L1TdeStage2OMTF"),
regionalMuonCollection1Title = cms.untracked.string("uGMT input data from OMTF"),
regionalMuonCollection2Title = cms.untracked.string("OMTF emulator"),
summaryTitle = cms.untracked.string("Summary of comparison between uGMT input muons from OMTF and OMTF emulator muons"),
ignoreBadTrackAddress = cms.untracked.bool(True),
verbose = cms.untracked.bool(False),
)
Expand Down
3 changes: 2 additions & 1 deletion DQM/L1TMonitor/src/L1TStage2RegionalMuonCandComp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ L1TStage2RegionalMuonCandComp::L1TStage2RegionalMuonCandComp(const edm::Paramete
monitorDir(ps.getUntrackedParameter<std::string>("monitorDir", "")),
muonColl1Title(ps.getUntrackedParameter<std::string>("regionalMuonCollection1Title", "Regional muon collection 1")),
muonColl2Title(ps.getUntrackedParameter<std::string>("regionalMuonCollection2Title", "Regional muon collection 2")),
summaryTitle(ps.getUntrackedParameter<std::string>("summaryTitle", "Summary")),
ignoreBadTrkAddr(ps.getUntrackedParameter<bool>("ignoreBadTrackAddress", false)),
verbose(ps.getUntrackedParameter<bool>("verbose", false))
{
Expand All @@ -28,7 +29,7 @@ void L1TStage2RegionalMuonCandComp::bookHistograms(DQMStore::IBooker& ibooker, c
// Subsystem Monitoring and Muon Output
ibooker.setCurrentFolder(monitorDir);

summary = ibooker.book1D("summary", ("Summary"+trkAddrIgnoreText).c_str(), 17, 1, 18); // range to match bin numbering
summary = ibooker.book1D("summary", (summaryTitle+trkAddrIgnoreText).c_str(), 17, 1, 18); // range to match bin numbering
summary->setBinLabel(BXRANGEGOOD, "BX range match", 1);
summary->setBinLabel(BXRANGEBAD, "BX range mismatch", 1);
summary->setBinLabel(NMUONGOOD, "muon collection size match", 1);
Expand Down

0 comments on commit 2716967

Please sign in to comment.