ATLAS Offline Software
Functions | Variables
CompareRootFiles Namespace Reference

Functions

def GetKeyNames (self, dir="")
 

Variables

 inFile1 = TFile.Open(sys.argv[1],"READ")
 
 inFile2 = TFile.Open(sys.argv[2],"READ")
 
 outFile = TFile.Open(sys.argv[3],"RECREATE")
 
 hist1 = inFile1.Get(histName)
 
 hist2 = inFile2.Get(histName)
 

Function Documentation

◆ GetKeyNames()

def CompareRootFiles.GetKeyNames (   self,
  dir = "" 
)

Definition at line 8 of file CompareRootFiles.py.

8 def GetKeyNames(self,dir=""):
9  self.cd(dir)
10  return [key.GetName() for key in gDirectory.GetListOfKeys()]
11 TFile.GetKeyNames = GetKeyNames
12 
13 

Variable Documentation

◆ hist1

CompareRootFiles.hist1 = inFile1.Get(histName)

Definition at line 36 of file CompareRootFiles.py.

◆ hist2

CompareRootFiles.hist2 = inFile2.Get(histName)

Definition at line 37 of file CompareRootFiles.py.

◆ inFile1

CompareRootFiles.inFile1 = TFile.Open(sys.argv[1],"READ")

Definition at line 21 of file CompareRootFiles.py.

◆ inFile2

CompareRootFiles.inFile2 = TFile.Open(sys.argv[2],"READ")

Definition at line 22 of file CompareRootFiles.py.

◆ outFile

CompareRootFiles.outFile = TFile.Open(sys.argv[3],"RECREATE")

Definition at line 23 of file CompareRootFiles.py.

CompareRootFiles.GetKeyNames
def GetKeyNames(self, dir="")
Definition: CompareRootFiles.py:8