Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update full_chain_odd_LRT.py to follow full_chain_odd.py #3977

Merged
merged 6 commits into from
Dec 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 45 additions & 6 deletions Examples/Scripts/Python/full_chain_odd_LRT.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os
import argparse
import pathlib
import math

import acts
import acts.examples
Expand All @@ -12,6 +13,7 @@
EtaConfig,
PhiConfig,
ParticleConfig,
ParticleSelectorConfig,
addPythia8,
addFatras,
addGeant4,
Expand Down Expand Up @@ -134,6 +136,12 @@
default=True,
action=argparse.BooleanOptionalAction,
)
parser.add_argument(
"--output-obj",
help="Switch obj output on/off",
default=True,
action=argparse.BooleanOptionalAction,
)
paulgessinger marked this conversation as resolved.
Show resolved Hide resolved

args = parser.parse_args()

Expand Down Expand Up @@ -224,7 +232,6 @@
ParticleConfig(
args.gun_particles, acts.PdgParticle.eMuon, randomizeCharge=True
),
outputDirRoot=pathlib.Path("/home/aicha/Atlas/NewVertices"),
vtxGen=acts.examples.GaussianDisplacedVertexPositionGenerator(
rMean=2,
rStdDev=0.0125 * u.mm,
Expand Down Expand Up @@ -278,6 +285,7 @@
),
outputDirRoot=outputDir if args.output_root else None,
outputDirCsv=outputDir if args.output_csv else None,
outputDirObj=outputDir if args.output_obj else None,
rnd=rnd,
killVolume=trackingGeometry.highestTrackingVolume,
killAfterTime=25 * u.ns,
Expand Down Expand Up @@ -306,6 +314,7 @@
enableInteractions=True,
outputDirRoot=outputDir if args.output_root else None,
outputDirCsv=outputDir if args.output_csv else None,
outputDirObj=outputDir if args.output_obj else None,
rnd=rnd,
)

Expand All @@ -324,6 +333,16 @@
s,
trackingGeometry,
field,
initialSigmas=[
1 * u.mm,
1 * u.mm,
1 * u.degree,
1 * u.degree,
0.1 * u.e / u.GeV,
1 * u.ns,
],
initialSigmaPtRel=0.1,
initialVarInflation=[1.0] * 6,
geoSelectionConfigFile=oddSeedingSel,
outputDirRoot=outputDir if args.output_root else None,
outputDirCsv=outputDir if args.output_csv else None,
Expand Down Expand Up @@ -354,12 +373,32 @@
maxOutliers=2,
),
CkfConfig(
chi2CutOffMeasurement=15.0,
chi2CutOffOutlier=25.0,
numMeasurementsCutOff=10,
seedDeduplication=True,
stayOnSeed=True,
pixelVolumes={16, 17, 18},
stripVolumes={23, 24, 25},
pixelVolumes=[16, 17, 18],
stripVolumes=[23, 24, 25],
maxPixelHoles=1,
maxStripHoles=2,
constrainToVolumes=[
2, # beam pipe
32,
4, # beam pip gap
16,
17,
18, # pixel
20, # PST
23,
24,
25, # short strip
26,
8, # long strip gap
28,
29,
30, # long strip
],
),
outputDirRoot=outputDir if args.output_root else None,
outputDirCsv=outputDir if args.output_csv else None,
Expand Down Expand Up @@ -388,8 +427,8 @@
maxSharedTracksPerMeasurement=2,
pTMax=1400,
pTMin=0.5,
phiMax=3.14,
phiMin=-3.14,
phiMax=math.pi,
phiMin=-math.pi,
etaMax=4,
etaMin=-4,
useAmbiguityFunction=False,
Expand All @@ -413,7 +452,7 @@
addVertexFitting(
s,
field,
vertexFinder=VertexFinder.Iterative,
vertexFinder=VertexFinder.AMVF,
outputDirRoot=outputDir if args.output_root else None,
)

Expand Down
Loading