@@ -87,4 +87,36 @@ Apart from the lines automatically added at the end of the run, you might need t
...
@@ -87,4 +87,36 @@ Apart from the lines automatically added at the end of the run, you might need t
- if the data taking went wrong, type "no" in the "GOOD run?" field, otherwise type yes;
- if the data taking went wrong, type "no" in the "GOOD run?" field, otherwise type yes;
- unless you copied the run data to the shared `eos` folder, type "no" in the "DATA in EOS?" field;
- unless you copied the run data to the shared `eos` folder, type "no" in the "DATA in EOS?" field;
- paste a link to your elog in the "elog" field;
- paste a link to your elog in the "elog" field;
- if you have run results, e.g. plots, paste a link to them in the "Results" field.
- if you have run results, e.g. plots, paste a link to them in the "Results" field.
\ No newline at end of file
# Specific Scans
## S-Curve Scan and Trimming
1. In the xDAQ interface (http://pcuclacvp13:20500/), go to "gem calibration Calibration" and select S-Curve Scan.
2. If you're doing trimming, set trimming source to "Same for all VFAT". You will take 5 total scans over the trimming values {-63,-31,0,31,63}. If not doing trimming, set trimming source to "From Config DB"
3. Apply settings in xDAQ and reconfigure. Start the local readout as outlined in the "Data taking" section. Then, hit "Run" in the xDAQ S-curves webpage.
4. In the terminal with the local readout, you should see Rx begin incrementing after the run is started. When this number stops incrementing (should take 4ish minutes), the run is done.
5. Once the run is done, stop the local readout with ctrl+C.
6. Change to another window and cd to `/home/gempro/me0-stack-ng/cmsgemos` for analysis.
7. Combine the output files (where ${ID} is the 3-digit run id printed after you stop the local readout):
8. Read the raw data (where ${RUN} is the name for your plots directory; format is yyyymmdd_hhmm_shortdescription):
```bash
_build/_install/bin/gem-raw-to-histogram /tmp/scurve_${RUN} /mnt/data/integration/me0stack/compressed/00000${ID}-be:fe:00:00:05:c7.raw.zst -a scurve -t amc
```
9. Analyze the data:
```bash
gemos analyze scurves /tmp/scurve_${RUN} data/scurve_${RUN}-m /home/gempro/me0_stack/cmsgemos-analysis/vfat_me0stack.txt -c /home/gempro/all_vfats.csv -u fC -p full
```
10. View the plots located in `/home/gempro/me0-stack-ng/cmsgemos/data/scurve_${RUN}/plots`
11. If doing trimming: for each of the 5 runs, copy `/home/gempro/me0-stack-ng/cmsgemos/data/scurve_${RUN}/scurve-results.root` into the same directory renamed as {trim_n63.root,trim_n31.root,trim_0.root,trim_31.root,trim_63.root}.
12. Use the script [COMING SOON!] to calculate trimming and generate config values.
13. Use the script [ALSO COMING SOON!] to generate a new configuration including this trimming.