ATLAS Offline Software
Functions | Variables
perfmonmt-refit Namespace Reference

Functions

def parse_range (string)
 

Variables

 parser = argparse.ArgumentParser(description = 'Script to re-fit PerfMonMTSvc measurements')
 
 type
 
 str
 
 required
 
 help
 
 parse_range
 
 dest
 
 float
 
 nargs
 
 default
 
 choices
 
 action
 
 args = parser.parse_args()
 
 slice
 
 data = json.load(json_file)
 
 x
 
 y
 
 key
 
string units = 'ms/event' if 'time' in args.obs.lower() else 'kb/event'
 
 idx_min = round(0.2*len(x))
 
int idx_max = len(x)-1
 
 n_tot = len(x[idx_min:idx_max+1])
 
 coeffs
 

Function Documentation

◆ parse_range()

def perfmonmt-refit.parse_range (   string)

Definition at line 11 of file perfmonmt-refit.py.

11 def parse_range(string):
12  result = string.split(',')
13  if len(result) != 2 or not result[0].isnumeric() or not result[1].isnumeric() or int(result[0]) >= int(result[1]):
14  print(f"Invalid input range {string} (must be N,M w/ N/M as numbers and M>N)...")
15  sys.exit(1)
16  else:
17  return result
18 
19 # Main function

Variable Documentation

◆ action

perfmonmt-refit.action

Definition at line 38 of file perfmonmt-refit.py.

◆ args

perfmonmt-refit.args = parser.parse_args()

Definition at line 43 of file perfmonmt-refit.py.

◆ choices

perfmonmt-refit.choices

Definition at line 36 of file perfmonmt-refit.py.

◆ coeffs

perfmonmt-refit.coeffs
Initial value:
1 = numpy.lib.polyfit( numpy.array(x[idx_min:idx_max+1], numpy.float),
2  numpy.array(y[idx_min:idx_max+1], numpy.float) , deg = 1 )

Definition at line 105 of file perfmonmt-refit.py.

◆ data

perfmonmt-refit.data = json.load(json_file)

Definition at line 61 of file perfmonmt-refit.py.

◆ default

perfmonmt-refit.default

Definition at line 35 of file perfmonmt-refit.py.

◆ dest

perfmonmt-refit.dest

Definition at line 27 of file perfmonmt-refit.py.

◆ float

perfmonmt-refit.float

Definition at line 31 of file perfmonmt-refit.py.

◆ help

perfmonmt-refit.help

Definition at line 26 of file perfmonmt-refit.py.

◆ idx_max

int perfmonmt-refit.idx_max = len(x)-1

Definition at line 84 of file perfmonmt-refit.py.

◆ idx_min

perfmonmt-refit.idx_min = round(0.2*len(x))

Definition at line 83 of file perfmonmt-refit.py.

◆ key

perfmonmt-refit.key

Definition at line 72 of file perfmonmt-refit.py.

◆ n_tot

perfmonmt-refit.n_tot = len(x[idx_min:idx_max+1])

Definition at line 104 of file perfmonmt-refit.py.

◆ nargs

perfmonmt-refit.nargs

Definition at line 35 of file perfmonmt-refit.py.

◆ parse_range

perfmonmt-refit.parse_range

Definition at line 27 of file perfmonmt-refit.py.

◆ parser

perfmonmt-refit.parser = argparse.ArgumentParser(description = 'Script to re-fit PerfMonMTSvc measurements')

Definition at line 23 of file perfmonmt-refit.py.

◆ required

perfmonmt-refit.required

Definition at line 25 of file perfmonmt-refit.py.

◆ slice

perfmonmt-refit.slice

Definition at line 52 of file perfmonmt-refit.py.

◆ str

perfmonmt-refit.str

Definition at line 25 of file perfmonmt-refit.py.

◆ type

perfmonmt-refit.type

Definition at line 25 of file perfmonmt-refit.py.

◆ units

string perfmonmt-refit.units = 'ms/event' if 'time' in args.obs.lower() else 'kb/event'

Definition at line 77 of file perfmonmt-refit.py.

◆ x

perfmonmt-refit.x

Definition at line 70 of file perfmonmt-refit.py.

◆ y

perfmonmt-refit.y

Definition at line 70 of file perfmonmt-refit.py.

CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
print
void print(char *figname, TCanvas *c1)
Definition: TRTCalib_StrawStatusPlots.cxx:25
perfmonmt-refit.parse_range
def parse_range(string)
Definition: perfmonmt-refit.py:11