This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
root:backcat [2009/01/14 11:53] – decianm | root:backcat [2009/02/03 12:20] (current) – decianm | ||
---|---|---|---|
Line 6: | Line 6: | ||
===== Components ===== | ===== Components ===== | ||
There are 3 components: | There are 3 components: | ||
- | * A DaVinci algorithm, that writes the decay string in a text-file. | + | * BGCat: |
- | * A standalone C++ class, that puts the decay-string in a formatted LaTeX-table. | + | * BGlatex: |
- | * A standalone C++ class, that converts the Monte Carlo particle numbers in a LaTeX-string with the particle name. | + | * convPDGnumber: |
===== DaVinci Algorithm BGCat ===== | ===== DaVinci Algorithm BGCat ===== | ||
- | This algorithm takes your reconstruced mother particle from CombineParticles, | + | This algorithm takes your reconstruced mother particle from CombineParticles, |
In your **options-file**, | In your **options-file**, | ||
< | < | ||
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 33: | Line 33: | ||
* Type '' | * Type '' | ||
* After it is finished, you should have a **libToolClasses.so** shared object in the folder ''/ | * After it is finished, you should have a **libToolClasses.so** shared object in the folder ''/ | ||
+ | * Copy the **BG_cat.txt** of the DaVinci Algorithm in this directory. This is not absolutely necessary, but makes it a bit easier. | ||
+ | ===== The makeTable()-method ===== | ||
+ | The class BGlatex has the main method **makeTable()**. It takes five arguments: | ||
+ | *The input file name. Default is: BG_cat.txt | ||
+ | *The output file name. Defaul is: BG_cat.tex | ||
+ | *The numbers of decays per table. This will create a second, third table after a certain amount of decays in the table, and prevents LaTeX from spreading the table over the bottom of the page. Default is: 15 | ||
+ | *The number of characters per line. This will create a second, third row in the table after a certain amount of characters per line, and prevents LaTeX from spreading the table of the right margin of the page. Default is: 20 | ||
+ | *Full LaTeX header. Choose true if you want to use the table standalone, false if you want to use it via ''/ | ||
+ | ==== Notes ==== | ||
+ | At this moment (09/01/14), all anti-particle numbers are converted into particle numbers. | ||
+ | ===== The PDGlatex()-method ===== | ||
+ | The class convPDGnumber has the main method **PDGlatex()**, | ||
+ | |||
+ | ==== Notes ==== | ||
+ | At this moment (09/01/14), no anti-particles are implemented. | ||
+ | |||
+ | ===== How to use it in ROOT/C++ ===== | ||
+ | The classes have been tested to work with ROOT. To use them, start ROOT and type: | ||
+ | *'' | ||
+ | *'' | ||
+ | *'' | ||
+ | *'' | ||
+ | This should have created a file named **BG_cat.tex** in your directory. | ||
+ | |||
+ | ===== How to use it in Python ===== | ||
+ | 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: | ||
+ | *'' | ||
+ | *'' | ||
+ | *'' | ||
+ | *'' | ||
+ | *'' | ||
+ | *'' | ||
+ | *'' | ||
+ | *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. | ||