1 | #!dimctrl --exec
|
---|
2 |
|
---|
3 | >
|
---|
4 | > -----------
|
---|
5 | > script for DRS-Calibration before Data taking
|
---|
6 | > starting up...
|
---|
7 | > -----------
|
---|
8 | >
|
---|
9 |
|
---|
10 | # enable feedback output
|
---|
11 | FEEDBACK/ENABLE_OUTPUT 1
|
---|
12 |
|
---|
13 | # Making sure bias is off, before the DRS calibration starts
|
---|
14 | BIAS_CONTROL/SET_ZERO_VOLTAGE
|
---|
15 | > ...ramping Voltage down
|
---|
16 | >
|
---|
17 | > ...waiting for BIAS to be in state 7: Voltage Off
|
---|
18 | .s BIAS_CONTROL 7 # Voltage Off
|
---|
19 |
|
---|
20 | # starting the DRS calibration
|
---|
21 | FAD_CONTROL/START_DRS_CALIBRATION
|
---|
22 | > ...BIAS voltage is switched off
|
---|
23 | >
|
---|
24 |
|
---|
25 | # taking first DRS:Pedestal with 1000 Events and ROI 1024
|
---|
26 | > taking DRS:Pedestal 1000 ...
|
---|
27 | > ...waiting for FAD to be in state 4: Connected
|
---|
28 | .s FAD_CONTROL 4 # Connected
|
---|
29 | MCP/START -1 1000 drs-pedestal
|
---|
30 | > ...waiting for FAD to be in state 8: Writing Data
|
---|
31 | .s FAD_CONTROL 8 # Writing Data
|
---|
32 | > ...waiting for FAD to be in state 4: Connected
|
---|
33 | .s FAD_CONTROL 4 # Connected
|
---|
34 | > ... done
|
---|
35 | >
|
---|
36 |
|
---|
37 | # taking DRS:Gain with 1000 Events and ROI 1024
|
---|
38 | > taking DRS:Gain 1000 ...
|
---|
39 | MCP/START -1 1000 drs-gain
|
---|
40 | > ...waiting for FAD to be in state 8: Writing Data
|
---|
41 | .s FAD_CONTROL 8 # Writing Data
|
---|
42 | > ...waiting for FAD to be in state 4: Connected
|
---|
43 | .s FAD_CONTROL 4 # Connected
|
---|
44 | > ... done
|
---|
45 | >
|
---|
46 |
|
---|
47 | # taking DRS:Pedestal 1000 Events and ROI 1024
|
---|
48 | > taking DRS:Pedestal 1000 ...
|
---|
49 | MCP/START -1 1000 drs-pedestal
|
---|
50 | > ...waiting for FAD to be in state 8: Writing Data
|
---|
51 | .s FAD_CONTROL 8 # Writing Data
|
---|
52 | > ...waiting for FAD to be in state 4: Connected
|
---|
53 | .s FAD_CONTROL 4 # Connected
|
---|
54 | > ... done
|
---|
55 | >
|
---|
56 |
|
---|
57 | # taking again a DRS:Pedestal with 1000 Events and ROI 1024 for a crosscheck of calculated calibrations constants
|
---|
58 | > taking crosscheck DRS:Pedestal 1000 ...
|
---|
59 | FAD_CONTROL/SET_FILE_FORMAT 2
|
---|
60 | MCP/START -1 1000 drs-pedestal
|
---|
61 | > ...waiting for FAD to be in state 8: Writing Data
|
---|
62 | .s FAD_CONTROL 8 # Writing Data
|
---|
63 | > ...waiting for FAD to be in state 4: Connected
|
---|
64 | .s FAD_CONTROL 4 # Connected
|
---|
65 | > ... done
|
---|
66 | >
|
---|
67 |
|
---|
68 | # taking DRS:Time with 1000 Events and ROI 1024
|
---|
69 | > taking DRS:Time 1000 ...
|
---|
70 | MCP/START -1 1000 drs-time
|
---|
71 | > ...waiting for FAD to be in state 8: Writing Data
|
---|
72 | .s FAD_CONTROL 8 # Writing Data
|
---|
73 | > ...waiting for FAD to be in state 4: Connected
|
---|
74 | .s FAD_CONTROL 4 # Connected
|
---|
75 | > ... done
|
---|
76 | >
|
---|
77 |
|
---|
78 | # taking DRS:Time upshifted 1000 Events and ROI 1024
|
---|
79 | > taking DRS:Time upshifted 1000 ...
|
---|
80 | MCP/START -1 1000 drs-time-upshifted
|
---|
81 | > ...waiting for FAD to be in state 8: Writing Data
|
---|
82 | .s FAD_CONTROL 8 # Writing Data
|
---|
83 | > ...waiting for FAD to be in state 4: Connected
|
---|
84 | .s FAD_CONTROL 4 # Connected
|
---|
85 | > ... done
|
---|
86 | >
|
---|
87 |
|
---|
88 | # taking a Pedestal with 1000 Events and ROI 300 for secondary baseline...
|
---|
89 | > taking Pedestal 1000 for secondary baseline...
|
---|
90 | FAD_CONTROL/RESET_SECONDARY_DRS_BASELINE
|
---|
91 | MCP/START -1 1000 pedestal
|
---|
92 | > ...waiting for FAD to be in state 8: Writing Data
|
---|
93 | .s FAD_CONTROL 8 # Writing Data
|
---|
94 | > ...waiting for FAD to be in state 4: Connected
|
---|
95 | .s FAD_CONTROL 4 # Connected
|
---|
96 | > ... done
|
---|
97 | >
|
---|
98 |
|
---|
99 | # taking crosscheck Pedestal 1000 Events and ROI 300
|
---|
100 | > taking crosscheck Pedestal 1000 ...
|
---|
101 | FAD_CONTROL/SET_FILE_FORMAT 2
|
---|
102 | MCP/START -1 1000 pedestal
|
---|
103 | > ...waiting for FAD to be in state 8: Writing Data
|
---|
104 | .s FAD_CONTROL 8 # Writing Data
|
---|
105 | > ...waiting for FAD to be in state 4: Connected
|
---|
106 | .s FAD_CONTROL 4 # Connected
|
---|
107 | > ... done
|
---|
108 |
|
---|
109 | > ----------------------------------------------------
|
---|
110 | > This is the end of the
|
---|
111 | > DRS-Calibration before Data taking
|
---|
112 | > ----------------------------------------------------
|
---|