Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated L1TStage2uGT DQM histogram titles #16537

Merged
merged 1 commit into from
Nov 22, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 15 additions & 15 deletions DQM/L1TMonitor/interface/L1TStage2uGT.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,29 +68,29 @@ class L1TStage2uGT: public DQMEDAnalyzer {
// Booking of histograms for the module

// Algorithm bits
MonitorElement* algoBits_after_bxomask_;
MonitorElement* algoBits_after_prescaler_;
MonitorElement* algoBits_after_mask_;
MonitorElement* algoBits_before_bxmask_;
MonitorElement* algoBits_before_prescale_;
MonitorElement* algoBits_after_prescale_;

// Algorithm bits correlation
MonitorElement* algoBits_after_bxomask_corr_;
MonitorElement* algoBits_after_prescaler_corr_;
MonitorElement* algoBits_after_mask_corr_;
MonitorElement* algoBits_before_bxmask_corr_;
MonitorElement* algoBits_before_prescale_corr_;
MonitorElement* algoBits_after_prescale_corr_;

// Algorithm bits vs global BX number
MonitorElement* algoBits_after_bxomask_bx_global_;
MonitorElement* algoBits_after_prescaler_bx_global_;
MonitorElement* algoBits_after_mask_bx_global_;
MonitorElement* algoBits_before_bxmask_bx_global_;
MonitorElement* algoBits_before_prescale_bx_global_;
MonitorElement* algoBits_after_prescale_bx_global_;

// Algorithm bits vs BX number in event
MonitorElement* algoBits_after_bxomask_bx_inEvt_;
MonitorElement* algoBits_after_prescaler_bx_inEvt_;
MonitorElement* algoBits_after_mask_bx_inEvt_;
MonitorElement* algoBits_before_bxmask_bx_inEvt_;
MonitorElement* algoBits_before_prescale_bx_inEvt_;
MonitorElement* algoBits_after_prescale_bx_inEvt_;

// Algorithm bits vs LS
MonitorElement* algoBits_after_bxomask_lumi_;
MonitorElement* algoBits_after_prescaler_lumi_;
MonitorElement* algoBits_after_mask_lumi_;
MonitorElement* algoBits_before_bxmask_lumi_;
MonitorElement* algoBits_before_prescale_lumi_;
MonitorElement* algoBits_after_prescale_lumi_;

// Prescale factor index
MonitorElement* prescaleFactorSet_;
Expand Down
120 changes: 60 additions & 60 deletions DQM/L1TMonitor/src/L1TStage2uGT.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,66 +46,66 @@ void L1TStage2uGT::bookHistograms(DQMStore::IBooker &ibooker, edm::Run const&, e
ibooker.setCurrentFolder(monitorDir_);

// Algorithm bits
algoBits_after_bxomask_ = ibooker.book1D("algoBits_after_bxomask", "uGT: Algorithm Trigger Bits (after BX mask, before prescale)", numAlgs, -0.5, numAlgs_d-0.5);
algoBits_after_bxomask_->setAxisTitle("Algorithm Trigger Bits (after BX mask, before prescale)", 1);
algoBits_before_bxmask_ = ibooker.book1D("algoBits_before_bxmask", "uGT: Algorithm Trigger Bits (before AlgoBX mask)", numAlgs, -0.5, numAlgs_d-0.5);
algoBits_before_bxmask_->setAxisTitle("Algorithm Trigger Bits (before AlgoBX mask)", 1);

algoBits_after_prescaler_ = ibooker.book1D("algoBits_after_prescaler", "uGT: Algorithm Trigger Bits (after prescale)", numAlgs, -0.5, numAlgs_d-0.5);
algoBits_after_prescaler_->setAxisTitle("Algorithm Trigger Bits (after prescale)", 1);
algoBits_before_prescale_ = ibooker.book1D("algoBits_before_prescale", "uGT: Algorithm Trigger Bits (before prescale)", numAlgs, -0.5, numAlgs_d-0.5);
algoBits_before_prescale_->setAxisTitle("Algorithm Trigger Bits (before prescale)", 1);

algoBits_after_mask_ = ibooker.book1D("algoBits_after_mask", "uGT: Algorithm Trigger Bits (after mask)", numAlgs, -0.5, numAlgs_d-0.5);
algoBits_after_mask_->setAxisTitle("Algorithm Trigger Bits (after mask)", 1);
algoBits_after_prescale_ = ibooker.book1D("algoBits_after_prescale", "uGT: Algorithm Trigger Bits (after prescale)", numAlgs, -0.5, numAlgs_d-0.5);
algoBits_after_prescale_->setAxisTitle("Algorithm Trigger Bits (after prescale)", 1);

// Algorithm bits correlation
algoBits_after_bxomask_corr_ = ibooker.book2D("algoBits_after_bxomask_corr","uGT: Algorithm Trigger Bit Correlation (after BX mask, before prescale)", numAlgs, -0.5, numAlgs_d-0.5, numAlgs, -0.5, numAlgs_d-0.5);
algoBits_after_bxomask_corr_->setAxisTitle("Algorithm Trigger Bits (after BX mask, before prescale)", 1);
algoBits_after_bxomask_corr_->setAxisTitle("Algorithm Trigger Bits (after BX mask, before prescale)", 2);
algoBits_before_bxmask_corr_ = ibooker.book2D("algoBits_before_bxmask_corr","uGT: Algorithm Trigger Bit Correlation (before AlgoBX mask)", numAlgs, -0.5, numAlgs_d-0.5, numAlgs, -0.5, numAlgs_d-0.5);
algoBits_before_bxmask_corr_->setAxisTitle("Algorithm Trigger Bits (before AlgoBX mask)", 1);
algoBits_before_bxmask_corr_->setAxisTitle("Algorithm Trigger Bits (before AlgoBX mask)", 2);

algoBits_after_prescaler_corr_ = ibooker.book2D("algoBits_after_prescaler_corr","uGT: Algorithm Trigger Bit Correlation (after prescale)", numAlgs, -0.5, numAlgs_d-0.5, numAlgs, -0.5, numAlgs_d-0.5);
algoBits_after_prescaler_corr_->setAxisTitle("Algorithm Trigger Bits (after prescale)", 1);
algoBits_after_prescaler_corr_->setAxisTitle("Algorithm Trigger Bits (after prescale)", 2);
algoBits_before_prescale_corr_ = ibooker.book2D("algoBits_before_prescale_corr","uGT: Algorithm Trigger Bit Correlation (before prescale)", numAlgs, -0.5, numAlgs_d-0.5, numAlgs, -0.5, numAlgs_d-0.5);
algoBits_before_prescale_corr_->setAxisTitle("Algorithm Trigger Bits (before prescale)", 1);
algoBits_before_prescale_corr_->setAxisTitle("Algorithm Trigger Bits (before prescale)", 2);

algoBits_after_mask_corr_ = ibooker.book2D("algoBits_after_mask_corr","uGT: Algorithm Trigger Bit Correlation (after mask)", numAlgs, -0.5, numAlgs_d-0.5, numAlgs, -0.5, numAlgs_d-0.5);
algoBits_after_mask_corr_->setAxisTitle("Algorithm Trigger Bits (after mask)", 1);
algoBits_after_mask_corr_->setAxisTitle("Algorithm Trigger Bits (after mask)", 2);
algoBits_after_prescale_corr_ = ibooker.book2D("algoBits_after_prescale_corr","uGT: Algorithm Trigger Bit Correlation (after prescale)", numAlgs, -0.5, numAlgs_d-0.5, numAlgs, -0.5, numAlgs_d-0.5);
algoBits_after_prescale_corr_->setAxisTitle("Algorithm Trigger Bits (after prescale)", 1);
algoBits_after_prescale_corr_->setAxisTitle("Algorithm Trigger Bits (after prescale)", 2);

// Algorithm bits vs global BX number
algoBits_after_bxomask_bx_global_ = ibooker.book2D("algoBits_after_bxomask_bx_global", "uGT: Algorithm Trigger Bits (after BX mask, before prescale) vs. Global BX Number", numBx, 0.5, numBx_d + 0.5, numAlgs, -0.5, numAlgs_d-0.5);
algoBits_after_bxomask_bx_global_->setAxisTitle("Global Bunch Crossing Number", 1);
algoBits_after_bxomask_bx_global_->setAxisTitle("Algorithm Trigger Bits (after BX mask, before prescale)", 2);
algoBits_before_bxmask_bx_global_ = ibooker.book2D("algoBits_before_bxmask_bx_global", "uGT: Algorithm Trigger Bits (before AlgoBX mask) vs. Global BX Number", numBx, 0.5, numBx_d + 0.5, numAlgs, -0.5, numAlgs_d-0.5);
algoBits_before_bxmask_bx_global_->setAxisTitle("Global Bunch Crossing Number", 1);
algoBits_before_bxmask_bx_global_->setAxisTitle("Algorithm Trigger Bits (before AlgoBX mask)", 2);

algoBits_after_prescaler_bx_global_ = ibooker.book2D("algoBits_after_prescaler_bx_global", "uGT: Algorithm Trigger Bits (after prescale) vs. Global BX Number", numBx, 0.5, numBx_d + 0.5, numAlgs, -0.5, numAlgs_d-0.5);
algoBits_after_prescaler_bx_global_->setAxisTitle("Global Bunch Crossing Number", 1);
algoBits_after_prescaler_bx_global_->setAxisTitle("Algorithm Trigger Bits (after prescale)", 2);
algoBits_before_prescale_bx_global_ = ibooker.book2D("algoBits_before_prescale_bx_global", "uGT: Algorithm Trigger Bits (before prescale) vs. Global BX Number", numBx, 0.5, numBx_d + 0.5, numAlgs, -0.5, numAlgs_d-0.5);
algoBits_before_prescale_bx_global_->setAxisTitle("Global Bunch Crossing Number", 1);
algoBits_before_prescale_bx_global_->setAxisTitle("Algorithm Trigger Bits (before prescale)", 2);

algoBits_after_mask_bx_global_ = ibooker.book2D("algoBits_after_mask_bx_global", "uGT: Algorithm Trigger Bits (after mask) vs. Global BX Number", numBx, 0.5, numBx_d + 0.5, numAlgs, -0.5, numAlgs_d-0.5);
algoBits_after_mask_bx_global_->setAxisTitle("Global Bunch Crossing Number", 1);
algoBits_after_mask_bx_global_->setAxisTitle("Algorithm Trigger Bits (after mask)", 2);
algoBits_after_prescale_bx_global_ = ibooker.book2D("algoBits_after_prescale_bx_global", "uGT: Algorithm Trigger Bits (after prescale) vs. Global BX Number", numBx, 0.5, numBx_d + 0.5, numAlgs, -0.5, numAlgs_d-0.5);
algoBits_after_prescale_bx_global_->setAxisTitle("Global Bunch Crossing Number", 1);
algoBits_after_prescale_bx_global_->setAxisTitle("Algorithm Trigger Bits (after prescale)", 2);

// Algorithm bits vs BX number in event
algoBits_after_bxomask_bx_inEvt_ = ibooker.book2D("algoBits_after_bxomask_bx_inEvt", "uGT: Algorithm Trigger Bits (after BX mask, before prescale) vs. BX Number in Event", 5, -2.5, 2.5, numAlgs, -0.5, numAlgs_d-0.5);
algoBits_after_bxomask_bx_inEvt_->setAxisTitle("Bunch Crossing Number in Event", 1);
algoBits_after_bxomask_bx_inEvt_->setAxisTitle("Algorithm Trigger Bits (after BX mask, before prescale)", 2);
algoBits_before_bxmask_bx_inEvt_ = ibooker.book2D("algoBits_before_bxmask_bx_inEvt", "uGT: Algorithm Trigger Bits (before AlgoBX mask) vs. BX Number in Event", 5, -2.5, 2.5, numAlgs, -0.5, numAlgs_d-0.5);
algoBits_before_bxmask_bx_inEvt_->setAxisTitle("Bunch Crossing Number in Event", 1);
algoBits_before_bxmask_bx_inEvt_->setAxisTitle("Algorithm Trigger Bits (before AlgoBX mask)", 2);

algoBits_after_prescaler_bx_inEvt_ = ibooker.book2D("algoBits_after_prescaler_bx_inEvt", "uGT: Algorithm Trigger Bits (after prescale) vs. BX Number in Event", 5, -2.5, 2.5, numAlgs, -0.5, numAlgs_d-0.5);
algoBits_after_prescaler_bx_inEvt_->setAxisTitle("Bunch Crossing Number in Event", 1);
algoBits_after_prescaler_bx_inEvt_->setAxisTitle("Algorithm Trigger Bits (after prescale)", 2);
algoBits_before_prescale_bx_inEvt_ = ibooker.book2D("algoBits_before_prescale_bx_inEvt", "uGT: Algorithm Trigger Bits (before prescale) vs. BX Number in Event", 5, -2.5, 2.5, numAlgs, -0.5, numAlgs_d-0.5);
algoBits_before_prescale_bx_inEvt_->setAxisTitle("Bunch Crossing Number in Event", 1);
algoBits_before_prescale_bx_inEvt_->setAxisTitle("Algorithm Trigger Bits (before prescale)", 2);

algoBits_after_mask_bx_inEvt_ = ibooker.book2D("algoBits_after_mask_bx_inEvt", "uGT: Algorithm Trigger Bits (after mask) vs. BX Number in Event", 5, -2.5, 2.5, numAlgs, -0.5, numAlgs_d-0.5);
algoBits_after_mask_bx_inEvt_->setAxisTitle("Bunch Crossing Number in Event", 1);
algoBits_after_mask_bx_inEvt_->setAxisTitle("Algorithm Trigger Bits (after mask)", 2);
algoBits_after_prescale_bx_inEvt_ = ibooker.book2D("algoBits_after_prescale_bx_inEvt", "uGT: Algorithm Trigger Bits (after prescale) vs. BX Number in Event", 5, -2.5, 2.5, numAlgs, -0.5, numAlgs_d-0.5);
algoBits_after_prescale_bx_inEvt_->setAxisTitle("Bunch Crossing Number in Event", 1);
algoBits_after_prescale_bx_inEvt_->setAxisTitle("Algorithm Trigger Bits (after prescale)", 2);

// Algorithm bits vs LS
algoBits_after_bxomask_lumi_ = ibooker.book2D("algoBits_after_bxomask_lumi","uGT: Algorithm Trigger Bits (after BX mask, before prescale) vs. LS", numLS, 0., numLS_d, numAlgs, -0.5, numAlgs_d-0.5);
algoBits_after_bxomask_lumi_->setAxisTitle("Luminosity Segment", 1);
algoBits_after_bxomask_lumi_->setAxisTitle("Algorithm Trigger Bits (after BX mask, before prescale)", 2);
algoBits_before_bxmask_lumi_ = ibooker.book2D("algoBits_before_bxmask_lumi","uGT: Algorithm Trigger Bits (before AlgoBX mask) vs. LS", numLS, 0., numLS_d, numAlgs, -0.5, numAlgs_d-0.5);
algoBits_before_bxmask_lumi_->setAxisTitle("Luminosity Segment", 1);
algoBits_before_bxmask_lumi_->setAxisTitle("Algorithm Trigger Bits (before AlgoBX mask)", 2);

algoBits_after_prescaler_lumi_ = ibooker.book2D("algoBits_after_prescaler_lumi","uGT: Algorithm Trigger Bits (after prescale) vs. LS", numLS, 0., numLS_d, numAlgs, -0.5, numAlgs_d-0.5);
algoBits_after_prescaler_lumi_->setAxisTitle("Luminosity Segment", 1);
algoBits_after_prescaler_lumi_->setAxisTitle("Algorithm Trigger Bits (after prescale)", 2);
algoBits_before_prescale_lumi_ = ibooker.book2D("algoBits_before_prescale_lumi","uGT: Algorithm Trigger Bits (before prescale) vs. LS", numLS, 0., numLS_d, numAlgs, -0.5, numAlgs_d-0.5);
algoBits_before_prescale_lumi_->setAxisTitle("Luminosity Segment", 1);
algoBits_before_prescale_lumi_->setAxisTitle("Algorithm Trigger Bits (before prescale)", 2);

algoBits_after_mask_lumi_ = ibooker.book2D("algoBits_after_mask_lumi","uGT: Algorithm Trigger Bits (after mask) vs. LS", numLS, 0., numLS_d, numAlgs, -0.5, numAlgs_d-0.5);
algoBits_after_mask_lumi_->setAxisTitle("Luminosity Segment", 1);
algoBits_after_mask_lumi_->setAxisTitle("Algorithm Trigger Bits (after mask)", 2);
algoBits_after_prescale_lumi_ = ibooker.book2D("algoBits_after_prescale_lumi","uGT: Algorithm Trigger Bits (after prescale) vs. LS", numLS, 0., numLS_d, numAlgs, -0.5, numAlgs_d-0.5);
algoBits_after_prescale_lumi_->setAxisTitle("Luminosity Segment", 1);
algoBits_after_prescale_lumi_->setAxisTitle("Algorithm Trigger Bits (after prescale)", 2);

// Prescale factor index
prescaleFactorSet_ = ibooker.book2D("prescaleFactorSet", "uGT: Index of Prescale Factor Set vs. LS", numLS, 0., numLS_d, 25, 0., 25.);
Expand Down Expand Up @@ -146,44 +146,44 @@ void L1TStage2uGT::analyze(const edm::Event& evt, const edm::EventSetup& evtSetu
// Fills algorithm bits histograms
for(int algoBit = 0; algoBit < numAlgs; ++algoBit) {

// Algorithm bits after BX mask, before prescale
// Algorithm bits before AlgoBX mask
if(itr->getAlgoDecisionInitial(algoBit)) {
algoBits_after_bxomask_->Fill(algoBit);
algoBits_after_bxomask_lumi_->Fill(lumi, algoBit);
algoBits_after_bxomask_bx_inEvt_->Fill(ibx, algoBit); // FIXME: or itr->getbxInEventNr()/getbxNr()?
algoBits_after_bxomask_bx_global_->Fill(bx + ibx, algoBit);
algoBits_before_bxmask_->Fill(algoBit);
algoBits_before_bxmask_lumi_->Fill(lumi, algoBit);
algoBits_before_bxmask_bx_inEvt_->Fill(ibx, algoBit); // FIXME: or itr->getbxInEventNr()/getbxNr()?
algoBits_before_bxmask_bx_global_->Fill(bx + ibx, algoBit);

for(int algoBit2 = 0; algoBit2 < numAlgs; ++algoBit2) {
if(itr->getAlgoDecisionInitial(algoBit2)) {
algoBits_after_bxomask_corr_->Fill(algoBit, algoBit2);
algoBits_before_bxmask_corr_->Fill(algoBit, algoBit2);
}
}
}

// Algorithm bits after prescale
// Algorithm bits before prescale
if(itr->getAlgoDecisionInterm(algoBit)) {
algoBits_after_prescaler_->Fill(algoBit);
algoBits_after_prescaler_lumi_->Fill(lumi, algoBit);
algoBits_after_prescaler_bx_inEvt_->Fill(ibx, algoBit);
algoBits_after_prescaler_bx_global_->Fill(bx + ibx, algoBit);
algoBits_before_prescale_->Fill(algoBit);
algoBits_before_prescale_lumi_->Fill(lumi, algoBit);
algoBits_before_prescale_bx_inEvt_->Fill(ibx, algoBit);
algoBits_before_prescale_bx_global_->Fill(bx + ibx, algoBit);

for(int algoBit2 = 0; algoBit2 < numAlgs; ++algoBit2) {
if(itr->getAlgoDecisionInterm(algoBit2)) {
algoBits_after_prescaler_corr_->Fill(algoBit, algoBit2);
algoBits_before_prescale_corr_->Fill(algoBit, algoBit2);
}
}
}

// Algorithm bits after mask
// Algorithm bits after prescale
if(itr->getAlgoDecisionFinal(algoBit)) {
algoBits_after_mask_->Fill(algoBit);
algoBits_after_mask_lumi_->Fill(lumi, algoBit);
algoBits_after_mask_bx_inEvt_->Fill(ibx, algoBit);
algoBits_after_mask_bx_global_->Fill(bx + ibx, algoBit);
algoBits_after_prescale_->Fill(algoBit);
algoBits_after_prescale_lumi_->Fill(lumi, algoBit);
algoBits_after_prescale_bx_inEvt_->Fill(ibx, algoBit);
algoBits_after_prescale_bx_global_->Fill(bx + ibx, algoBit);

for(int algoBit2 = 0; algoBit2 < numAlgs; ++algoBit2) {
if(itr->getAlgoDecisionFinal(algoBit2)) {
algoBits_after_mask_corr_->Fill(algoBit, algoBit2);
algoBits_after_prescale_corr_->Fill(algoBit, algoBit2);
}
}
}
Expand Down