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

Checking. Dropped out energy range

parent b7a0c854
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,8 @@ popd
pwd
mkdir -p results
root -b -q "ecal/scripts/makeplot.C(${E_start}, ${E_end}, \"${JUGGLER_DETECTOR}/${JUGGLER_REC_FILE}\")"
root -b -q "ecal/scripts/makeplot.C(\"${JUGGLER_DETECTOR}/${JUGGLER_REC_FILE}\")"
#root -b -q "ecal/scripts/makeplot.C(${E_start}, ${E_end}, \"${JUGGLER_DETECTOR}/${JUGGLER_REC_FILE}\")"
#root -b -q "ecal/scripts/makeplot.C(${E_start}, ${E_end}, \"${JUGGLER_DETECTOR}/${JUGGLER_REC_FILE}\", \"results/${JUGGLER_FILE_NAME_TAG}.txt\")"
#mkdir -p sim_output
......
......@@ -3,7 +3,8 @@
// Plot variables
////////////////////////////////////////
//int makeplot(double e_start = 1.0, double e_end = 1.0, const char* input_fname = "sim_output/sim_emcal_electrons_output.root", const char *fout = "results/rec_1000k_info_1GeV.txt")
int makeplot(double e_start = 1.0, double e_end = 1.0, const char* input_fname = "sim_output/sim_emcal_electrons_output.root")
//int makeplot(double e_start = 1.0, double e_end = 1.0, const char* input_fname = "sim_output/sim_emcal_electrons_output.root")
int makeplot(const char* input_fname = "sim_output/sim_emcal_electrons_output.root")
{
// Setting figures
gROOT->SetStyle("Plain");
......@@ -21,6 +22,9 @@ int makeplot(double e_start = 1.0, double e_end = 1.0, const char* input_fname =
//if(!fp)
// fprintf(stderr,"error: can't open %s\n", fout);
Double_t e_start = 1.0;
Double_t e_end = 1.0;
// Input ROOT file
TFile *f = new TFile(input_fname,"READ");
TTree *t = (TTree *)f->Get("events");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment