6 Merge multiple input HITS files into a single output HITS file.
7 Optionally run algorithms to tweak the output. Optionally merge Log
8 file tarballs at the same time.
19 msg.info(
'logging set in %s' % sys.argv[0])
23 from PyJobTransforms.trfArgs
import addAthenaArguments, addDetectorArguments
24 from SimuJobTransforms.simTrfArgs
import addHITSMergeArgs
25 from PyJobTransforms.trfDecorators
import stdTrfExceptionHandler, sigUsrStackTrace
30 ListOfDefaultPositionalKeys=[
'--DBRelease',
'--amiConfig',
'--amiMetadataTag',
'--asetup',
'--athena',
'--athenaopts',
'--beamType',
'--checkEventCount',
'--command',
'--conditionsTag',
'--env',
'--eventAcceptanceEfficiency',
'--execOnly',
'--geometryVersion',
'--ignoreErrors',
'--ignoreFiles',
'--ignorePatterns',
'--imf',
'--inputHITSFile',
'--inputLogsFile',
'--maxEvents',
'--outputHITS_MRGFile',
'--postExec',
'--postInclude',
'--preExec',
'--preInclude',
'--reportName',
'--reportType',
'--runNumber',
'--showGraph',
'--showPath',
'--showSteps',
'--skipEvents',
'--skipFileValidation',
'--skipInputFileValidation',
'--skipOutputFileValidation',
'--tcmalloc']
32 @stdTrfExceptionHandler
36 msg.info(
'This is %s' % sys.argv[0])
39 trf.parseCmdLineArgs(sys.argv[1:])
41 if 'outputFileValidation' in trf._argdict
and trf._argdict[
'outputFileValidation'].value
is False:
42 msg.info(
'Skipping report generation')
46 msg.info(
"%s stopped at %s, trf exit code %d" % (sys.argv[0], time.asctime(), trf.exitCode))
47 sys.exit(trf.exitCode)
51 from SimuJobTransforms.SimTransformUtils
import addStandardHITSMergeSubstep, addHITSMergeArguments
53 trf =
transform(executor = executorSet, description =
'HITS Merging transform. Inputs must be HITS. Outputs must be HITS_MRG (i.e. HITS). ')
69 if __name__ ==
'__main__':