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

CSC L1T DQM 2D summary plots: Flip the two endcaps on the y-axis #36328

Merged
merged 1 commit into from
Dec 2, 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
2 changes: 1 addition & 1 deletion DQM/L1TMonitor/src/L1TStage2Shower.cc
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void L1TStage2Shower::analyze(const edm::Event& e, const edm::EventSetup& c) {
int ring = detId.ring();
int chamber = detId.chamber();
int sr = histIndexCSC.at({station, ring});
if (endcap == -1)
if (endcap == 1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By the way, since endcap is only used to check whether it is equal 1 or not, a further simplification could be replacing L95 with

    int endcap = detId.endcap();

sr = 17 - sr;
float evt_wgt = (station > 1 && ring == 1) ? 0.5 : 1.0;

Expand Down
2 changes: 1 addition & 1 deletion DQM/L1TMonitor/src/L1TdeCSCTPG.cc
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ void L1TdeCSCTPG::analyze(const edm::Event& e, const edm::EventSetup& c) {
int chamber = detid.chamber();

int sr = histIndexCSC.at({stat, ring});
if (endc == 2)
if (endc == 1)
sr = 17 - sr;

// ALCT analysis
Expand Down