[Paper Review] The tauola-photos_F environment for versioning the TAUOLA and PHOTOS packages
This paper presents a versioning system for the TAUOLA and PHOTOS Fortran packages used in tau lepton decay simulations, enabling automatic generation of customized versions through preprocessor directives and modular configuration. The system supports multiple physics initialization schemes, HEPEVT common block formats, random number generators, and compiler options, ensuring backward compatibility and seamless integration with Monte Carlo generators like KKMC and JETSET.
We present the system for versioning two packages: the TAUOLA of tau lepton decay and PHOTOS for radiative corrections in decays. The following features can be chosen in automatic or semi-automatic way: (1) format of the common block HEPEVT; (2) version of the physics input (for TAUOLA): as published, as initialized by CLEO collaboration, as initialized by ALEPH collaboration (it is suggested to use this version only with the help of the collaboration advice); (3) type of application: stand-alone, universal interface through HEPEVT, interface for KKMC Monte Carlo; (4) random number generators; (5) compiler options.
Motivation & Objective
- To address the proliferation of divergent TAUOLA and PHOTOS versions used across HEP experiments and simulation chains.
- To provide a systematic, automated method for generating tailored versions of TAUOLA and PHOTOS without code duplication.
- To maintain full backward compatibility with published versions while supporting multiple physics initialization schemes and interface formats.
- To facilitate integration with various Monte Carlo generators (e.g., KKMC, JETSET) and HEPEVT event record formats.
- To support platform-specific compilation through configurable makefiles and random number generator replacements.
Proposed method
- Use of the C preprocessor (cpp) to generate specific Fortran source files from master templates in the 'F' directories (e.g., photos.F, tauola.F).
- Modular organization of configuration options via separate subdirectories: photos-F/, tauola-F/, randg/, include/, and platform/.
- HEPEVT common block variants are managed via header files (HEPEVT-xxx.h) and selected via symbolic links (HEPEVT.h).
- Support for multiple physics initialization modes: as published, CLEO-initialized, ALEPH-initialized, and custom decay mode coding.
- Use of platform-specific make-xxx.inc files to define compiler flags, with a symbolic link (make.inc) pointing to the selected configuration.
- Demos and interface examples are generated in separate directories (e.g., demo-standalone, demo-jetset, KK-face) for testing and integration.
Experimental results
Research questions
- RQ1How can a single master codebase of TAUOLA and PHOTOS support multiple, divergent versions used across different experiments and simulation chains?
- RQ2What is the most effective way to manage configuration differences—such as HEPEVT format, physics initialization, and random number generators—without code duplication?
- RQ3How can backward compatibility with all existing published versions be preserved while enabling new configurations?
- RQ4What system architecture enables automatic, reproducible generation of application-specific versions of the TAUOLA and PHOTOS packages?
- RQ5How can the system support integration with diverse Monte Carlo generators like KKMC and JETSET through standardized interfaces?
Key findings
- The system successfully generates customized versions of TAUOLA and PHOTOS using cpp preprocessor directives, eliminating the need for manual code branching.
- Multiple physics initialization modes—published, CLEO, ALEPH, and custom—are supported through configuration flags, with ALEPH initialization requiring collaboration guidance.
- Support for five distinct HEPEVT common block formats (e.g., 2kD-all, 10kD-all, 2kR-all) enables compatibility with different HEP simulation frameworks.
- The system allows replacement of default random number generators via dedicated files (photos-random.h, tauola-random.h), supporting user-specific RNGs.
- The build process ensures that only essential code (./photos and ./tauola directories) is retained after version generation, reducing bloat.
- Demos for standalone, JETSET-integrated, and KKMC-integrated modes are successfully generated and can be executed via standard make commands.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.