ATLAS Offline Software
Loading...
Searching...
No Matches
mergeIDTPM Namespace Reference

Functions

 GetCustomAthArgs ()

Variables

 MyArgs
 Parse the arguments.
 otherHaddArgs
 Parse the arguments.
list InputFiles = []
list cmd_1 = [ 'hadd', '-f', MyArgs.outputFileName ] + InputFiles
 hadd inputs
 check
list cmd_1a
 Save hadd non-post-processed output.
list cmd_2 = [ 'postProcessIDTPMHistos', MyArgs.outputFileName, MyArgs.method ]

Function Documentation

◆ GetCustomAthArgs()

mergeIDTPM.GetCustomAthArgs ( )

Definition at line 4 of file mergeIDTPM.py.

4def GetCustomAthArgs() :
5 from argparse import ArgumentParser
6 myparser = ArgumentParser( description='Parser for IDTPM merger' )
7 myparser.add_argument( "-i", "--inputFileNames", help="List (comma- or space-separated) of input files. Regex is allowed.", nargs='+', required=True )
8 myparser.add_argument( "-o", "--outputFileName", help="Output file name", default='IDTPM.output.root' )
9 myparser.add_argument( "-s", "--saveNonPostProcessed", help="Enable debugging messages", action="store_true", default=False )
10 myparser.add_argument( "-m", "--method", help="Method for recomputing resolutions", choices=['iterRMS', 'gaussFit', 'iterRMSgaussFit', 'iterGaussFit', 'None'], default='iterRMS' )
11 return myparser.parse_known_args()
12

Variable Documentation

◆ check

mergeIDTPM.check

Definition at line 29 of file mergeIDTPM.py.

◆ cmd_1

mergeIDTPM.cmd_1 = [ 'hadd', '-f', MyArgs.outputFileName ] + InputFiles

hadd inputs

Definition at line 25 of file mergeIDTPM.py.

◆ cmd_1a

mergeIDTPM.cmd_1a
Initial value:
1= [ 'cp', MyArgs.outputFileName,
2 MyArgs.outputFileName.replace( ".root", "_nonPP.root" ) ]

Save hadd non-post-processed output.

Definition at line 33 of file mergeIDTPM.py.

◆ cmd_2

mergeIDTPM.cmd_2 = [ 'postProcessIDTPMHistos', MyArgs.outputFileName, MyArgs.method ]

Definition at line 40 of file mergeIDTPM.py.

◆ InputFiles

list mergeIDTPM.InputFiles = []

Definition at line 18 of file mergeIDTPM.py.

◆ MyArgs

mergeIDTPM.MyArgs

Parse the arguments.

Definition at line 14 of file mergeIDTPM.py.

◆ otherHaddArgs

mergeIDTPM.otherHaddArgs

Parse the arguments.

Definition at line 14 of file mergeIDTPM.py.