This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| root:pythonrootconstructors [2009/06/08 14:24] – created abuechle | root:pythonrootconstructors [2009/07/25 13:22] (current) – decianm | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | How use a ROOT constructor which needs pointers as arguments. \\ | + | ====== |
| For example to create a histogram with variable bin width, the constructor needs a pointer to the array of the lowEdges (xbins). | For example to create a histogram with variable bin width, the constructor needs a pointer to the array of the lowEdges (xbins). | ||
| < | < | ||
| Line 5: | Line 6: | ||
| </ | </ | ||
| - | To make Root understand the pointer use the **array** class. | + | To make pyRoot |
| < | < | ||
| from ROOT import * | from ROOT import * | ||
| Line 12: | Line 13: | ||
| binLowE = [2, | binLowE = [2, | ||
| uniformTau = TH1D(" | uniformTau = TH1D(" | ||
| - | |||
| </ | </ | ||