Commit 07536e92 authored by Paul Schütze's avatar Paul Schütze
Browse files

cluster size: remove integer ceiling

parent f4077280
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -131,7 +131,7 @@ void DetectorHistogrammerModule::initialize() {
        "seed_charge_map", seed_charge_map_title.c_str(), inpixel_bins.x(), 0., pitch_x, inpixel_bins.y(), 0., pitch_y);

    // Create cluster size plots, preventing unphysically low bin numbers
    int max_cluster_size = std::max(10, (xpixels * ypixels + 9) / 10);
    int max_cluster_size = std::max(10, xpixels * ypixels / 10);
    std::string cluster_size_title = "Cluster size (" + detector_->getName() + ");cluster size [px];clusters";
    cluster_size =
        CreateHistogram<TH1D>("cluster_size", cluster_size_title.c_str(), max_cluster_size, 0.5, max_cluster_size + 0.5);