@package CrombieTools.SkimmingTools.HistWriter
Submodule of CrombieTools.SkimmingTools.
Contains the constructor and default HistWriter object.
def CrombieTools.SkimmingTools.HistWriter.MakeHist |
( |
|
inputFile, |
|
|
|
outputFile = '' , |
|
|
|
outputHist = '' , |
|
|
|
writer = histWriter |
|
) |
| |
A convenience function for HistWriter assuming the text file is named something you like.
@param inputFile is the text file where the histogram is written out.
@param outputFile is the location where the root histogram will be saved.
If left blank, the name is just the inputFile replaced with .txt changed to .root
@param outputHist is the name of the histogram saved. If left blank, it uses the
basename of the inputFile. (e.g. a/place/hist.txt -> 'hist').
@param writer specifies a HistWriter to use. This is probably rarely, if ever, needs to be changed.
Definition at line 11 of file HistWriter.py.