Skip to content

Commit

Permalink
doc: add more details to the user guide (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks authored Feb 14, 2025
1 parent f196ee6 commit 0ea0425
Show file tree
Hide file tree
Showing 26 changed files with 299 additions and 309 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ chameleon-tree
*.png

# overrides
!doc/logo.png
!doc/gen/logo.png
!doc/gen/logo_small.png

# misc. artifacts
.DS_Store
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<img src="./doc/logo.png" width=50%/>
<img src="./doc/gen/logo.png" width=50%/>

## Iguana: Implementation Guardian of Analysis Algorithms

Expand All @@ -16,15 +16,13 @@ Iguana is not a framework for _reading_ data, rather it is a set of algorithms t
### For Users
1. [**Iguana User's Guide**](https://jeffersonlab.github.io/iguana/doxygen)
1. [Setup Guide - how to build and install Iguana](doc/setup.md)
1. [Configuring the Algorithms](doc/configuration.md)
1. [Troubleshooting](doc/troubleshooting.md)

#### Language Bindings
1. [Python](/bind/python/README.md)
1. [All others: see the Iguana User's guide](https://jeffersonlab.github.io/iguana/doxygen)

### For Developers
1. [Design Notes](doc/design.md)
1. [Developing a new Algorithm](src/iguana/algorithms/example/ExampleAlgorithm/README.md)
1. [Algorithm Tests and Validators](doc/testing.md)
1. [Repository Maintenance](doc/maintenance.md)
Expand Down
5 changes: 3 additions & 2 deletions bind/python/iguana_ex_python_00_run_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"REC::Calorimeter",
"REC::Track",
"REC::Scintillator"])
b_particle = hipo.getBanklistIndex(banks, "REC::Particle")

seq = iguana.AlgorithmSequence('pyiguana')
seq.Add('clas12::EventBuilderFilter')
Expand All @@ -47,9 +48,9 @@ def prettyPrint(message, bank):
seq.Start(banks)
while(reader.next(banks) and (numEvents==0 or iEvent < numEvents)):
iEvent += 1
prettyPrint("BEFORE", banks[1])
prettyPrint("BEFORE", banks[b_particle])
seq.Run(banks)
prettyPrint("AFTER", banks[1])
prettyPrint("AFTER", banks[b_particle])

seq.Stop()

Expand Down
7 changes: 5 additions & 2 deletions bind/python/iguana_ex_python_01_action_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
reader = hipo.reader(inFile)
banks = reader.getBanks(["REC::Particle", "RUN::config"]);

b_particle = hipo.getBanklistIndex(banks, "REC::Particle")
b_config = hipo.getBanklistIndex(banks, "RUN::config")

algo_eventbuilder_filter = iguana.clas12.EventBuilderFilter()
algo_momentum_correction = iguana.clas12.MomentumCorrection()

Expand All @@ -41,8 +44,8 @@
while(reader.next(banks) and (numEvents==0 or iEvent < numEvents)):
iEvent += 1

particleBank = banks[0]
configBank = banks[1]
particleBank = banks[b_particle]
configBank = banks[b_config]
particleBank.show()

for row in particleBank.getRowList():
Expand Down
58 changes: 0 additions & 58 deletions doc/configuration.md

This file was deleted.

142 changes: 0 additions & 142 deletions doc/design.md

This file was deleted.

19 changes: 11 additions & 8 deletions doc/gen/Doxyfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ PROJECT_BRIEF = "Implementation Guardian of Analysis Algorithms"
# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy
# the logo to the output directory.

PROJECT_LOGO =
PROJECT_LOGO = @top_srcdir@/doc/gen/logo_small.png

# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path
# into which the generated documentation will be written. If a relative path is
Expand Down Expand Up @@ -291,7 +291,7 @@ 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>"
# configuration options
ALIASES += begin_doc_config="\par Configuration Options:^^<table><tr><th>Name</th><th>Type</th><th>Description</th></tr>"
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>"
ALIASES += config_param{3|}="<tr><td>`\1`</td><td>`\2`</td><td>\3</td></tr>"
# action functions
ALIASES += action_function{1}="\xrefitem action \"Function Type\" \"List of all Action Functions\" \1 \brief **Action Function:** "
Expand All @@ -304,6 +304,8 @@ ALIASES += doxygen_off="@cond NO_DOC"
ALIASES += doxygen_on="@endcond"
# latex
ALIASES += latex{1}="@f$\1@f$"
# misc
ALIASES += spacer="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"

# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
Expand Down Expand Up @@ -1010,6 +1012,7 @@ INPUT_FILE_ENCODING =

FILE_PATTERNS = *.dox \
*.h \
Config.yaml \
chameleon_*_bind.cc \
iguana_ex_*.cc \
iguana_ex_*.py \
Expand Down Expand Up @@ -1059,7 +1062,7 @@ EXCLUDE_SYMBOLS =
# that contain example code fragments that are included (see the \include
# command).

EXAMPLE_PATH =
EXAMPLE_PATH = @top_srcdir@/src/iguana/algorithms

# If the value of the EXAMPLE_PATH tag contains directories, you can use the
# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and
Expand All @@ -1079,7 +1082,7 @@ EXAMPLE_RECURSIVE = NO
# that contain images that are to be included in the documentation (see the
# \image command).

IMAGE_PATH =
IMAGE_PATH = @top_srcdir@/doc/gen/logo.png

# The INPUT_FILTER tag can be used to specify a program that doxygen should
# invoke to filter for each input file. Doxygen will invoke the filter program
Expand Down Expand Up @@ -1362,7 +1365,7 @@ HTML_EXTRA_FILES =
# The default value is: AUTO_LIGHT.
# This tag requires that the tag GENERATE_HTML is set to YES.

HTML_COLORSTYLE = AUTO_LIGHT
HTML_COLORSTYLE = TOGGLE

# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen
# will adjust the colors in the style sheet and background images according to
Expand All @@ -1373,7 +1376,7 @@ HTML_COLORSTYLE = AUTO_LIGHT
# Minimum value: 0, maximum value: 359, default value: 220.
# This tag requires that the tag GENERATE_HTML is set to YES.

HTML_COLORSTYLE_HUE = 220
HTML_COLORSTYLE_HUE = 120

# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors
# in the HTML output. For a value of 0 the output will use gray-scales only. A
Expand All @@ -1392,7 +1395,7 @@ HTML_COLORSTYLE_SAT = 100
# Minimum value: 40, maximum value: 240, default value: 80.
# This tag requires that the tag GENERATE_HTML is set to YES.

HTML_COLORSTYLE_GAMMA = 80
HTML_COLORSTYLE_GAMMA = 100

# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
# documentation will contain a main index with vertical navigation menus that
Expand Down Expand Up @@ -1670,7 +1673,7 @@ DISABLE_INDEX = NO
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.

GENERATE_TREEVIEW = NO
GENERATE_TREEVIEW = YES

# When both GENERATE_TREEVIEW and DISABLE_INDEX are set to YES, then the
# FULL_SIDEBAR option determines if the side bar is limited to only the treeview
Expand Down
Loading

0 comments on commit 0ea0425

Please sign in to comment.