ATLAS Offline Software
Loading...
Searching...
No Matches
runIDTPM_Offl.MyParser Class Reference
Inheritance diagram for runIDTPM_Offl.MyParser:
Collaboration diagram for runIDTPM_Offl.MyParser:

Public Member Functions

 exit (self, status=0, message=None)

Detailed Description

Definition at line 16 of file runIDTPM_Offl.py.

Member Function Documentation

◆ exit()

runIDTPM_Offl.MyParser.exit ( self,
status = 0,
message = None )

Definition at line 17 of file runIDTPM_Offl.py.

17 def exit( self, status=0, message=None ):
18 if message: print(message, end='') # print default help message
19 # Add runIDTPM.py standard help message
20 print( "\n\nStandard runIDTPM.py options:" )
21 oldhelp = subprocess.run( ["runIDTPM.py", "-h"], capture_output=True, text=True ).stdout
22 keep = False
23 newhelp_list = []
24 for line in oldhelp.splitlines():
25 if keep :
26 if "trkAnaCfgFile" in line or "track analysis setup" in line: continue
27 newhelp_list.append(line)
28 elif "options:" in line: keep = True
29 newhelp = "\n".join( newhelp_list )
30 print( f"{newhelp}" )
31 super().exit( status )
32
void print(char *figname, TCanvas *c1)

The documentation for this class was generated from the following file: