![]() |
FairShip
|
Functions | |
| None | readHists (h, fname, wanted=None) |
| None | bookHist (h, key=None, str title="", int nbinsx=100, float xmin=0, float xmax=1, int nbinsy=0, float ymin=0, float ymax=1, int nbinsz=0, float zmin=0, float zmax=1) |
| None | bookProf (h, key=None, str title="", int nbinsx=100, float xmin=0, float xmax=1, float|None ymin=None, float|None ymax=None, str option="") |
| None | writeHists (h, fname, bool plusCanvas=False) |
| None | bookCanvas (h, key=None, str title="", int nx=900, int ny=600, int cx=1, int cy=1) |
| None | assignClonesArrayItem (arr, index, obj) |
| None | reportError (s) |
| None | errorSummary () |
| str | checkFileExists (x) |
| bool | checkForBranch (inFile, branchName) |
| tuple[list[str], list[str]] | stage1AbsorberFieldOff (inFile) |
| bool | is_known_particle (int|str code) |
| ROOT.TParticlePDG | get_particle (int|str code) |
Variables | |
| Counter | _error_log = Counter() |
| None rootUtils.assignClonesArrayItem | ( | arr, | |
| index, | |||
| obj ) |
Copy obj into slot `index` of a TClonesArray, expanding it as needed. Item assignment (arr[i] = obj) raises in ROOT >= 6.32; construct the slot and copy-assign into it instead. TVectorD slots are resized to match obj first (TVectorD::operator= requires matching sizes).
Definition at line 136 of file rootUtils.py.
| None rootUtils.bookCanvas | ( | h, | |
| key = None, | |||
| str | title = "", | ||
| int | nx = 900, | ||
| int | ny = 600, | ||
| int | cx = 1, | ||
| int | cy = 1 ) |
Definition at line 127 of file rootUtils.py.
| None rootUtils.bookHist | ( | h, | |
| key = None, | |||
| str | title = "", | ||
| int | nbinsx = 100, | ||
| float | xmin = 0, | ||
| float | xmax = 1, | ||
| int | nbinsy = 0, | ||
| float | ymin = 0, | ||
| float | ymax = 1, | ||
| int | nbinsz = 0, | ||
| float | zmin = 0, | ||
| float | zmax = 1 ) |
Definition at line 61 of file rootUtils.py.
| None rootUtils.bookProf | ( | h, | |
| key = None, | |||
| str | title = "", | ||
| int | nbinsx = 100, | ||
| float | xmin = 0, | ||
| float | xmax = 1, | ||
| float | None | ymin = None, | ||
| float | None | ymax = None, | ||
| str | option = "" ) |
Definition at line 90 of file rootUtils.py.
| str rootUtils.checkFileExists | ( | x | ) |
Definition at line 162 of file rootUtils.py.
| bool rootUtils.checkForBranch | ( | inFile, | |
| branchName ) |
Definition at line 192 of file rootUtils.py.
| None rootUtils.errorSummary | ( | ) |
Definition at line 155 of file rootUtils.py.
| ROOT.TParticlePDG rootUtils.get_particle | ( | int | str | code | ) |
Return the TDatabasePDG entry for a PDG code or particle name; raise ValueError if it is unknown.
Definition at line 243 of file rootUtils.py.
| bool rootUtils.is_known_particle | ( | int | str | code | ) |
Return True if TDatabasePDG knows this PDG code or particle name.
Definition at line 237 of file rootUtils.py.
| None rootUtils.readHists | ( | h, | |
| fname, | |||
| wanted = None ) |
Definition at line 14 of file rootUtils.py.
| None rootUtils.reportError | ( | s | ) |
Definition at line 151 of file rootUtils.py.
| tuple[list[str], list[str]] rootUtils.stage1AbsorberFieldOff | ( | inFile | ) |
Check the FileSummary that run_fixedTarget.py writes for the hadron absorber field. Returns the files without a FileSummary, and the files simulated with a hadron absorber but without its field.
Definition at line 216 of file rootUtils.py.
| None rootUtils.writeHists | ( | h, | |
| fname, | |||
| bool | plusCanvas = False ) |
Definition at line 114 of file rootUtils.py.
|
protected |
Definition at line 11 of file rootUtils.py.