Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
EIC
Project Juggler
Commits
1fa97315
Commit
1fa97315
authored
Sep 22, 2020
by
Jihee Kim
Browse files
Merge branch 'crystal_digi' into 'master'
Example of Python Code for Crystal Calorimeter See merge request
!3
parents
e44ba587
719ae83e
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
1fa97315
...
...
@@ -36,3 +36,6 @@ __pycache__/
*.py[cod]
*$py.class
.ipynb_checkpoints
# ROOT file
*.root
JugDigi/tests/options/example_crystalendcapsdigi.py
0 → 100644
View file @
1fa97315
from
Gaudi.Configuration
import
*
from
GaudiKernel.DataObjectHandleBase
import
DataObjectHandleBase
from
Configurables
import
ApplicationMgr
,
EICDataSvc
,
PodioOutput
,
GeoSvc
geo_service
=
GeoSvc
(
"GeoSvc"
)
podioevent
=
EICDataSvc
(
"EventDataSvc"
,
inputs
=
[
"output_emcal_electrons_npsim.root"
],
OutputLevel
=
DEBUG
)
from
Configurables
import
PodioInput
from
Configurables
import
Jug__Digi__CrystalEndcapsDigi
as
CrystalEndcapsDigi
podioinput
=
PodioInput
(
"PodioReader"
,
collections
=
[
"mcparticles"
,
"EcalHits"
],
OutputLevel
=
DEBUG
)
emcaldigi
=
CrystalEndcapsDigi
(
inputHitCollection
=
"EcalHits"
,
outputHitCollection
=
"RawDigiEcalHits"
)
out
=
PodioOutput
(
"out"
,
filename
=
"digi_emcal_electrons_npsim.root"
)
out
.
outputCommands
=
[
"keep *"
]
ApplicationMgr
(
TopAlg
=
[
podioinput
,
emcaldigi
,
out
],
EvtSel
=
'NONE'
,
EvtMax
=
100
,
ExtSvc
=
[
podioevent
],
OutputLevel
=
DEBUG
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment