Cleanup of track container filing code in ProtoTrackCreationAndFitAlg + test improvs
Merged
requested to merge tbold/athena:followups-of-acts-32_0_2-fix-proto-track-conversion into main
1 unresolved thread
Compare changes
Files
3@@ -55,32 +55,22 @@ if __name__ == "__main__":
parser.add_argument("--inputRDOFile", "-i", default=["/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/PhaseIIUpgrade/RDO/ATLAS-P2-RUN4-03-00-00/mc21_14TeV.900498.PG_single_muonpm_Pt100_etaFlatnp0_43.recon.RDO.e8481_s4149_r14697/RDO.33675668._000016.pool.root.1"], help="RDO file to run", nargs="+")
@@ -95,7 +85,7 @@ if __name__ == "__main__":
@@ -114,7 +104,7 @@ if __name__ == "__main__":
why's the argument parser gone?
Just to second that, we have been using this script for small tests. Argpaser has been helpful for testing different things.
This particular option should be handled already here. https://gitlab.cern.ch/atlas/athena/-/blob/main/Control/AthenaConfiguration/python/AthConfigFlags.py#L581 I.e. flags can be directly controlled from command line. Btw I hopped that you would haveea chance to comment before it was merged. But it went real fast. Send from phone, sorry for brevity.
Got to it now. This is bit philosophical ... i.e. we have flags system integrated with command line parsing already, so simple tests do not need to reimplement command line handling at all. I.e. all flags can be setup and if some property is not already a flag it can be added with one-line
addFlag("", )
.This changeset contains also this file:
Tracking/Acts/ActsConfig/test/ActsEFTrackFit.sh
with some examples.Is there documentation on the flags / command line interface available somewhere? This honestly sounds extremely useful also for other standalone snippets, I didn't know this exists. And are there shorthands available, since some of the syntax such as
Input.Files="['location']"
is far too cumbersome for command line operation and would result in another layer of wrapper scripts?Here: https://atlassoftwaredocs.web.cern.ch/guides/ca_configuration/flags/#using-flags (a very concise) As always, the best documentation is the code: https://gitlab.cern.ch/atlas/athena/-/blob/main/Control/AthenaConfiguration/python/AthConfigFlags.py#L571
Ah, and filesInput is there fortunatelly.
Neat! Thanks so much, this looks very useful. Happy to move to this scheme - @sabidi fine for you as well?