ATLAS Offline Software
Functions | Variables
SwapComponents Namespace Reference

Functions

def GetKeyNames (self, dir="")
 

Variables

 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
 
dictionary updates = {}
 
 hist = updateFile.Get(histName)
 
list newHists = []
 

Function Documentation

◆ GetKeyNames()

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

Definition at line 7 of file SwapComponents.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

◆ 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.

◆ hist

dictionary 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

dictionary SwapComponents.updates = {}

Definition at line 28 of file SwapComponents.py.

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