Skip to content
This repository was archived by the owner on Feb 11, 2026. It is now read-only.

Commit 0ab87f3

Browse files
authored
fix(doc): remove DRY-violating config param tables (#436)
1 parent 4845a10 commit 0ab87f3

22 files changed

Lines changed: 58 additions & 86 deletions

File tree

doc/doxygen/Doxyfile.in

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,7 @@ ALIASES += algo_type_filter="@par Type: Filter^^This algorithm will filter input
290290
ALIASES += algo_type_transformer="@par Type: Transformer^^This algorithm will change values within input bank(s).^^"
291291
ALIASES += algo_type_creator="@par Type: Creator^^^^- This algorithm creates new bank(s); \ref created_banks \"click here for a description of all created banks\".^^- See also the return value type of this algorithm's action functions, which may be `struct`s with the same set of variables as the created bank.^^^^"
292292
# configuration options
293-
ALIASES += begin_doc_config{1}="\par Configuration Options:^^YAML configuration, which includes the default option values:^^@include \1/Config.yaml ^^Table of options and descriptions:^^<table><tr><th>Name</th><th>Type</th><th>Description</th></tr>"
294-
ALIASES += config_param{3|}="<tr><td>`\1`</td><td>`\2`</td><td>\3</td></tr>"
295-
ALIASES += end_doc="</table>^^"
293+
ALIASES += doc_config{1}="\par Configuration Options:^^YAML configuration, which includes the default option values:^^@include \1/Config.yaml ^^"
296294
# databases
297295
ALIASES += rcdb_note="@note This algorithm uses the RCDB. The RCDB is typically used to access quantities such as beam energy. See iguana::RCDBReader for details; you can access this algorithm's RCDBReader instance by calling GetRCDBReader().^^"
298296
# run functions
@@ -371,7 +369,10 @@ OPTIMIZE_OUTPUT_SLICE = NO
371369
#
372370
# Note see also the list of default file extension mappings.
373371

374-
EXTENSION_MAPPING =
372+
# workaround: using Python syntax coloring for YAML files (viz. Config.yaml),
373+
# since there is no YAML syntax coloring support in Doxygen; this is good
374+
# enough in most cases
375+
EXTENSION_MAPPING = yaml=Python
375376

376377
# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments
377378
# according to the Markdown format, which allows for more readable

src/iguana/algorithms/clas12/EventBuilderFilter/Algorithm.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ namespace iguana::clas12 {
77
/// @algo_brief{Filter the particle bank (`REC::Particle`, or similar) bank by PID from the Event Builder}
88
/// @algo_type_filter
99
///
10-
/// @begin_doc_config{clas12/EventBuilderFilter}
11-
/// @config_param{pids | list[int] | list of PDG codes to filter}
12-
/// @end_doc
10+
/// @doc_config{clas12/EventBuilderFilter}
1311
class EventBuilderFilter : public Algorithm
1412
{
1513

src/iguana/algorithms/clas12/MatchParticleProximity/Algorithm.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ namespace iguana::clas12 {
66

77
/// @algo_brief{Simple particle matching by proximity, for example, MC truth-matching}
88
/// @algo_type_creator
9-
/// @begin_doc_config{clas12/MatchParticleProximity}
10-
/// @config_param{bank_a | string | the particle bank to match from}
11-
/// @config_param{bank_b | string | the particle bank to match to}
12-
/// @end_doc
9+
/// @doc_config{clas12/MatchParticleProximity}
1310
///
1411
/// This algorithm matches one particle bank to another, by smallest proximity, where proximity
1512
/// is the Euclidean distance in (theta,phi) space.

src/iguana/algorithms/clas12/PhotonGBTFilter/Algorithm.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ namespace iguana::clas12 {
1313
///
1414
/// For each photon (labeled the photon of interest or POI), we obtain its intrinsic features (energy, angle, pcal edep, etc.) and features corresponding to its nearest neighbors (angle of proximity, energy difference, etc.). This requires the reading of both the REC::Particle and REC::Calorimeter banks. An input std::vector<float> is produced and passed to the pretrained GBT models, which yield a classification score between 0 and 1. An option variable `threshold` then determines the minimum photon `p-value` to survive the cut.
1515
///
16-
/// @begin_doc_config{clas12/PhotonGBTFilter}
17-
/// @config_param{pass | int | cook type}
18-
/// @config_param{threshold | double | minimum value to qualify a photon as "true"}
19-
/// @end_doc
16+
/// @doc_config{clas12/PhotonGBTFilter}
2017
class PhotonGBTFilter : public Algorithm
2118
{
2219

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
clas12::PhotonGBTFilter:
2-
pass: 1
3-
threshold: 0.78
2+
# which cook
3+
pass: 1
4+
# minimum value to qualify a photon as 'true'
5+
threshold: 0.78

src/iguana/algorithms/clas12/SectorFinder/Algorithm.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ namespace iguana::clas12 {
88
/// @algo_brief{Find the sector for all rows in `REC::Particle`}
99
/// @algo_type_creator
1010
///
11-
/// @begin_doc_config{clas12/SectorFinder}
12-
/// @config_param{bank_charged | string | if not `default`, use this bank for sector finding of charged particles}
13-
/// @config_param{bank_neutral | string | if not `default`, use this bank for sector finding of neutral particles}
14-
/// @end_doc
11+
/// @doc_config{clas12/SectorFinder}
1512
///
1613
/// If `bank_charged` and/or `bank_neutral` is default, then all of the following banks are needed, in addition to `REC::Particle`:
1714
///
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
clas12::SectorFinder:
2-
3-
### use the default banks for both charged/neutral particles
2+
# if not 'default', use this bank for sector finding of charged particles
43
bank_charged: default
4+
# if not 'default', use this bank for sector finding of neutral particles
55
bank_neutral: default
6-
7-
### alternatively, use custom banks; for example:
8-
# bank_charged: default # default bank for charged particles
9-
# bank_neutral: REC::Calorimeter # custom bank for neutral particles

src/iguana/algorithms/clas12/ZVertexFilter/Algorithm.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ namespace iguana::clas12 {
88
/// @algo_brief{Filter a particle bank by cutting on Z Vertex}
99
/// @algo_type_filter
1010
///
11-
/// @begin_doc_config{clas12/ZVertexFilter}
12-
/// @config_param{electron_vz | list[double] | lower and upper electron @f$z@f$-vertex cuts; run-range dependent; cuts are not applied to FT electrons (FD and CD only)}
13-
/// @end_doc
11+
/// @doc_config{clas12/ZVertexFilter}
1412
class ZVertexFilter : public Algorithm
1513
{
1614

src/iguana/algorithms/clas12/ZVertexFilter/Config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ clas12::ZVertexFilter:
55
particle_bank: 'REC::Particle'
66

77
# scattered electron cuts
8+
# - lower and upper electron z-vertex cuts
9+
# - run-range dependent
10+
# - cuts are not applied to FT electrons (FD and CD only)
811
electron:
912

1013
# default cuts

src/iguana/algorithms/clas12/rga/FiducialFilterPass1/Algorithm.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,7 @@ namespace iguana::clas12::rga {
1414
/// - `REC::Particle::Traj`, created by algorithm `iguana::clas12::TrajLinker`
1515
/// - `REC::Particle::Calorimeter`, created by algorithm `iguana::clas12::CalorimeterLinker`
1616
///
17-
/// @begin_doc_config{clas12/rga/FiducialFilterPass1}
18-
/// @config_param{pass | int | cook type to use for assigning fiducial cuts}
19-
/// @config_param{pcal_electron_cut_level | string | cut level for PCAL homogeneous cuts for electrons and positrons, one of: loose, medium, tight}
20-
/// @config_param{pcal_photon_cut_level | string | cut level for PCAL homogeneous cuts for photons, one of: loose, medium, tight}
21-
/// @config_param{enable_pcal_cuts | int | enable (1) or disable (0) PCAL cuts }
22-
/// @config_param{enable_dc_cuts | int | enable (1) or disable (0) DC cuts }
23-
/// @end_doc
17+
/// @doc_config{clas12/rga/FiducialFilterPass1}
2418
class FiducialFilterPass1 : public Algorithm
2519
{
2620

0 commit comments

Comments
 (0)