|
3 | 3 | import os |
4 | 4 | import argparse |
5 | 5 | import pathlib |
| 6 | +import math |
6 | 7 |
|
7 | 8 | import acts |
8 | 9 | import acts.examples |
|
12 | 13 | EtaConfig, |
13 | 14 | PhiConfig, |
14 | 15 | ParticleConfig, |
| 16 | + ParticleSelectorConfig, |
15 | 17 | addPythia8, |
16 | 18 | addFatras, |
17 | 19 | addGeant4, |
|
134 | 136 | default=True, |
135 | 137 | action=argparse.BooleanOptionalAction, |
136 | 138 | ) |
| 139 | +parser.add_argument( |
| 140 | + "--output-obj", |
| 141 | + help="Switch obj output on/off", |
| 142 | + default=True, |
| 143 | + action=argparse.BooleanOptionalAction, |
| 144 | +) |
137 | 145 |
|
138 | 146 | args = parser.parse_args() |
139 | 147 |
|
|
224 | 232 | ParticleConfig( |
225 | 233 | args.gun_particles, acts.PdgParticle.eMuon, randomizeCharge=True |
226 | 234 | ), |
227 | | - outputDirRoot=pathlib.Path("/home/aicha/Atlas/NewVertices"), |
228 | 235 | vtxGen=acts.examples.GaussianDisplacedVertexPositionGenerator( |
229 | 236 | rMean=2, |
230 | 237 | rStdDev=0.0125 * u.mm, |
|
278 | 285 | ), |
279 | 286 | outputDirRoot=outputDir if args.output_root else None, |
280 | 287 | outputDirCsv=outputDir if args.output_csv else None, |
| 288 | + outputDirObj=outputDir if args.output_obj else None, |
281 | 289 | rnd=rnd, |
282 | 290 | killVolume=trackingGeometry.highestTrackingVolume, |
283 | 291 | killAfterTime=25 * u.ns, |
|
306 | 314 | enableInteractions=True, |
307 | 315 | outputDirRoot=outputDir if args.output_root else None, |
308 | 316 | outputDirCsv=outputDir if args.output_csv else None, |
| 317 | + outputDirObj=outputDir if args.output_obj else None, |
309 | 318 | rnd=rnd, |
310 | 319 | ) |
311 | 320 |
|
|
324 | 333 | s, |
325 | 334 | trackingGeometry, |
326 | 335 | 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, |
327 | 346 | geoSelectionConfigFile=oddSeedingSel, |
328 | 347 | outputDirRoot=outputDir if args.output_root else None, |
329 | 348 | outputDirCsv=outputDir if args.output_csv else None, |
|
354 | 373 | maxOutliers=2, |
355 | 374 | ), |
356 | 375 | CkfConfig( |
| 376 | + chi2CutOffMeasurement=15.0, |
| 377 | + chi2CutOffOutlier=25.0, |
| 378 | + numMeasurementsCutOff=10, |
357 | 379 | seedDeduplication=True, |
358 | 380 | stayOnSeed=True, |
359 | | - pixelVolumes={16, 17, 18}, |
360 | | - stripVolumes={23, 24, 25}, |
| 381 | + pixelVolumes=[16, 17, 18], |
| 382 | + stripVolumes=[23, 24, 25], |
361 | 383 | maxPixelHoles=1, |
362 | 384 | 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 | + ], |
363 | 402 | ), |
364 | 403 | outputDirRoot=outputDir if args.output_root else None, |
365 | 404 | outputDirCsv=outputDir if args.output_csv else None, |
|
388 | 427 | maxSharedTracksPerMeasurement=2, |
389 | 428 | pTMax=1400, |
390 | 429 | pTMin=0.5, |
391 | | - phiMax=3.14, |
392 | | - phiMin=-3.14, |
| 430 | + phiMax=math.pi, |
| 431 | + phiMin=-math.pi, |
393 | 432 | etaMax=4, |
394 | 433 | etaMin=-4, |
395 | 434 | useAmbiguityFunction=False, |
|
413 | 452 | addVertexFitting( |
414 | 453 | s, |
415 | 454 | field, |
416 | | - vertexFinder=VertexFinder.Iterative, |
| 455 | + vertexFinder=VertexFinder.AMVF, |
417 | 456 | outputDirRoot=outputDir if args.output_root else None, |
418 | 457 | ) |
419 | 458 |
|
|
0 commit comments