Skip to content

Commit b145ff0

Browse files
committed
Fix barrel, overlap, and endcap histograms filling criteria
1 parent 4ed4bfd commit b145ff0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Validation/RecoMuon/plugins/MuonTrackValidator.cc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -639,18 +639,18 @@ void MuonTrackValidator::analyze(const edm::Event& event, const edm::EventSetup&
639639

640640
// histos for efficiency vs phi
641641
fillPlotNoFlow(h_simulphi[w], TPphi);
642-
if (xTPeta < 0.9) {
642+
if (absEta < 0.9) {
643643
fillPlotNoFlow(h_simulphiB[w], TPphi);
644-
} else if (xTPeta < 1.2) {
644+
} else if (absEta < 1.2) {
645645
fillPlotNoFlow(h_simulphiO[w], TPphi);
646646
} else {
647647
fillPlotNoFlow(h_simulphiE[w], TPphi);
648648
}
649649
if (TP_is_matched) {
650650
fillPlotNoFlow(h_assocphi[w], TPphi);
651-
if (xTPeta < 0.9) {
651+
if (absEta < 0.9) {
652652
fillPlotNoFlow(h_assocphiB[w], TPphi);
653-
} else if (xTPeta < 1.2) {
653+
} else if (absEta < 1.2) {
654654
fillPlotNoFlow(h_assocphiO[w], TPphi);
655655
} else {
656656
fillPlotNoFlow(h_assocphiE[w], TPphi);
@@ -671,18 +671,18 @@ void MuonTrackValidator::analyze(const edm::Event& event, const edm::EventSetup&
671671

672672
// histos for efficiency vs pT
673673
fillPlotNoFlow(h_simulpT[w], xTPpt);
674-
if (xTPeta < 0.9) {
674+
if (absEta < 0.9) {
675675
fillPlotNoFlow(h_simulpTB[w], xTPpt);
676-
} else if (xTPeta < 1.2) {
676+
} else if (absEta < 1.2) {
677677
fillPlotNoFlow(h_simulpTO[w], xTPpt);
678678
} else {
679679
fillPlotNoFlow(h_simulpTE[w], xTPpt);
680680
}
681681
if (TP_is_matched) {
682682
fillPlotNoFlow(h_assocpT[w], xTPpt);
683-
if (xTPeta < 0.9) {
683+
if (absEta < 0.9) {
684684
fillPlotNoFlow(h_assocpTB[w], xTPpt);
685-
} else if (xTPeta < 1.2) {
685+
} else if (absEta < 1.2) {
686686
fillPlotNoFlow(h_assocpTO[w], xTPpt);
687687
} else {
688688
fillPlotNoFlow(h_assocpTE[w], xTPpt);

0 commit comments

Comments
 (0)