HPS-MC
 
Loading...
Searching...
No Matches
run_params.py
Go to the documentation of this file.
1"""! Data with physics run parameters by beam energy."""
2
3import sys
4
5run_params = {
6 "aprime_mass": { # MeV
7 "1pt05": [15, 20, 30, 40, 50, 60, 70, 80, 90],
8 "1pt1": [15, 20, 30, 40, 50, 60, 70, 80, 90, 100],
9 "1pt92": [50, 75, 100],
10 "2pt2": [15, 25, 50, 75, 100, 150, 200, 250],
11 "2pt3": [15, 25, 50, 75, 100, 150, 200, 250],
12 "3pt7": [15, 25, 50, 75, 100, 150, 200, 250, 300, 350],
13 "3pt742": [50, 60, 70, 75, 80, 90, 100, 110, 120, 125, 130, 140, 150, 160, 170, 175, 180, 190, 200],
14 "4pt4": [15, 25, 50, 75, 100, 150, 200, 250, 300, 350, 400, 450, 500],
15 "4pt55": [75, 90, 100, 105, 110, 115, 120, 125, 130, 135, 140, 145, 150, 160, 170, 180, 190, 200],
16 "6pt6": [50, 100, 200, 300, 400, 500, 600]
17 },
18 "target_thickness": { # target thickness in cm
19 "1pt1": 0.0004062,
20 "1pt92": 0.0008,
21 "1pt05": 0.0004062,
22 "2pt2": 0.0004062,
23 "2pt3": 0.0004062,
24 "3pt7": 0.002,
25 "3pt74": 0.000875,
26 "3pt742": 0.002,
27 "4pt4": 0.0004062,
28 "4pt55": 0.002,
29 "6pt6": 0.000875
30 },
31 "beam_energy": { # GeV | MeV
32 "1pt1": 1100.00,
33 "1pt92": 1920.00,
34 "1pt05": 1056.00,
35 "2pt2": 2200.00,
36 "2pt3": 2300.00,
37 "3pt7": 3700.00,
38 "3pt74": 3740.00,
39 "3pt742": 3742.00,
40 "4pt4": 4400.00,
41 "4pt55": 4550.00,
42 "6pt6": 6600.00
43 },
44 "num_electrons": {
45 "1pt05": 625,
46 "1pt1": 625,
47 "1pt92": 875,
48 "2pt2": 2500,
49 "2pt3": 2500,
50 "3pt7": 1500,
51 "3pt74": 625,
52 "3pt742": 1500,
53 "4pt4": 5000,
54 "4pt55": 1500,
55 "6pt6": 5625
56 }
57}
58
59
61
62 def __init__(self, key, json_filename=None):
63 self.key = key
64
65 def get(self, param_name):
66 return run_params[param_name][self.key]
67
68
69if __name__ == "__main__":
70
72
73 if len(sys.argv) != 3:
74 raise Exception("Not enough arguments.\nUSAGE: run_params [param] [key]")
75
76 param_name = sys.argv[1]
77 key = sys.argv[2]
78
79 print(rp.get_run_params(param_name, key))
__init__(self, key, json_filename=None)
Definition run_params.py:62