From b7a0c854743bb31d2103d1870497e42fd33f563d Mon Sep 17 00:00:00 2001 From: "jihee.kim" <jihee.kim@anl.gov> Date: Tue, 20 Oct 2020 13:59:29 -0500 Subject: [PATCH] Debugging where it makes error --- ecal/scripts/makeplot.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ecal/scripts/makeplot.C b/ecal/scripts/makeplot.C index f3772d26..df461a19 100644 --- a/ecal/scripts/makeplot.C +++ b/ecal/scripts/makeplot.C @@ -72,7 +72,7 @@ int makeplot(double e_start = 1.0, double e_end = 1.0, const char* input_fname = TCanvas *c7 = new TCanvas("c7", "c7", 500, 500); TCanvas *c8 = new TCanvas("c8", "c8", 500, 500); TCanvas *c9 = new TCanvas("c9", "c9", 500, 500); - + cout << "Before Histogram" << endl; // Declare histograms TH1D *h1 = new TH1D("h1","Scattering Angle(#theta)", 100,130.0,180.0); TH1D *h2 = new TH1D("h2","Pseudo-rapidity(#eta)", 100,-5.0,0.0); @@ -106,7 +106,7 @@ int makeplot(double e_start = 1.0, double e_end = 1.0, const char* input_fname = for (int ievent = 0; ievent < nentries; ievent++) { t->GetEntry(ievent); - + cout << "Inside loop event by event" << endl; Int_t ncluster = EcalClusters_; Int_t nreconhits = RecoEcalHits_; @@ -149,7 +149,7 @@ int makeplot(double e_start = 1.0, double e_end = 1.0, const char* input_fname = for(int ireconhit=0; ireconhit < nreconhits; ireconhit++) h9->Fill(rec_x_pos[ireconhit],rec_y_pos[ireconhit], 1.0); } - + cout << "Before Drawing" << endl; // Drawing and Saving figures c1->cd(); h1->SetLineColor(kBlue); -- GitLab