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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
benchmarks
reconstruction_benchmarks
Commits
f1b8049a
Commit
f1b8049a
authored
Nov 3, 2020
by
Whitney Armstrong
Browse files
Options
Downloads
Patches
Plain Diff
modified: tracking/central_electrons.sh
parent
2a47dafc
No related branches found
No related tags found
1 merge request
!28
Added analysis script to the tracking job
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tracking/central_electrons.sh
+21
-21
21 additions, 21 deletions
tracking/central_electrons.sh
with
21 additions
and
21 deletions
tracking/central_electrons.sh
+
21
−
21
View file @
f1b8049a
...
...
@@ -23,34 +23,34 @@ echo "JUGGLER_DETECTOR = ${JUGGLER_DETECTOR}"
## Build the detector constructors.
#
git clone https://eicweb.phy.anl.gov/EIC/detectors/${JUGGLER_DETECTOR}.git
#
mkdir ${JUGGLER_DETECTOR}/build
#
pushd ${JUGGLER_DETECTOR}/build
#
cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local && make -j30 install
#
popd
git clone https://eicweb.phy.anl.gov/EIC/detectors/
${
JUGGLER_DETECTOR
}
.git
mkdir
${
JUGGLER_DETECTOR
}
/build
pushd
${
JUGGLER_DETECTOR
}
/build
cmake ../.
-DCMAKE_INSTALL_PREFIX
=
/usr/local
&&
make
-j30
install
popd
## generate the input events
#
root -b -q "tracking/scripts/gen_central_electrons.cxx(${JUGGLER_N_EVENTS}, \"${JUGGLER_FILE_NAME_TAG}.hepmc\")"
#
if [[ "$?" -ne "0" ]] ; then
#
echo "ERROR running script"
#
exit 1
#
fi
root
-b
-q
"tracking/scripts/gen_central_electrons.cxx(
${
JUGGLER_N_EVENTS
}
,
\"
${
JUGGLER_FILE_NAME_TAG
}
.hepmc
\"
)"
if
[[
"
$?
"
-ne
"0"
]]
;
then
echo
"ERROR running script"
exit
1
fi
#
pushd
${
JUGGLER_DETECTOR
}
## run geant4 simulations
#
npsim --runType batch \
#
--part.minimalKineticEnergy 1000*GeV \
#
-v WARNING \
#
--numberOfEvents ${JUGGLER_N_EVENTS} \
#
--compactFile ${JUGGLER_DETECTOR}.xml \
#
--inputFiles ../${JUGGLER_FILE_NAME_TAG}.hepmc \
#
--outputFile ${JUGGLER_SIM_FILE}
#
if [[ "$?" -ne "0" ]] ; then
#
echo "ERROR running script"
#
exit 1
#
fi
npsim
--runType
batch
\
--part
.minimalKineticEnergy 1000
*
GeV
\
-v
WARNING
\
--numberOfEvents
${
JUGGLER_N_EVENTS
}
\
--compactFile
${
JUGGLER_DETECTOR
}
.xml
\
--inputFiles
../
${
JUGGLER_FILE_NAME_TAG
}
.hepmc
\
--outputFile
${
JUGGLER_SIM_FILE
}
if
[[
"
$?
"
-ne
"0"
]]
;
then
echo
"ERROR running script"
exit
1
fi
# Need to figure out how to pass file name to juggler from the commandline
...
...
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
sign in
to comment