6 Author: Evan K. Friis, UC Davis friis@physics.ucdavis.edu 8 Usage: Prepare copies of all MVA configuration files (*.mvac) with the isolation inputs removed. 9 New copies will be titled *Iso.xml 11 from __future__
import print_function
16 filesToConvert = glob.glob(
"./*.mvac")
18 for aFile
in filesToConvert:
19 xmlFileName = string.replace(aFile,
".mvac",
"Iso.xml")
20 if os.path.exists(xmlFileName):
21 os.system(
"cp %s %s.bak" % (xmlFileName, xmlFileName))
22 os.remove(xmlFileName)
24 print(
"Building %s..." % xmlFileName)
25 os.system(
"cat Preamble.xml.fragment > %s" % xmlFileName)
26 os.system(
"cat Inputs.xml.fragment >> %s" % xmlFileName)
27 os.system(
"cat Helpers.xml.fragment >> %s" % xmlFileName)
28 os.system(
"cat %s | grep -v Outlier >> %s" % (aFile, xmlFileName))
29 os.system(
"cat Finale.xml.fragment >> %s" % xmlFileName)
S & print(S &os, JobReport::InputFile const &f)