-
Notifications
You must be signed in to change notification settings - Fork 0
/
303648_YJKim.py
168 lines (117 loc) · 4.77 KB
/
303648_YJKim.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
def S03_first_night():
rixscam_exp = 30
yield from mv(rixscam.cam.acquire_time, rixscam_exp)
yield from mv(sclr.preset_time, rixscam_exp)
yield from mv(extslt.vg,50)
E = [462.5,461]
yield from pol_H(1.6)
m7_pit_vals = None
yield from rixscam_acquire_w_shutter(E,m7_pit_vals, 400, 'S03 300K GI' )
yield from mv(rixscam.cam.acquire_time, 15)
yield from mv(sclr.preset_time, 1)
def S04_polV_300K(N_scans=1):
rixscam_exp = 3
yield from mv(rixscam.cam.acquire_time, rixscam_exp)
yield from mv(sclr.preset_time, rixscam_exp)
yield from mv(extslt.vg,50)
E = [455]
#yield from pol_V(-1.8)
m7_pit_vals = None
yield from rixscam_acquire_w_shutter(E,m7_pit_vals, N_scans, 'S04 300K Spec' )
yield from mv(rixscam.cam.acquire_time, 5)
yield from mv(sclr.preset_time, 1)
def S04_polH_300K(N_scans=1):
rixscam_exp = 5
yield from mv(rixscam.cam.acquire_time, rixscam_exp)
yield from mv(sclr.preset_time, rixscam_exp)
yield from mv(extslt.vg,50)
E = [463.2]
m7_pit_vals = None
yield from rixscam_acquire_w_shutter(E,m7_pit_vals, N_scans, 'S04 300K GI' )
yield from mv(rixscam.cam.acquire_time, 15)
yield from mv(sclr.preset_time, 1)
def S04_polHV_300K_NI(N_scans=1):
rixscam_exp = 8
yield from mv(rixscam.cam.acquire_time, rixscam_exp)
yield from mv(sclr.preset_time, rixscam_exp)
yield from mv(extslt.vg,50)
E = [462.4]
m7_pit_vals = None
#yield from pol_H(1.6)
yield from rixscam_acquire_w_shutter(E,m7_pit_vals, N_scans, 'S04 300K NI' )
yield from mv(m1_fbk,0)
yield from pol_V(-1.8)
yield from sleep(10)
yield from mv(m1_fbk_cam_time,0.03)
yield from mv(m1_fbk,1)
yield from rixscam_acquire_w_shutter(E,m7_pit_vals, N_scans, 'S04 300K NI' )
yield from mv(shutterb,'Close')
yield from mv(rixscam.cam.acquire_time, 15)
yield from mv(sclr.preset_time, 1)
def S04_polV_100K_NI(N_scans=1):
rixscam_exp = 2
yield from mv(rixscam.cam.acquire_time, rixscam_exp)
yield from mv(sclr.preset_time, rixscam_exp)
yield from mv(extslt.vg,50)
E = [462.5]
#yield from pol_V(-1.8)
m7_pit_vals = None
yield from rixscam_acquire_w_shutter(E,m7_pit_vals, N_scans, 'S04 100K Spec' )
yield from mv(rixscam.cam.acquire_time, 5)
yield from mv(sclr.preset_time, 1)
def S04_polH_300K_Monday2(N_scans=1):
rixscam_exp = 5
yield from mv(rixscam.cam.acquire_time, rixscam_exp)
yield from mv(sclr.preset_time, rixscam_exp)
yield from mv(extslt.vg,50)
E = [460.7]
# Using horizontal pol
m7_pit_vals = None
yield from rixscam_acquire_w_shutter(E,m7_pit_vals, N_scans, 'S04 300K th20 LH' )
yield from mv(rixscam.cam.acquire_time, 5)
yield from mv(sclr.preset_time, 1)
def S04_polH_300K_Tuesday_count(reps=1, cts=60):
rixscam_exp = 5
yield from mv(rixscam.cam.acquire_time, rixscam_exp)
yield from mv(sclr.preset_time, rixscam_exp)
yield from mv(extslt.vg,50)
E = 460.7
yield from mv(pgm.en, E)
# Using horizontal pol
yield from count([rixscam, sclr, ring_curr], num=1, md = {'reason': 'dummy'})
yield from mv(gvbt1,'open')
for i in range(reps):
yield from count([rixscam, sclr, ring_curr], num=cts, md = {'reason': 'S04 300K th20 LH'})
yield from mv(gvbt1,'close')
yield from mv(rixscam.cam.acquire_time, 5)
yield from mv(sclr.preset_time, 1)
def S04_polV_300K_Monday_night(reps=1, cts=60):
rixscam_exp = 1
yield from mv(rixscam.cam.acquire_time, rixscam_exp)
yield from mv(sclr.preset_time, rixscam_exp)
yield from mv(extslt.vg,50)
yield from count([rixscam, sclr, ring_curr], num=1, md = {'reason': 'dummy'})
energies = [461.2, 462.2, 463.2]
for energy in energies:
yield from mv(pgm.en, energy)
yield from mv(gvbt1,'open')
for i in range(reps):
yield from count([rixscam, sclr, ring_curr], num=cts, md = {'reason': 'S04 300K th20 LV'})
yield from mv(gvbt1,'close')
yield from mv(rixscam.cam.acquire_time, 5)
yield from mv(sclr.preset_time, 1)
def S04_polH_300K_Tuesday_night(reps=1, cts=60):
rixscam_exp = 5
yield from mv(rixscam.cam.acquire_time, rixscam_exp)
yield from mv(sclr.preset_time, rixscam_exp)
yield from mv(extslt.vg,20)
yield from count([rixscam, sclr, ring_curr], num=1, md = {'reason': 'dummy'})
energies = [461.0]
for energy in energies:
yield from mv(pgm.en, energy)
yield from mv(gvbt1,'open')
for i in range(reps):
yield from count([rixscam, sclr, ring_curr], num=cts, md = {'reason': 'S04 300K th20 LH'})
yield from mv(gvbt1,'close')
yield from mv(rixscam.cam.acquire_time, 5)
yield from mv(sclr.preset_time, 1)