Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CEPCSW_OTE_development
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
yudian2002@sjtu.edu.cn
CEPCSW_OTE_development
Commits
ad836d98
Commit
ad836d98
authored
2 years ago
by
zoujh@ihep.ac.cn
Browse files
Options
Downloads
Patches
Plain Diff
update the example options for reading LCIO data
parent
5cf624dc
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
Examples/options/LCIO_read.py
+44
-47
44 additions, 47 deletions
Examples/options/LCIO_read.py
with
44 additions
and
47 deletions
Examples/options/LCIO_read.py
+
44
−
47
View file @
ad836d98
#!/usr/bin/env python
#!/usr/bin/env python
from
Gaudi.Configuration
import
*
from
Gaudi.Configuration
import
*
from
Configurables
import
k4DataSvc
dsvc
=
k4DataSvc
(
"
EventDataSvc
"
)
from
Configurables
import
LCIODataSvc
,
CEPCDataSvc
# read LCIO files
svcname
=
"
LCIODataSvc
"
rsvc
=
LCIODataSvc
(
svcname
,
inputs
=
[
"
/cefs/data/FullSim/CEPC240/CEPC_v4/higgs/smart_final_states/E240.Pffh_invi.e0.p0.whizard195//ffh_inv.e0.p0.00001_1000_sim.slcio
"
])
wsvc
=
CEPCDataSvc
(
"
EventDataSvc
"
)
from
Configurables
import
PlcioReadAlg
alg
=
PlcioReadAlg
(
"
PlcioReadAlg
"
)
alg
.
InputCol
.
Path
=
"
MCParticle
"
alg
.
HeaderCol
.
Path
=
"
EventHeader
"
from
Configurables
import
LCIOInput
from
Configurables
import
LCIOInput
lcioinput
=
LCIOInput
(
"
LCIOReader
"
,
collections
=
[
read
=
LCIOInput
(
"
read
"
)
"
EventHeader
"
,
read
.
inputs
=
[
"
MCParticle
"
,
"
/cefs/data/FullSim/CEPC240/CEPC_v4/higgs/smart_final_states/E240.Pffh_invi.e0.p0.whizard195/ffh_inv.e0.p0.00001_1000_sim.slcio
"
"
TPCCollection
"
]
#"EventHeader",
read
.
collections
=
[
#"MCParticle",
"
MCParticle:MCParticle
"
,
#"COILCollection",
"
SimCalorimeterHit:EcalBarrelSiliconCollection
"
,
#"EcalBarrelSiliconCollection",
#"CalorimeterHit:ECALBarrel",
#"EcalBarrelSiliconPreShowerCollection",
#"CalorimeterHit:ECALEndcap",
#"EcalEndcapRingCollection",
#"CalorimeterHit:ECALOther" ,
#"EcalEndcapRingPreShowerCollection",
########## HCAL will effect the reco efficiency close to gap region ######
#"EcalEndcapSiliconCollection",
#"CalorimeterHit:HCALBarrel",
#"EcalEndcapSiliconPreShowerCollection",
#"CalorimeterHit:HCALEndcap",
#"FTD_PIXELCollection",
#"CalorimeterHit:HCALOther",
#"FTD_STRIPCollection",
##"TrackerHit:VXDTrackerHits",
#"HcalBarrelCollection",
##"TrackerHit:SITTrackerHits",
#"HcalEndCapRingsCollection",
#"TrackerHit:SITSpacePoints",
#"HcalEndCapsCollection",
#"TrackerHit:TPCTrackerHits",
#"LumiCalCollection",
##"TrackerHit:SETTrackerHits",
#"MuonBarrelCollection",
#"TrackerHit:SETSpacePoints",
#"MuonEndCapCollection",
##"TrackerHit:FTDStripTrackerHits",
#"SETCollection",
#"TrackerHit:FTDSpacePoints",
#"SITCollection",
##"TrackerHit:FTDPixelTrackerHits",
#"TPCCollection",
#"Track:ClupatraTrackSegments",
#"TPCSpacePointCollection",
#"Track:ClupatraTracks",
#"VXDCollection"
#"Track:ForwardTracks",
])
#"Track:SiTracks",
lcioinput
.
DataSvc
=
svcname
#"Track:SubsetTracks",
#"Track:MarlinTrkTracks",
#"Vertex:KinkVertices",
#"Vertex:ProngVertices",
#"Vertex:V0Vertices",
#"ReconstructedParticle:KinkRecoParticles",
#"ReconstructedParticle:ProngRecoParticles",
#"ReconstructedParticle:V0RecoParticles"
]
from
Configurables
import
PodioOutput
from
Configurables
import
PodioOutput
plcioout
=
PodioOutput
(
"
PlcioW
rite
r
"
)
write
=
PodioOutput
(
"
w
rite
"
)
plcioout
.
filename
=
"
lcio2plcio.root
"
write
.
filename
=
"
lcio2plcio.root
"
plcioout
.
outputCommands
=
[
"
keep *
"
]
write
.
outputCommands
=
[
"
keep *
"
]
# ApplicationMgr
# ApplicationMgr
from
Configurables
import
ApplicationMgr
from
Configurables
import
ApplicationMgr
ApplicationMgr
(
TopAlg
=
[
lcioinput
,
alg
,
plcioout
],
ApplicationMgr
(
TopAlg
=
[
read
,
write
],
EvtSel
=
'
NONE
'
,
EvtSel
=
'
NONE
'
,
EvtMax
=
10
,
EvtMax
=
10
,
ExtSvc
=
[
rsvc
,
w
svc
],
ExtSvc
=
[
d
svc
],
OutputLevel
=
DEBUG
OutputLevel
=
DEBUG
)
)
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