ATLAS Offline Software
Loading...
Searching...
No Matches
SwitchComponentName Namespace Reference

Functions

 GetKeyNames (self, dir="")

Variables

 GetKeyNames
 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()

SwitchComponentName.GetKeyNames ( self,
dir = "" )

Definition at line 7 of file SwitchComponentName.py.

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

Variable Documentation

◆ compName

SwitchComponentName.compName = sys.argv[3]

Definition at line 23 of file SwitchComponentName.py.

◆ GetKeyNames

SwitchComponentName.GetKeyNames

Definition at line 10 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.