ATLAS Offline Software
Loading...
Searching...
No Matches
python.TRT_RegisterPool Namespace Reference

Functions

 run_command (command)
 run_command_test (command)

Variables

 parser
 action
 help
 required
 True
 default
 args = parser.parse_args()
str genCOND = "cond09_mc.gen.COND" if args.isMC else "condR2_data.gen.COND" if args.prod else "cond09_test.gen.COND"

Function Documentation

◆ run_command()

python.TRT_RegisterPool.run_command ( command)
Run a shell command and handle errors.

Definition at line 5 of file TRT_RegisterPool.py.

5def run_command(command):
6 """Run a shell command and handle errors."""
7 print(f"\n>>> Running: {command}\n")
8 try:
9 subprocess.run(command, shell=True)
10 except subprocess.CalledProcessError as e:
11 print(f"Error: Command failed: {e}")
12 sys.exit(1)
13
void print(char *figname, TCanvas *c1)

◆ run_command_test()

python.TRT_RegisterPool.run_command_test ( command)
Run a shell command and handle errors.

Definition at line 14 of file TRT_RegisterPool.py.

14def run_command_test(command):
15 """Run a shell command and handle errors."""
16 print(f"\n>>> Running: {command}\n")
17
18

Variable Documentation

◆ action

python.TRT_RegisterPool.action

Definition at line 28 of file TRT_RegisterPool.py.

◆ args

python.TRT_RegisterPool.args = parser.parse_args()

Definition at line 32 of file TRT_RegisterPool.py.

◆ default

python.TRT_RegisterPool.default

Definition at line 31 of file TRT_RegisterPool.py.

◆ genCOND

str python.TRT_RegisterPool.genCOND = "cond09_mc.gen.COND" if args.isMC else "condR2_data.gen.COND" if args.prod else "cond09_test.gen.COND"

Definition at line 35 of file TRT_RegisterPool.py.

◆ help

python.TRT_RegisterPool.help

Definition at line 28 of file TRT_RegisterPool.py.

◆ parser

python.TRT_RegisterPool.parser
Initial value:
1= argparse.ArgumentParser(prog='python -m TRT_ConditionsAlgs.TRT_RegisterPool', formatter_class=argparse.RawTextHelpFormatter,
2 description=)

Definition at line 22 of file TRT_RegisterPool.py.

◆ required

python.TRT_RegisterPool.required

Definition at line 30 of file TRT_RegisterPool.py.

◆ True

python.TRT_RegisterPool.True

Definition at line 30 of file TRT_RegisterPool.py.