Skip to content

Commit

Permalink
Fix formatting for skeleton lessons.
Browse files Browse the repository at this point in the history
  • Loading branch information
roelaaij committed May 19, 2016
1 parent a1fc471 commit c2e0f04
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
14 changes: 8 additions & 6 deletions 19-turbo.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ minutes: 30
> * Learn how to make new candidates from turbo candidate and other persisted objects
> * Learn how to make an NTuple from these new candidates.
Online-offline reco the same
Online reconstructed candidates stored in raw event
Tesla pulls them out puts them back in the memory
* Online-offline reco the same
* Online reconstructed candidates stored in raw event
* Tesla pulls them out puts them back in the memory

The file used in the [lesson about the HLT ](05-hlt-intro.html) can also be
used for this lesson: `root://eoslhcb.cern.ch//eos/lhcb/user/r/raaij/Impactkit/00051318_00000509_1.turbo.mdst`.
| The file used in the [lesson about the HLT ](18-hlt-intro.html) can also be used for this lesson:
| `root://eoslhcb.cern.ch//eos/lhcb/user/r/raaij/Impactkit/00051318_00000509_1.turbo.mdst`.

Python file that defines the data:

~~~ {.python}
# data.py
from GaudiConf import IOHelper
Expand All @@ -28,6 +29,7 @@ IOHelper('ROOT').inputFiles([prefix + fname], clear=True)
~~~

Basic script for making a turbo NTuple `turbo_intro.py`

~~~ {.python}
# DaVinci configuration
from Configurables import DaVinci
Expand Down Expand Up @@ -56,5 +58,5 @@ DaVinci().UserAlgorithms = [dtt]
Then we run it!

```shell
lb-run DaVinci gaudirun.py turbo_persistreco.py data.py
lb-run DaVinci gaudirun.py turbo_intro.py data.py
```
10 changes: 7 additions & 3 deletions 20-persist-reco.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ Now we want to use the PersistReco to make something more from the candidates,
in this case a D* -> (D0 -> K pi) pi.

Create a new script, `turbo_persistreco.py`, based on `turbo_intro.py` from the
previous lesson to contain your configuration.
[lesson about turbo ](19-turbo.html) to contain your configuration.

There are some general options needed to configure DaVinci to recreate the
particles created in the HLT.

~~~ {.python}
# Turbo with PersistReco
from Configurables import DstConf, TurboConf
Expand All @@ -31,8 +32,10 @@ them.

> ## Persisted Particles {.challenge}
>
> Use a GaudiPython script to find out which particles are persisted from the
> online reconstruction.
> Use a GaudiPython script inspired by
> [another lesson](http://lhcb.github.io/first-analysis-steps/05-interactive-dst.html)
> to find out which particles are persisted from the
> online reconstruction by exploring the transient event store.
~~~ {.python}
# Get the D0 and the pions
Expand All @@ -50,6 +53,7 @@ dst = CombineParticles(
~~~

To run our combination, we create a selection and a selection sequence.

~~~ {.python}
dst_sel = Selection(
'Sel_DstToD0pi',
Expand Down

0 comments on commit c2e0f04

Please sign in to comment.