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

Functions

 run_command (command)
 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()

python.TRT_DBStatusUpdate.nextstep ( text)

Definition at line 15 of file TRT_DBStatusUpdate.py.

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

◆ run_command()

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

Definition at line 6 of file TRT_DBStatusUpdate.py.

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

str 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.