9 return [key.GetName()
for key
in gDirectory.GetListOfKeys()]
10TFile.GetKeyNames = GetKeyNames
14 print "Too few arguments. Expected the following:"
15 print " 1. Input file"
16 print " 2. Output file"
17 print " 3. Name of component to strip"
20inputFile = TFile.Open(sys.argv[1],
"READ")
21outputFile = TFile.Open(sys.argv[2],
"RECREATE")
25for histName
in inputFile.GetKeyNames():
26 hist = inputFile.Get(histName)
27 if TString(histName).Contains(compName):
28 print "Removing component:",histName