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
Commits
de098736
Commit
de098736
authored
4 years ago
by
Whitney Armstrong
Browse files
Options
Downloads
Patches
Plain Diff
Added error checking, updated ecal scripts
parent
52a578a7
No related branches found
Branches containing commit
No related tags found
1 merge request
!38
Added error checking, updated ecal scripts
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ecal/emcal_electrons.sh
+3
-3
3 additions, 3 deletions
ecal/emcal_electrons.sh
ecal/emcal_pi0s.sh
+25
-4
25 additions, 4 deletions
ecal/emcal_pi0s.sh
with
28 additions
and
7 deletions
ecal/emcal_electrons.sh
+
3
−
3
View file @
de098736
...
...
@@ -101,7 +101,7 @@ fi
#root -b -q "ecal/scripts/read_eng.C(\"results/eng_${JUGGLER_FILE_NAME_TAG}.root\", \"results/eng_${JUGGLER_FILE_NAME_TAG}.txt\")"
#root -b -q "ecal/scripts/cal_eng_res.C(\"results/eng_${JUGGLER_FILE_NAME_TAG}.root\")"
#mkdir -p sim_output
#
cp
"
${JUGGLER_DETECTOR}/${JUGGLER_REC_FILE}
" sim_output
/.
#cp "${JUGGLER_DETECTOR}/${JUGGLER_SIM_FILE}" sim_output/.
if
[[
"
${
JUGGLER_N_EVENTS
}
"
-lt
"500"
]]
;
then
cp
${
JUGGLER_DETECTOR
}
/
${
JUGGLER_REC_FILE
}
results
/.
fi
This diff is collapsed.
Click to expand it.
ecal/emcal_pi0s.sh
+
25
−
4
View file @
de098736
...
...
@@ -21,7 +21,15 @@ echo "JUGGLER_DETECTOR = ${JUGGLER_DETECTOR}"
# Datasets
#git clone https://eicweb.phy.anl.gov/EIC/datasets.git datasets
root
-b
-q
"ecal/scripts/emcal_pi0.cxx(
${
JUGGLER_N_EVENTS
}
,
\"
${
JUGGLER_FILE_NAME_TAG
}
.hepmc
\"
)"
if
[[
"
$?
"
-ne
"0"
]]
;
then
echo
"ERROR running analysis script"
exit
1
fi
root
-b
-q
"ecal/scripts/emcal_pi0_reader.cxx(
\"
${
JUGGLER_FILE_NAME_TAG
}
.hepmc
\"
)"
if
[[
"
$?
"
-ne
"0"
]]
;
then
echo
"ERROR running analysis script"
exit
1
fi
# Detector TOPSiDE
git clone https://eicweb.phy.anl.gov/EIC/detectors/
${
JUGGLER_DETECTOR
}
.git
...
...
@@ -51,9 +59,18 @@ npsim --runType batch \
--compactFile
${
JUGGLER_DETECTOR
}
.xml
\
--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
# Need to figure out how to pass file name to juggler from the commandline
xenv
-x
/usr/local/Juggler.xenv gaudirun.py ../ecal/options/crystal_calorimeter_reco.py
if
[[
"
$?
"
-ne
"0"
]]
;
then
echo
"ERROR running juggler"
exit
1
fi
ls
-l
popd
...
...
@@ -62,8 +79,12 @@ ls -l
pwd
mkdir
-p
results
root
-b
-q
"ecal/scripts/makeplot_pi0.C(
\"
${
JUGGLER_DETECTOR
}
/
${
JUGGLER_REC_FILE
}
\"
)"
if
[[
"
$?
"
-ne
"0"
]]
;
then
echo
"ERROR running analysis script"
exit
1
fi
mkdir
-p
sim_output
cp
"
${
JUGGLER_DETECTOR
}
/
${
JUGGLER_REC_FILE
}
"
sim_output
/.
cp
"
${
JUGGLER_DETECTOR
}
/
${
JUGGLER_SIM_FILE
}
"
sim_output/.
if
[[
"
${
JUGGLER_N_EVENTS
}
"
-lt
"500"
]]
;
then
cp
${
JUGGLER_DETECTOR
}
/
${
JUGGLER_REC_FILE
}
results
/.
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment