forked from acts-project/acts
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathreader_and_seeding.py
More file actions
57 lines (45 loc) · 1.27 KB
/
reader_and_seeding.py
File metadata and controls
57 lines (45 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import sys
from pathlib import Path
import acts.examples
import acts
from acts.examples import (
CsvSpacePointReader,
TrackParamsEstimationAlgorithm,
)
from acts.examples.reconstruction import (
addStandardSeeding,
)
from acts.examples.itk import itkSeedingAlgConfig, InputSpacePointsType
s = acts.examples.Sequencer(events=1, numThreads=1, outputDir="output")
# loggingLevel = acts.logging.INFO
loggingLevel = acts.logging.DEBUG
s.addReader(
acts.examples.root.RootAthenaDumpReader(
level=loggingLevel,
treename="GNN4ITk",
inputfile="Dump_GNN4Itk.root",
onlySpacePoints=True,
outputPixelSpacePoints="pixel_spacepoints",
outputStripSpacePoints="strip_spacepoints",
outputSpacePoints="spacepoints",
)
)
# run pixel seeding
seeding_pixel = addStandardSeeding(
s,
"pixel_spacepoints",
*acts.examples.itk.itkSeedingAlgConfig(
InputSpacePointsType.PixelSpacePoints, highOccupancyConfig=True
),
logLevel=loggingLevel,
outputSeeds="pixel_seeds"
)
# run strip seeding
seeding_strip = addStandardSeeding(
s,
"strip_spacepoints",
*acts.examples.itk.itkSeedingAlgConfig(InputSpacePointsType.StripSpacePoints),
logLevel=acts.logging.DEBUG,
outputSeeds="strip_seeds"
)
s.run()