Skip to content

Commit

Permalink
doc: add algorithm full name to API documentation (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks authored May 30, 2024
1 parent bb81fe9 commit 6dbb32b
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion doc/gen/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ TAB_SIZE = 4
ALIASES =
# algorithm properties
ALIASES += brief_algo="@brief **%Algorithm:** "
ALIASES += begin_doc_algo{1}="\xrefitem algo \"Algorithm Type:\" \"List of all Algorithms\" \1 \par %Algorithm Properties:^^<table>"
ALIASES += begin_doc_algo{2|}="\par %Algorithm Name:^^&emsp;&emsp;&emsp;`%\1`\xrefitem algo \"Algorithm Type:\" \"List of all Algorithms\" \2 \par %Algorithm Inputs and Outputs:^^<table>"
ALIASES += input_banks{1}="<tr><td>**Input Banks**</td><td>`\1`</td></tr>"
ALIASES += output_banks{1}="<tr><td>**Output Banks**</td><td>`\1`</td></tr>"
ALIASES += end_doc="</table>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace iguana::clas12 {

/// @brief_algo Filter the `REC::Particle` (or similar) bank by PID from the Event Builder
///
/// @begin_doc_algo{Filter}
/// @begin_doc_algo{clas12::EventBuilderFilter | Filter}
/// @input_banks{REC::Particle}
/// @output_banks{REC::Particle}
/// @end_doc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace iguana::clas12 {

/// @brief_algo Forward Tagger energy correction
///
/// @begin_doc_algo{Transformer}
/// @begin_doc_algo{clas12::FTEnergyCorrection | Transformer}
/// @input_banks{RECFT::Particle}
/// @output_banks{RECFT::Particle}
/// @end_doc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace iguana::clas12 {

/// @brief_algo Lorentz transform momenta in `REC::Particle` (or similar banks)
///
/// @begin_doc_algo{Transformer}
/// @begin_doc_algo{clas12::LorentzTransformer | Transformer}
/// @input_banks{REC::Particle}
/// @output_banks{REC::Particle}
/// @end_doc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace iguana::clas12 {
///
/// Adapted from <https://clasweb.jlab.org/wiki/index.php/CLAS12_Momentum_Corrections#tab=Correction_Code>
///
/// @begin_doc_algo{Transformer}
/// @begin_doc_algo{clas12::MomentumCorrection | Transformer}
/// @input_banks{RUN::config, REC::Particle, REC::Particle::Sector}
/// @output_banks{REC::Particle}
/// @end_doc
Expand Down
4 changes: 2 additions & 2 deletions src/iguana/algorithms/clas12/PhotonGBTFilter/Algorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace iguana::clas12 {
///
/// 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.
///
/// @begin_doc_algo{Filter}
/// @begin_doc_algo{clas12::PhotonGBTFilter | Filter}
/// @input_banks{REC::Particle, REC::Calorimeter, RUN::config}
/// @output_banks{REC::Particle}
/// @end_doc
Expand Down Expand Up @@ -146,4 +146,4 @@ namespace iguana::clas12 {
};
};

}
}
2 changes: 1 addition & 1 deletion src/iguana/algorithms/clas12/SectorFinder/Algorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace iguana::clas12 {

/// @brief_algo Find the sector for all rows in `REC::Particle`
///
/// @begin_doc_algo{Creator}
/// @begin_doc_algo{clas12::SectorFinder | Creator}
/// @input_banks{REC::Particle}
/// @output_banks{%REC::Particle::Sector}
/// @end_doc
Expand Down
2 changes: 1 addition & 1 deletion src/iguana/algorithms/clas12/ZVertexFilter/Algorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace iguana::clas12 {

/// @brief_algo Filter the `REC::Particle` (or similar) bank by cutting on Z Vertex
///
/// @begin_doc_algo{Filter}
/// @begin_doc_algo{clas12::ZVertexFilter | Filter}
/// @input_banks{REC::Particle}
/// @output_banks{REC::Particle}
/// @end_doc
Expand Down
2 changes: 1 addition & 1 deletion src/iguana/algorithms/example/ExampleAlgorithm/Algorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace iguana::example {
///
/// Provide a more detailed description of your algorithm here.
///
/// @begin_doc_algo{Filter}
/// @begin_doc_algo{example::ExampleAlgorithm | Filter}
/// @input_banks{REC::Particle}
/// @output_banks{REC::Particle}
/// @end_doc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace iguana::physics {

/// @brief_algo Calculate inclusive kinematics quantities defined in `iguana::physics::InclusiveKinematicsVars`
///
/// @begin_doc_algo{Creator}
/// @begin_doc_algo{physics::InclusiveKinematics | Creator}
/// @input_banks{REC::Particle}
/// @output_banks{%physics::InclusiveKinematics}
/// @end_doc
Expand Down

0 comments on commit 6dbb32b

Please sign in to comment.