Skip to content

Commit

Permalink
Phase1PixelROCMaps: if (max == min) impose the range to be the same a…
Browse files Browse the repository at this point in the history
…s it was a real diff
  • Loading branch information
mmusich committed Jul 4, 2021
1 parent cbfe3e2 commit 1d127cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions DQM/TrackerRemapper/src/Phase1PixelROCMaps.cc
Expand Up @@ -363,6 +363,9 @@ void PixelROCMapHelper::dress_plot(TPad*& canv,
int nb = 256;
h->SetContour(nb);
TColor::CreateGradientColorTable(Number, Stops, Red, Green, Blue, nb);
// if max == min impose the range to be the same as it was a real diff
if (max == min)
h->GetZaxis()->SetRangeUser(-1., 1.);
}

h->SetMarkerSize(0.7);
Expand Down

0 comments on commit 1d127cf

Please sign in to comment.