Skip to content

Commit f5b96a1

Browse files
authored
Merge branch 'acts-project:main' into main
2 parents 8a008d0 + 2d5ed72 commit f5b96a1

File tree

1 file changed

+45
-6
lines changed

1 file changed

+45
-6
lines changed

Examples/Scripts/Python/full_chain_odd_LRT.py

Lines changed: 45 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import os
44
import argparse
55
import pathlib
6+
import math
67

78
import acts
89
import acts.examples
@@ -12,6 +13,7 @@
1213
EtaConfig,
1314
PhiConfig,
1415
ParticleConfig,
16+
ParticleSelectorConfig,
1517
addPythia8,
1618
addFatras,
1719
addGeant4,
@@ -134,6 +136,12 @@
134136
default=True,
135137
action=argparse.BooleanOptionalAction,
136138
)
139+
parser.add_argument(
140+
"--output-obj",
141+
help="Switch obj output on/off",
142+
default=True,
143+
action=argparse.BooleanOptionalAction,
144+
)
137145

138146
args = parser.parse_args()
139147

@@ -224,7 +232,6 @@
224232
ParticleConfig(
225233
args.gun_particles, acts.PdgParticle.eMuon, randomizeCharge=True
226234
),
227-
outputDirRoot=pathlib.Path("/home/aicha/Atlas/NewVertices"),
228235
vtxGen=acts.examples.GaussianDisplacedVertexPositionGenerator(
229236
rMean=2,
230237
rStdDev=0.0125 * u.mm,
@@ -278,6 +285,7 @@
278285
),
279286
outputDirRoot=outputDir if args.output_root else None,
280287
outputDirCsv=outputDir if args.output_csv else None,
288+
outputDirObj=outputDir if args.output_obj else None,
281289
rnd=rnd,
282290
killVolume=trackingGeometry.highestTrackingVolume,
283291
killAfterTime=25 * u.ns,
@@ -306,6 +314,7 @@
306314
enableInteractions=True,
307315
outputDirRoot=outputDir if args.output_root else None,
308316
outputDirCsv=outputDir if args.output_csv else None,
317+
outputDirObj=outputDir if args.output_obj else None,
309318
rnd=rnd,
310319
)
311320

@@ -324,6 +333,16 @@
324333
s,
325334
trackingGeometry,
326335
field,
336+
initialSigmas=[
337+
1 * u.mm,
338+
1 * u.mm,
339+
1 * u.degree,
340+
1 * u.degree,
341+
0.1 * u.e / u.GeV,
342+
1 * u.ns,
343+
],
344+
initialSigmaPtRel=0.1,
345+
initialVarInflation=[1.0] * 6,
327346
geoSelectionConfigFile=oddSeedingSel,
328347
outputDirRoot=outputDir if args.output_root else None,
329348
outputDirCsv=outputDir if args.output_csv else None,
@@ -354,12 +373,32 @@
354373
maxOutliers=2,
355374
),
356375
CkfConfig(
376+
chi2CutOffMeasurement=15.0,
377+
chi2CutOffOutlier=25.0,
378+
numMeasurementsCutOff=10,
357379
seedDeduplication=True,
358380
stayOnSeed=True,
359-
pixelVolumes={16, 17, 18},
360-
stripVolumes={23, 24, 25},
381+
pixelVolumes=[16, 17, 18],
382+
stripVolumes=[23, 24, 25],
361383
maxPixelHoles=1,
362384
maxStripHoles=2,
385+
constrainToVolumes=[
386+
2, # beam pipe
387+
32,
388+
4, # beam pip gap
389+
16,
390+
17,
391+
18, # pixel
392+
20, # PST
393+
23,
394+
24,
395+
25, # short strip
396+
26,
397+
8, # long strip gap
398+
28,
399+
29,
400+
30, # long strip
401+
],
363402
),
364403
outputDirRoot=outputDir if args.output_root else None,
365404
outputDirCsv=outputDir if args.output_csv else None,
@@ -388,8 +427,8 @@
388427
maxSharedTracksPerMeasurement=2,
389428
pTMax=1400,
390429
pTMin=0.5,
391-
phiMax=3.14,
392-
phiMin=-3.14,
430+
phiMax=math.pi,
431+
phiMin=-math.pi,
393432
etaMax=4,
394433
etaMin=-4,
395434
useAmbiguityFunction=False,
@@ -413,7 +452,7 @@
413452
addVertexFitting(
414453
s,
415454
field,
416-
vertexFinder=VertexFinder.Iterative,
455+
vertexFinder=VertexFinder.AMVF,
417456
outputDirRoot=outputDir if args.output_root else None,
418457
)
419458

0 commit comments

Comments
 (0)