ATLAS Offline Software
Functions | Variables
python.TRT_DBUpdate Namespace Reference

Functions

def run_command (command)
 
def nextstep (text)
 

Variables

 parser
 
 action
 
 help
 
 required
 
 True
 
 args = parser.parse_args()
 
string tagt0 = "TrtCalibT0-Webtest-RUN2-UPD1-00-00"
 
string 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()

def python.TRT_DBUpdate.nextstep (   text)

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

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

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

Definition at line 51 of file TRT_DBUpdate.py.

◆ tagt0

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

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