ATLAS Offline Software
Functions | Variables
SwitchComponentName Namespace Reference

Functions

def GetKeyNames (self, dir="")
 

Variables

 inputFile = TFile.Open(sys.argv[1],"READ")
 
 outputFile = TFile.Open(sys.argv[2],"RECREATE")
 
 compName = sys.argv[3]
 
 newName = sys.argv[4]
 
 hist = inputFile.Get(histName)
 
 newHistName = re.sub(compName,newName,histName)
 

Function Documentation

◆ GetKeyNames()

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

Definition at line 7 of file SwitchComponentName.py.

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

Variable Documentation

◆ compName

SwitchComponentName.compName = sys.argv[3]

Definition at line 23 of file SwitchComponentName.py.

◆ hist

SwitchComponentName.hist = inputFile.Get(histName)

Definition at line 27 of file SwitchComponentName.py.

◆ inputFile

SwitchComponentName.inputFile = TFile.Open(sys.argv[1],"READ")

Definition at line 21 of file SwitchComponentName.py.

◆ newHistName

SwitchComponentName.newHistName = re.sub(compName,newName,histName)

Definition at line 29 of file SwitchComponentName.py.

◆ newName

SwitchComponentName.newName = sys.argv[4]

Definition at line 24 of file SwitchComponentName.py.

◆ outputFile

SwitchComponentName.outputFile = TFile.Open(sys.argv[2],"RECREATE")

Definition at line 22 of file SwitchComponentName.py.

SwitchComponentName.GetKeyNames
def GetKeyNames(self, dir="")
Definition: SwitchComponentName.py:7