ATLAS Offline Software
Functions | Variables
python.TRT_RegisterPool Namespace Reference

Functions

def run_command (command)
 
def run_command_test (command)
 

Variables

 parser
 
 action
 
 help
 
 default
 
 args = parser.parse_args()
 
string 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()

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

Definition at line 5 of file TRT_RegisterPool.py.

5 def 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 

◆ run_command_test()

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

Definition at line 14 of file TRT_RegisterPool.py.

14 def 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 30 of file TRT_RegisterPool.py.

◆ genCOND

string 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 36 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.

python.TRT_RegisterPool.run_command
def run_command(command)
Definition: TRT_RegisterPool.py:5
python.TRT_RegisterPool.run_command_test
def run_command_test(command)
Definition: TRT_RegisterPool.py:14
print
void print(char *figname, TCanvas *c1)
Definition: TRTCalib_StrawStatusPlots.cxx:25