Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
reconstruction_benchmarks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
benchmarks
reconstruction_benchmarks
Merge requests
!37
Added error checking in bash script
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Added error checking in bash script
err_checking
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Whitney Armstrong
requested to merge
err_checking
into
master
4 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
modified: emcal_electrons.sh
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
52a578a7
1 commit,
4 years ago
1 file
+
26
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
ecal/emcal_electrons.sh
+
26
−
0
Options
@@ -45,7 +45,15 @@ popd
# note datasets is now only used to develop datasets.
#git clone https://eicweb.phy.anl.gov/EIC/datasets.git datasets
root
-b
-q
"ecal/scripts/emcal_electrons.cxx(
${
JUGGLER_N_EVENTS
}
,
${
E_start
}
,
${
E_end
}
,
\"
${
JUGGLER_FILE_NAME_TAG
}
.hepmc
\"
)"
if
[[
"
$?
"
-ne
"0"
]]
;
then
echo
"ERROR running script"
exit
1
fi
root
-b
-q
"ecal/scripts/emcal_electrons_reader.cxx(
${
E_start
}
,
${
E_end
}
,
\"
${
JUGGLER_FILE_NAME_TAG
}
.hepmc
\"
)"
if
[[
"
$?
"
-ne
"0"
]]
;
then
echo
"ERROR running script"
exit
1
fi
pushd
${
JUGGLER_DETECTOR
}
ls
-l
@@ -58,18 +66,36 @@ npsim --runType batch \
--inputFiles
../
${
JUGGLER_FILE_NAME_TAG
}
.hepmc
\
--outputFile
${
JUGGLER_SIM_FILE
}
# Need to figure out how to pass file name to juggler from the commandline
if
[[
"
$?
"
-ne
"0"
]]
;
then
echo
"ERROR running npdet"
exit
1
fi
xenv
-x
${
JUGGLER_INSTALL_PREFIX
}
/Juggler.xenv gaudirun.py ../ecal/options/crystal_calorimeter_reco.py
if
[[
"
$?
"
-ne
"0"
]]
;
then
echo
"ERROR running juggler"
exit
1
fi
ls
-l
popd
pwd
mkdir
-p
results
#rootls ${JUGGLER_DETECTOR}/${JUGGLER_REC_FILE}
root
-b
-q
"ecal/scripts/rec_emcal_electrons_reader.C(
${
E_start
}
,
${
E_end
}
,
\"
${
JUGGLER_DETECTOR
}
/
${
JUGGLER_REC_FILE
}
\"
)"
if
[[
"
$?
"
-ne
"0"
]]
;
then
echo
"ERROR running analysis script"
exit
1
fi
#root -b -q "ecal/scripts/makeplot.C(${E_start}, ${E_end}, \"${JUGGLER_DETECTOR}/${JUGGLER_REC_FILE}\", \"results/rec_${JUGGLER_FILE_NAME_TAG}.txt\")"
#root -b -q "ecal/scripts/makeplot_input.C(\"${JUGGLER_DETECTOR}/${JUGGLER_SIM_FILE}\", \"results/sim_${JUGGLER_FILE_NAME_TAG}.txt\")"
root
-b
-q
"ecal/scripts/crystal_cal_electrons.cxx(
\"
${
JUGGLER_DETECTOR
}
/
${
JUGGLER_REC_FILE
}
\"
)"
if
[[
"
$?
"
-ne
"0"
]]
;
then
echo
"ERROR running analysis script"
exit
1
fi
#paste results/sim_${JUGGLER_FILE_NAME_TAG}.txt results/rec_${JUGGLER_FILE_NAME_TAG}.txt > results/eng_${JUGGLER_FILE_NAME_TAG}.txt
#root -b -q "ecal/scripts/read_eng.C(\"results/eng_${JUGGLER_FILE_NAME_TAG}.root\", \"results/eng_${JUGGLER_FILE_NAME_TAG}.txt\")"
Loading