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

Functions

 GetKeyNames (self, dir="")

Variables

 GetKeyNames
 outFile = TFile.Open(sys.argv[1],"RECREATE")
 primaryFile = TFile.Open(sys.argv[2],"READ")
 updateFile = TFile.Open(sys.argv[3],"READ")
bool addNew = True if len(sys.argv) > 4 and (sys.argv[4] == "TRUE" or sys.argv[4] == "True" or sys.argv[4] == "true") else False
dict updates = {}
 hist = updateFile.Get(histName)
list newHists = []

Function Documentation

◆ GetKeyNames()

SwapComponents.GetKeyNames ( self,
dir = "" )

Definition at line 7 of file SwapComponents.py.

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

Variable Documentation

◆ addNew

bool SwapComponents.addNew = True if len(sys.argv) > 4 and (sys.argv[4] == "TRUE" or sys.argv[4] == "True" or sys.argv[4] == "true") else False

Definition at line 24 of file SwapComponents.py.

◆ GetKeyNames

SwapComponents.GetKeyNames

Definition at line 10 of file SwapComponents.py.

◆ hist

dict SwapComponents.hist = updateFile.Get(histName)

Definition at line 30 of file SwapComponents.py.

◆ newHists

list SwapComponents.newHists = []

Definition at line 36 of file SwapComponents.py.

◆ outFile

SwapComponents.outFile = TFile.Open(sys.argv[1],"RECREATE")

Definition at line 21 of file SwapComponents.py.

◆ primaryFile

SwapComponents.primaryFile = TFile.Open(sys.argv[2],"READ")

Definition at line 22 of file SwapComponents.py.

◆ updateFile

SwapComponents.updateFile = TFile.Open(sys.argv[3],"READ")

Definition at line 23 of file SwapComponents.py.

◆ updates

dict SwapComponents.updates = {}

Definition at line 28 of file SwapComponents.py.