ATLAS Offline Software
Functions | Variables
python.TRT_DBStatusUpdate Namespace Reference

Functions

def run_command (command)
 
def nextstep (text)
 

Variables

 parser
 
 action
 
 help
 
 required
 
 True
 
 default
 
 args = parser.parse_args()
 
tuple retag = (args.tag if args.tag else "TrtStrawStatus-WebTest-RUN2-UPD2-00-01")
 
 myupload = input("Uploading MC constants to /TRT/Cond/. Is it for Status (enter 1), is it for StatusHT (2) or is it for StatusPermanent (3)? ")
 

Function Documentation

◆ nextstep()

def python.TRT_DBStatusUpdate.nextstep (   text)

Definition at line 15 of file TRT_DBStatusUpdate.py.

15 def nextstep(text):
16  print("\n"+"#"*100)
17  print("#")
18  print("# %s" % (text))
19  print("#")
20  print("#"*100,"\n")
21 

◆ run_command()

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

Definition at line 6 of file TRT_DBStatusUpdate.py.

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

Variable Documentation

◆ action

python.TRT_DBStatusUpdate.action

Definition at line 31 of file TRT_DBStatusUpdate.py.

◆ args

python.TRT_DBStatusUpdate.args = parser.parse_args()

Definition at line 36 of file TRT_DBStatusUpdate.py.

◆ default

python.TRT_DBStatusUpdate.default

Definition at line 34 of file TRT_DBStatusUpdate.py.

◆ help

python.TRT_DBStatusUpdate.help

Definition at line 31 of file TRT_DBStatusUpdate.py.

◆ myupload

python.TRT_DBStatusUpdate.myupload = input("Uploading MC constants to /TRT/Cond/. Is it for Status (enter 1), is it for StatusHT (2) or is it for StatusPermanent (3)? ")

Definition at line 61 of file TRT_DBStatusUpdate.py.

◆ parser

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

Definition at line 25 of file TRT_DBStatusUpdate.py.

◆ required

python.TRT_DBStatusUpdate.required

Definition at line 33 of file TRT_DBStatusUpdate.py.

◆ retag

string python.TRT_DBStatusUpdate.retag = (args.tag if args.tag else "TrtStrawStatus-WebTest-RUN2-UPD2-00-01")

Definition at line 52 of file TRT_DBStatusUpdate.py.

◆ True

python.TRT_DBStatusUpdate.True

Definition at line 33 of file TRT_DBStatusUpdate.py.

python.TRT_DBStatusUpdate.nextstep
def nextstep(text)
Definition: TRT_DBStatusUpdate.py:15
print
void print(char *figname, TCanvas *c1)
Definition: TRTCalib_StrawStatusPlots.cxx:26
python.TRT_DBStatusUpdate.run_command
def run_command(command)
Definition: TRT_DBStatusUpdate.py:6