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

Functions

 run_command (command)
 nextstep (text)

Variables

 parser
 action
 help
 required
 True
 args = parser.parse_args()
str tagt0 = "TrtCalibT0-Webtest-RUN2-UPD1-00-00"
str tagrt = "TrtCalibRt-Webtest-RUN2-UPD1-00-00"
 tag = input("\nUploading T0s. What is the name of target tag (example: TrtCalibT0-MC-run3-test-00)? ")

Function Documentation

◆ nextstep()

python.TRT_DBUpdate.nextstep ( text)

Definition at line 15 of file TRT_DBUpdate.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_DBUpdate.run_command ( command)
Run a shell command and handle errors.

Definition at line 6 of file TRT_DBUpdate.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_DBUpdate.action

Definition at line 31 of file TRT_DBUpdate.py.

◆ args

python.TRT_DBUpdate.args = parser.parse_args()

Definition at line 35 of file TRT_DBUpdate.py.

◆ help

python.TRT_DBUpdate.help

Definition at line 31 of file TRT_DBUpdate.py.

◆ parser

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

Definition at line 25 of file TRT_DBUpdate.py.

◆ required

python.TRT_DBUpdate.required

Definition at line 33 of file TRT_DBUpdate.py.

◆ tag

python.TRT_DBUpdate.tag = input("\nUploading T0s. What is the name of target tag (example: TrtCalibT0-MC-run3-test-00)? ")

Definition at line 67 of file TRT_DBUpdate.py.

◆ tagrt

str python.TRT_DBUpdate.tagrt = "TrtCalibRt-Webtest-RUN2-UPD1-00-00"

Definition at line 51 of file TRT_DBUpdate.py.

◆ tagt0

str python.TRT_DBUpdate.tagt0 = "TrtCalibT0-Webtest-RUN2-UPD1-00-00"

Definition at line 50 of file TRT_DBUpdate.py.

◆ True

python.TRT_DBUpdate.True

Definition at line 33 of file TRT_DBUpdate.py.