|
1 | 1 | from Gaudi.Configuration import * |
2 | | -from Configurables import ApplicationMgr |
3 | 2 |
|
4 | | -from Configurables import GeoSvc |
| 3 | +from Configurables import GeoSvc, EventDataSvc |
| 4 | +from k4FWCore import ApplicationMgr, IOSvc |
5 | 5 |
|
6 | 6 | geoservice = GeoSvc("GeoSvc") |
7 | 7 | geoservice.detectors.append("/path/to/k4geo/FCCee/compact/CLD_ARC/arc_full_v0.xml") |
8 | 8 |
|
9 | | -from Configurables import k4DataSvc |
10 | | - |
11 | | -dataservice = k4DataSvc( |
12 | | - "EventDataSvc", input=vars().get("input", "data/arcsim_kaon+_edm4hep.root") |
13 | | -) |
14 | | - |
15 | | -from Configurables import PodioInput |
16 | | - |
17 | | -podioinput = PodioInput("PodioInput", collections=["ARC_HITS"], OutputLevel=DEBUG) |
| 9 | +iosvc = IOSvc() |
| 10 | +iosvc.Input = vars().get("input", "data/arcsim_kaon+_edm4hep.root") |
| 11 | +iosvc.CollectionNames = ["ARC_HITS"] |
| 12 | +iosvc.Output = vars().get("output", "digi.root") |
| 13 | +iosvc.outputCommands = ["keep *"] |
18 | 14 |
|
19 | 15 | from Configurables import ARCdigitizer |
20 | 16 |
|
21 | 17 | arc_digitizer = ARCdigitizer( |
22 | 18 | "ARCdigitizer", inputSimHits="ARC_HITS", outputDigiHits="ARC_DIGI_HITS" |
23 | 19 | ) |
24 | 20 |
|
25 | | -from Configurables import PodioOutput |
26 | | - |
27 | | -podiooutput = PodioOutput( |
28 | | - "PodioOutput", filename=vars().get("output", "digi.root"), OutputLevel=DEBUG |
29 | | -) |
30 | | -podiooutput.outputCommands = ["keep *"] |
31 | | - |
32 | 21 | # CPU information |
33 | 22 | from Configurables import AuditorSvc, ChronoAuditor |
34 | 23 |
|
35 | 24 | chra = ChronoAuditor() |
36 | 25 | audsvc = AuditorSvc() |
37 | 26 | audsvc.Auditors = [chra] |
38 | 27 | arc_digitizer.AuditExecute = True |
39 | | -podiooutput.AuditExecute = True |
40 | 28 |
|
41 | 29 | from Configurables import EventCounter |
42 | 30 |
|
43 | 31 | event_counter = EventCounter("event_counter") |
44 | 32 | event_counter.Frequency = 1 |
45 | 33 |
|
46 | 34 | ApplicationMgr( |
47 | | - TopAlg=[event_counter, podioinput, arc_digitizer, podiooutput], |
| 35 | + TopAlg=[event_counter, arc_digitizer], |
48 | 36 | EvtSel="NONE", |
49 | 37 | EvtMax=10, |
50 | | - ExtSvc=[geoservice, dataservice], |
| 38 | + ExtSvc=[geoservice, EventDataSvc("EventDataSvc")], |
51 | 39 | ) |
0 commit comments