User Tools

Site Tools


root:backcat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
root:backcat [2009/01/14 12:07] decianmroot: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, while convPDGnumber can be used separately.+BGlatex takes the output text-file of BGCat and turns it into a LaTeX-table. [[root::convPDGnumber|convPDGnumber]] converts the Monte Carlo numbers into a string of LaTeX-code. Note that BGlatex needs convPDGnumber, while convPDGnumber can be used separately.
  
 ==== How to install it ==== ==== How to install it ====
Line 43: Line 43:
   *Full LaTeX header. Choose true if you want to use the table standalone, false if you want to use it via ''/input'' in your LaTeX-document. Default is true.   *Full LaTeX header. Choose true if you want to use the table standalone, false if you want to use it via ''/input'' in your LaTeX-document. Default is true.
  
 +==== Notes ==== 
 +At this moment (09/01/14), all anti-particle numbers are converted into particle numbers.
  
 ===== The PDGlatex()-method ===== ===== The PDGlatex()-method =====
 The class convPDGnumber has the main method **PDGlatex()**, takes as an argument the Monte Carlo number and returns a string with the LaTeX-expression. This method is called internally by **makeTable()**. The class convPDGnumber has the main method **PDGlatex()**, takes as an argument the Monte Carlo number and returns a string with the LaTeX-expression. This method is called internally by **makeTable()**.
 +
 +==== 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:
 +  *''gSystem->Load("lib/libToolClasses.so")''
 +  *''BGlatex a''
 +  *''a.makeTable()'' (or with arguments)
 +  *''.q''
 +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:
 +  *''import GaudiPython''
 +  *''GaudiPython.loaddict('STLRflx')''
 +  *''import sys, ROOT''
 +  *''import libToolClasses'' It will complain about "dynamic module does not define init function".
 +  *''from ROOT import BGlatex, convPDGnumber'' 
 +  *''a = BGlatex()''
 +  *''a.makeTable()'' (or with arguments)
 +  *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.
 +
  
root/backcat.1231931252.txt.gz · Last modified: 2009/01/14 12:07 by decianm