ATLAS Offline Software
Functions | Variables
ConvertOldHistosToNewHistos Namespace Reference

Functions

def GetKeyNames (self, dir="")
 

Variables

 outFileName = sys.argv[1]
 
 inFileName = sys.argv[2]
 
 outFile = TFile.Open(outFileName,"RECREATE")
 
 inFile = TFile.Open(inFileName,"READ")
 
 hist = inFile.Get(histName)
 
 converted = hist
 
list bins = []
 
 binArray = array.array('d',bins)
 
 histNameConverted = None
 

Function Documentation

◆ GetKeyNames()

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

Definition at line 9 of file ConvertOldHistosToNewHistos.py.

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

Variable Documentation

◆ binArray

ConvertOldHistosToNewHistos.binArray = array.array('d',bins)

Definition at line 47 of file ConvertOldHistosToNewHistos.py.

◆ bins

list ConvertOldHistosToNewHistos.bins = []

Definition at line 43 of file ConvertOldHistosToNewHistos.py.

◆ converted

ConvertOldHistosToNewHistos.converted = hist

Definition at line 40 of file ConvertOldHistosToNewHistos.py.

◆ hist

ConvertOldHistosToNewHistos.hist = inFile.Get(histName)

Definition at line 38 of file ConvertOldHistosToNewHistos.py.

◆ histNameConverted

ConvertOldHistosToNewHistos.histNameConverted = None

Definition at line 56 of file ConvertOldHistosToNewHistos.py.

◆ inFile

ConvertOldHistosToNewHistos.inFile = TFile.Open(inFileName,"READ")

Definition at line 35 of file ConvertOldHistosToNewHistos.py.

◆ inFileName

ConvertOldHistosToNewHistos.inFileName = sys.argv[2]

Definition at line 21 of file ConvertOldHistosToNewHistos.py.

◆ outFile

ConvertOldHistosToNewHistos.outFile = TFile.Open(outFileName,"RECREATE")

Definition at line 34 of file ConvertOldHistosToNewHistos.py.

◆ outFileName

ConvertOldHistosToNewHistos.outFileName = sys.argv[1]

Definition at line 20 of file ConvertOldHistosToNewHistos.py.

ConvertOldHistosToNewHistos.GetKeyNames
def GetKeyNames(self, dir="")
Definition: ConvertOldHistosToNewHistos.py:9