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

Add 2D TPG data-vs-emulation summary plots for L1T CSC DQM #36226

Merged
merged 1 commit into from
Nov 24, 2021
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 25 additions & 8 deletions DQM/L1TMonitor/interface/L1TdeCSCTPG.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,9 @@ class L1TdeCSCTPG : public DQMEDAnalyzer {
void analyze(const edm::Event&, const edm::EventSetup&) override;

private:
// CLCTs and LCTs are considered duplicates if there is an earlier copy
bool isDuplicateCLCT(const CSCCLCTDigi& clct, const std::vector<CSCCLCTDigi>& container) const;
bool isDuplicateLCT(const CSCCorrelatedLCTDigi& lct, const std::vector<CSCCorrelatedLCTDigi>& container) const;

// all properties are the same, except for the BX which is off by +1
bool isCLCTOffByOneBX(const CSCCLCTDigi& lhs, const CSCCLCTDigi& rhs) const;
bool isLCTOffByOneBX(const CSCCorrelatedLCTDigi& lhs, const CSCCorrelatedLCTDigi& rhs) const;
// customized equality function
bool areSameCLCTs(const CSCCLCTDigi& lhs, const CSCCLCTDigi& rhs) const;
bool areSameLCTs(const CSCCorrelatedLCTDigi& lhs, const CSCCorrelatedLCTDigi& rhs) const;

edm::EDGetTokenT<CSCALCTDigiCollection> dataALCT_token_;
edm::EDGetTokenT<CSCALCTDigiCollection> emulALCT_token_;
Expand Down Expand Up @@ -61,21 +57,42 @@ class L1TdeCSCTPG : public DQMEDAnalyzer {
/*
When set to True, we assume that the data comes from
the Building 904 CSC test-stand. This test-stand is a single
ME1/1 chamber or ME4/2 chamber.
ME1/1 chamber, ME2/1, or ME4/2 chamber.
*/
bool useB904_;
bool useB904ME11_;
bool useB904ME21_;
bool useB904ME234s2_;

bool isRun3_;
/*
By default the DQM will make 2D summary plots. Do you also want
the very large number of 1D plots? Would recommend to keep it to
true so that it may help in the debugging process (S.D.)
*/
bool make1DPlots_;

// check the data CLCTs and emul CLCTs against emul preCLCTs
bool preTriggerAnalysis_;

// first key is the chamber number
// second key is the variable
std::map<uint32_t, std::map<std::string, MonitorElement*> > chamberHistos;

// 2D plots
MonitorElement* lctDataSummary_denom_;
MonitorElement* lctDataSummary_num_;
MonitorElement* alctDataSummary_denom_;
MonitorElement* alctDataSummary_num_;
MonitorElement* clctDataSummary_denom_;
MonitorElement* clctDataSummary_num_;

MonitorElement* lctEmulSummary_denom_;
MonitorElement* lctEmulSummary_num_;
MonitorElement* alctEmulSummary_denom_;
MonitorElement* alctEmulSummary_num_;
MonitorElement* clctEmulSummary_denom_;
MonitorElement* clctEmulSummary_num_;
};

#endif
5 changes: 5 additions & 0 deletions DQM/L1TMonitor/python/L1TdeCSCTPG_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,15 @@
lctNBin = cms.vuint32(16, 116, 224, 16, 2, 448, 896, 5, 16, 2, 2),
lctMinBin = cms.vdouble(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
lctMaxBin = cms.vdouble(16, 116, 224, 16, 2, 448, 896, 5, 16, 2, 2),
# options when running on test data from the B904 test-stands
useB904ME11 = cms.bool(False),
useB904ME21 = cms.bool(False),
useB904ME234s2 = cms.bool(False),
isRun3 = cms.bool(False),
# B y default the DQM will make 2D summary plots. Do you also want
# the very large number of 1D plots? Would recommend to keep it to
# true so that it may help in the debugging process (S.D.)
make1DPlots = cms.bool(True),
preTriggerAnalysis = cms.bool(False)
)

Expand Down
Loading