From ca25fef2c8d89cd10bb13f396f9c597c38a6e97c Mon Sep 17 00:00:00 2001
From: "jihee.kim" <jihee.kim@anl.gov>
Date: Tue, 20 Oct 2020 14:15:48 -0500
Subject: [PATCH] Maybe int size problem

---
 ecal/scripts/makeplot.C | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ecal/scripts/makeplot.C b/ecal/scripts/makeplot.C
index 11a66bfa..ef9491a0 100644
--- a/ecal/scripts/makeplot.C
+++ b/ecal/scripts/makeplot.C
@@ -41,7 +41,7 @@ int makeplot(const char* input_fname = "sim_output/sim_emcal_electrons_output.ro
   t->SetBranchStatus("RecoEcalHits", 1);
   t->SetBranchAddress("RecoEcalHits", &RecoEcalHits_);
 
-  const Int_t kMaxEcalClusters = 1000000;
+  const Int_t kMaxEcalClusters = 100000;
   Double_t cluster_x_pos[kMaxEcalClusters];
   Double_t cluster_y_pos[kMaxEcalClusters];
   Double_t cluster_z_pos[kMaxEcalClusters];
@@ -55,7 +55,7 @@ int makeplot(const char* input_fname = "sim_output/sim_emcal_electrons_output.ro
   t->SetBranchAddress("EcalClusters.position.z",cluster_z_pos);
   t->SetBranchAddress("EcalClusters.energy",cluster_energy);
 
-  const Int_t kMaxRecoEcalHits = 1000000;
+  const Int_t kMaxRecoEcalHits = 100000;
   Double_t rec_x_pos[kMaxRecoEcalHits];
   Double_t rec_y_pos[kMaxRecoEcalHits];
   Double_t rec_energy[kMaxRecoEcalHits];
-- 
GitLab