This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| root:backcat [2009/01/14 12:22] – decianm | root:backcat [2009/02/03 12:20] (current) – decianm | ||
|---|---|---|---|
| Line 27: | Line 27: | ||
| ===== C++ Classes BGlatex and convPDGnumber ===== | ===== C++ Classes BGlatex and convPDGnumber ===== | ||
| - | BGlatex takes the output text-file of BGCat and turns it into a LaTeX-table. convPDGnumber converts the Monte Carlo numbers into a string of LaTeX-code. Note that BGlatex needs convPDGnumber, | + | BGlatex takes the output text-file of BGCat and turns it into a LaTeX-table. |
| ==== How to install it ==== | ==== How to install it ==== | ||
| Line 44: | Line 44: | ||
| ==== Notes ==== | ==== Notes ==== | ||
| - | At this moment (09/01/14), all anti-particle numbers are converted into particle-numbers. | + | At this moment (09/01/14), all anti-particle numbers are converted into particle numbers. |
| ===== The PDGlatex()-method ===== | ===== The PDGlatex()-method ===== | ||
| Line 50: | Line 50: | ||
| ==== Notes ==== | ==== Notes ==== | ||
| - | At this moment (09/01/14), no anti-particles are converted | + | At this moment (09/01/14), no anti-particles are implemented. |
| ===== How to use it in ROOT/C++ ===== | ===== How to use it in ROOT/C++ ===== | ||
| Line 63: | Line 63: | ||
| The classes have not really been tested in Python. The following procedure seems to work, though. | The classes have not really been tested in Python. The following procedure seems to work, though. | ||
| Copy the file **libToolClasses.so** in your working directory. Start python and type: | Copy the file **libToolClasses.so** in your working directory. Start python and type: | ||
| - | *import GaudiPython | + | *'' |
| - | *GaudiPython.loaddict(' | + | *'' |
| - | *import sys, ROOT | + | *'' |
| - | + | *'' | |
| + | *'' | ||
| + | *'' | ||
| + | *'' | ||
| + | *CTRL-D | ||
| + | This should have created a file named **BG_cat.tex** in your directory. | ||
| + | ===== Disclaimer ===== | ||
| + | Most of the above programming was done in a Trial-and-Error fashion and things have not been extensively tested. Feel free to add comments or report bugs. | ||
| + | |||