Crombie Tools
CrombieTools.SkimmingTools.HistWriter Namespace Reference

Functions

def MakeHist (inputFile, outputFile='', outputHist='', writer=histWriter)
 

Variables

 histWriter
 
 newHistWriter
 

Detailed Description

@package CrombieTools.SkimmingTools.HistWriter
Submodule of CrombieTools.SkimmingTools.
Contains the constructor and default HistWriter object.

Function Documentation

§ MakeHist()

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.

Variable Documentation

§ histWriter

CrombieTools.SkimmingTools.HistWriter.histWriter

Definition at line 9 of file HistWriter.py.

§ newHistWriter

CrombieTools.SkimmingTools.HistWriter.newHistWriter

Definition at line 8 of file HistWriter.py.