Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eic_tutorial
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
tutorials
eic_tutorial
Commits
abde7a09
Commit
abde7a09
authored
3 years ago
by
Whitney Armstrong
Browse files
Options
Downloads
Patches
Plain Diff
modified: part3/running_juggler.md
parent
4bdb5604
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/docs/part3/running_juggler.md
+62
-1
62 additions, 1 deletion
src/docs/part3/running_juggler.md
with
62 additions
and
1 deletion
src/docs/part3/running_juggler.md
+
62
−
1
View file @
abde7a09
...
...
@@ -4,6 +4,67 @@
Juggler is a Gaudi based event processing framework which uses the
[
eicd
](
https://eic.phy.anl.gov/eicd
)
data model.
### Algorithms
##
Algorithms are implemented as C++ in the
[
juggler repository
](
https://eicweb.phy.anl.gov/eic/juggler
)
.
### Options file
The set of algorithms, their input data, and output data are assembled in so-called "options" files (typically in an
`options`
directory).
These are actually python that is interpreted by the
`gaudirun.py`
program.
Once compiled and install as part of juggler, the algorithms can be imported into juggler.
```
from Gaudi.Configuration import *
from GaudiKernel.DataObjectHandleBase import DataObjectHandleBase
from Configurables import ApplicationMgr, EICDataSvc, PodioOutput, GeoSvc
from GaudiKernel import SystemOfUnits as units
from Configurables import Jug__Digi__EMCalorimeterDigi as EMCalorimeterDigi
podioinput = PodioInput("PodioReader",
collections=["mcparticles","EcalBarrelHits"])
ecal_digi = EMCalorimeterDigi("ecal_digi",
inputHitCollection="EcalBarrelHits",
outputHitCollection="RawEcalBarrelHits")
ecal_reco = EMCalReconstruction("ecal_reco",
inputHitCollection="RawEcalBarrelHits",
outputHitCollection="RecEcalBarrelHits",
minModuleEdep=0.0*units.MeV)
out = PodioOutput("out", filename=output_rec_file)
out.outputCommands = ["keep *",
"drop BarrelTrackSourceLinks",
"drop InitTrackParams",
"drop trajectories",
"drop outputSourceLinks",
"drop outputInitialTrackParameters",
"drop mcparticles"
]
ApplicationMgr(
TopAlg = [podioinput, ecal_digi, ecal_reco, out],
EvtSel = 'NONE',
EvtMax = 10,
ExtSvc = [podioevent,geo_service],
OutputLevel=DEBUG
)
```
### Executing Juggler
If using the container-installed juggler algorithms you can run the reconstruction with:
```
gaudirun.py options/demo_reco.py
```
When adding your own algorithm and installed into a custom location, you will need do the following:
```
xenv -x ${JUGGLER_INSTALL_PREFIX}/Juggler.xenv gaudirun.py options/demo_reco.py
```
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