/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Public Attributes
mergeFiles::MergeRoot Class Reference

List of all members.

Public Member Functions

def __init__
def merge

Public Attributes

 inputFilenames
 outputFilename
 outputFile

Detailed Description

Merge histograms in ROOT files

Definition at line 23 of file mergeFiles.py.


Constructor & Destructor Documentation

def mergeFiles::MergeRoot::__init__ (   self,
  inputFilenames,
  outputFilename 
)
Constructor

Definition at line 25 of file mergeFiles.py.

00026                                                     :
00027         """Constructor"""
00028         self.inputFilenames = inputFilenames
00029         self.outputFilename = outputFilename
00030         self.outputFile = None
00031         return


Member Function Documentation

def mergeFiles::MergeRoot::merge (   self)
Merge input paths to output path

Definition at line 32 of file mergeFiles.py.

00033                    :
00034         """Merge input paths to output path"""
00035         TH1.AddDirectory(False)
00036         self.outputFile = TFile(self.outputFilename, "RECREATE")
00037         for filename in self.inputFilenames:
00038             print "Processing input: ",filename
00039             inputFile = TFile( filename ) 
00040             ROOT.mergeDirectories("",inputFile,self.outputFile)
00041             inputFile.Close()
00042         #Close Output files
00043         self.outputFile.Write()
00044         self.outputFile.Close()
00045         return


Member Data Documentation

Definition at line 25 of file mergeFiles.py.

Definition at line 25 of file mergeFiles.py.

Definition at line 25 of file mergeFiles.py.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:54:09 for RunDiagnostics by doxygen 1.7.4