71 if "Athena" in opts.athena_project:
73 for item
in RECO_TF_TURLS[
"RDO"]:
74 name = os.path.join(
"test",
"test_directioart_athena_recotf_with_rdo_{}.sh".
format(item.keys()[0].lower()))
76 outfile =
open(name,
'w')
78 outstring =
"""#!/bin/bash\n
79 # art-description: DirectIOART Athena Reco_tf.py inputFile:RDO protocol={protocol}
81 # art-output: *.pool.root
82 # art-include: 21.0/Athena
83 # art-include: main/Athena\n
85 Reco_tf.py --AMI q221 --inputRDOFile {turl} --outputRDO_TRIGFile art.pool.root\n
86 echo \"art-result: $? DirectIOART_Athena_RecoTF_inputRDO_protocol_{protocol}\"""".
format(turl=item.values()[0], protocol=item.keys()[0])
87 outfile.write(outstring)
89 os.system(
"chmod +x " + name)
92 name = os.path.join(
"test",
"test_directioart_athenamp_recotf_with_rdo_{}.sh".
format(item.keys()[0].lower()))
94 outfile =
open(name,
'w')
96 outstring =
"""#!/bin/bash\n
97 # art-description: DirectIOART AthenaMP Reco_tf.py inputFile:RDO protocol={protocol}
99 # art-output: *.pool.root
100 # art-include: 21.0/Athena
101 # art-include: main/Athena\n
103 export ATHENA_CORE_NUMBER=2
104 Reco_tf.py --AMI q221 --multiprocess --inputRDOFile {turl} --outputRDO_TRIGFile art.pool.root\n
105 echo \"art-result: $? DirectIOART_AthenaMP_RecoTF_inputRDO_protocol_{protocol}\"""".
format(turl=item.values()[0], protocol=item.keys()[0])
106 outfile.write(outstring)
108 os.system(
"chmod +x " + name)
111 for item
in RECO_TF_TURLS[
"RAW"]:
112 name = os.path.join(
"test",
"test_directioart_athena_recotf_with_raw_{}.sh".
format(item.keys()[0].lower()))
114 outfile =
open(name,
'w')
116 outstring =
"""#!/bin/bash\n
117 # art-description: DirectIOART Athena Reco_tf.py inputFile:RAW protocol={protocol}
119 # art-output: *.pool.root
120 # art-include: 21.0/Athena
121 # art-include: main/Athena\n
123 Reco_tf.py --AMI q431 --inputBSFile {turl} --outputESDFile art.pool.root\n
124 echo \"art-result: $? DirectIOART_Athena_RecoTF_inputBS_protocol_{protocol}\"""".
format(turl=item.values()[0], protocol=item.keys()[0])
125 outfile.write(outstring)
127 os.system(
"chmod +x " + name)
130 name = os.path.join(
"test",
"test_directioart_athenamp_recotf_with_raw_{}.sh".
format(item.keys()[0].lower()))
132 outfile =
open(name,
'w')
134 outstring =
"""#!/bin/bash\n
135 # art-description: DirectIOART AthenaMP Reco_tf.py inputFile:RAW protocol={protocol}
137 # art-output: *.pool.root
138 # art-include: 21.0/Athena
139 # art-include: main/Athena\n
141 export ATHENA_CORE_NUMBER=2
142 Reco_tf.py --AMI q431 --multiprocess --inputBSFile {turl} --outputESDFile art.pool.root\n
143 echo \"art-result: $? DirectIOART_AthenaMP_RecoTF_inputBS_protocol_{protocol}\"""".
format(turl=item.values()[0], protocol=item.keys()[0])
144 outfile.write(outstring)
146 os.system(
"chmod +x " + name)
149 if "AthDerivation" in opts.athena_project:
151 for i
in xrange(len(TFILE_OPEN_TURLs)):
153 for key, value
in TFILE_OPEN_TURLs[i].
items():
154 name = os.path.join(
"test",
"test_directioart_athderivation_recotf_with_aod_{}.sh".
format(key.lower()))
156 outfile =
open(name,
'w')
158 outstring =
"""#!/bin/bash\n
159 # art-description: DirectIOART AthDerivation Reco_tf.py inputFile:RDO protocol={protocol} reductionConf:TEST1
161 # art-output: *.pool.root
162 # art-include: 21.2/AthDerivation\n
164 Reco_tf.py --inputAODFile {turl} --outputDAODFile art.pool.root --reductionConf TEST1 --maxEvents 100\n
165 echo \"art-result: $? DirectIOART_AthDerivation_RecoTF_inputAOD_protocol_{protocol}_TEST1\"""".
format(turl=value[0], protocol=key)
166 outfile.write(outstring)
168 os.system(
"chmod +x " + name)