Skip to content
Snippets Groups Projects
Commit b7a0c854 authored by Jihee Kim's avatar Jihee Kim
Browse files

Debugging where it makes error

parent fb9fadff
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !10. Comments created here will be created in the context of that merge request.
...@@ -72,7 +72,7 @@ int makeplot(double e_start = 1.0, double e_end = 1.0, const char* input_fname = ...@@ -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 *c7 = new TCanvas("c7", "c7", 500, 500);
TCanvas *c8 = new TCanvas("c8", "c8", 500, 500); TCanvas *c8 = new TCanvas("c8", "c8", 500, 500);
TCanvas *c9 = new TCanvas("c9", "c9", 500, 500); TCanvas *c9 = new TCanvas("c9", "c9", 500, 500);
cout << "Before Histogram" << endl;
// Declare histograms // Declare histograms
TH1D *h1 = new TH1D("h1","Scattering Angle(#theta)", 100,130.0,180.0); 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); 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 = ...@@ -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++) for (int ievent = 0; ievent < nentries; ievent++)
{ {
t->GetEntry(ievent); t->GetEntry(ievent);
cout << "Inside loop event by event" << endl;
Int_t ncluster = EcalClusters_; Int_t ncluster = EcalClusters_;
Int_t nreconhits = RecoEcalHits_; Int_t nreconhits = RecoEcalHits_;
...@@ -149,7 +149,7 @@ int makeplot(double e_start = 1.0, double e_end = 1.0, const char* input_fname = ...@@ -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++) for(int ireconhit=0; ireconhit < nreconhits; ireconhit++)
h9->Fill(rec_x_pos[ireconhit],rec_y_pos[ireconhit], 1.0); h9->Fill(rec_x_pos[ireconhit],rec_y_pos[ireconhit], 1.0);
} }
cout << "Before Drawing" << endl;
// Drawing and Saving figures // Drawing and Saving figures
c1->cd(); c1->cd();
h1->SetLineColor(kBlue); h1->SetLineColor(kBlue);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment