From cf745270cc1505b0172e529de0b7b7197eadd76f Mon Sep 17 00:00:00 2001 From: Mark E Smith <mesmith@lx04.hep.ph.ic.ac.uk> Date: Wed, 19 Mar 2025 21:58:08 +0000 Subject: [PATCH 1/2] fix doc build --- .../tupling/option_davinci_tupling_DTF_pvs.py | 10 +++++++--- .../DaVinciTutorials/tutorial4_trigger_eventinfo.py | 2 +- .../python/DaVinciTutorials/tutorial6_DecayTreeFit.py | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/DaVinciExamples/python/DaVinciExamples/tupling/option_davinci_tupling_DTF_pvs.py b/DaVinciExamples/python/DaVinciExamples/tupling/option_davinci_tupling_DTF_pvs.py index 85cbf1e63..505e3cf73 100644 --- a/DaVinciExamples/python/DaVinciExamples/tupling/option_davinci_tupling_DTF_pvs.py +++ b/DaVinciExamples/python/DaVinciExamples/tupling/option_davinci_tupling_DTF_pvs.py @@ -13,9 +13,13 @@ Example options to show the usage of the DecayTreeFitter with PV constraints. rst_title: DecayTreeFitter with PV constraints rst_description: This example shows how to use DecayTreeFitter with PV constraints. It creates two ntuples. The first ntuple is filled with versions of the DecayTreeFitter algorithm: - A. use a constraint to the PV associated to the particle ("OWNPV"); - B. use a constraint to the best PV from a list; - C. perform multiple fits, each with another PV from the list in the event (WH advices against using this). + + A. use a constraint to the PV associated to the particle ("OWNPV"); + + B. use a constraint to the best PV from a list; + + C. perform multiple fits, each with another PV from the list in the event (WH advices against using this). + To fill the second ntuple, the PV associated to each candidate is first unbiased. Then it fits the new particle list with DecayTreeFitter using the associated PV (method A). rst_running: lbexec DaVinciExamples.tupling.option_davinci_tupling_DTF_pvs:main $DAVINCIEXAMPLESROOT/example_data/test_passthrough_thor_lines.yaml rst_yaml: ../DaVinciExamples/example_data/test_passthrough_thor_lines.yaml diff --git a/DaVinciTutorials/python/DaVinciTutorials/tutorial4_trigger_eventinfo.py b/DaVinciTutorials/python/DaVinciTutorials/tutorial4_trigger_eventinfo.py index c2b042a98..897f3fb06 100644 --- a/DaVinciTutorials/python/DaVinciTutorials/tutorial4_trigger_eventinfo.py +++ b/DaVinciTutorials/python/DaVinciTutorials/tutorial4_trigger_eventinfo.py @@ -40,7 +40,7 @@ The function `get_decreports` takes as input: The `Hlt1` decisions can be stored in similar way to `Hlt2` and `Spruce` (see for example `option_trigger_decisions` in `DaVinciExamples` folder). -For details, one can also refer to this `talk <https://indico.cern.ch/event/1164051/#5-accessing-hlt1-decisions-usi>`_ +For details, one can also refer to this `talk <https://indico.cern.ch/event/1164051/>`_ that shows how to persist Hlt1 decisions, since one needs to add few options to the Moore script. rst_running: lbexec DaVinciTutorials.tutorial3_ThOrfunctors:main $DAVINCITUTORIALSROOT/options.yaml diff --git a/DaVinciTutorials/python/DaVinciTutorials/tutorial6_DecayTreeFit.py b/DaVinciTutorials/python/DaVinciTutorials/tutorial6_DecayTreeFit.py index b671629b1..90c4f3184 100644 --- a/DaVinciTutorials/python/DaVinciTutorials/tutorial6_DecayTreeFit.py +++ b/DaVinciTutorials/python/DaVinciTutorials/tutorial6_DecayTreeFit.py @@ -33,7 +33,7 @@ For more information on DTF see: - the original `article <https://inspirehep.net/literature/679286>`_ - the `LHCb page <https://twiki.cern.ch/twiki/bin/view/LHCb/DecayTreeFitter>`_ - - a lecture from its `author <https://www.nikhef.nl/~wouterh/topicallectures/TrackingAndVertexing/part6.pdf>`_ + - a lecture from its `author <https://www.nikhef.nl/~wouterh/teaching/TrackingAndVertexing/part6.pdf>`_ rst_running: lbexec DaVinciTutorials.tutorial6_DecayTreeFit:main $DAVINCITUTORIALSROOT/options.yaml rst_yaml: ../DaVinciTutorials/options.yaml -- GitLab From 16134a0a368dc2729efbcc5aa2eacbe37626e41a Mon Sep 17 00:00:00 2001 From: Mark E Smith <mesmith@lx04.hep.ph.ic.ac.uk> Date: Wed, 19 Mar 2025 22:13:31 +0000 Subject: [PATCH 2/2] reorder --- doc/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/conf.py b/doc/conf.py index 3da52be09..9e9e50f77 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -43,12 +43,12 @@ extensions = [ "sphinx_rtd_theme", "sphinx.ext.autodoc", "sphinx.ext.napoleon", + "autoapi.extension", "sphinx.ext.viewcode", "sphinx.ext.graphviz", "sphinx.ext.todo", "graphviz_linked", "sphinxcontrib.autodoc_pydantic", - "autoapi.extension", ] # Control the display of the DaVinci.Options object -- GitLab