Skip to content
Open
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
4 changes: 2 additions & 2 deletions include/rarexsec/plot/DetectorDisplay.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef DETECTORDISPLAY_H
#define DETECTORDISPLAY_H

#include <algorithm>
#include <cmath>
#include <memory>
#include <string>
Expand All @@ -24,7 +25,6 @@ class DetectorDisplay : public IEventDisplay {
protected:
void draw(TCanvas &canvas) override {
const int bin_offset = 1;
const float threshold = 4;
const float min_val = 1;
const float max_val = 1000;

Expand All @@ -36,7 +36,7 @@ class DetectorDisplay : public IEventDisplay {
for (int c = 0; c < dim; ++c) {
float v = data_[r * dim + c];
hist_->SetBinContent(c + bin_offset, r + bin_offset,
v > threshold ? v : min_val);
std::max(v, min_val));
}
}

Expand Down