How to list » History » Version 5
Jixie Zhang, 03/13/2023 11:27 AM
1 | 1 | Jixie Zhang | h1. How to list |
---|---|---|---|
2 | |||
3 | h2. general information |
||
4 | |||
5 | login to uvasolid2.jlab.org |
||
6 | |||
7 | 1) first login to jlab gateway: ssh -X user@login.jlab.org |
||
8 | 2) from login.jlab.org, login to hallgw.jlab.org: ssh -X uaer@hallgw.jlab.org |
||
9 | You need to type your 6-digit pin followed by 6 digits pin created by mobilepass app in your smart phone. |
||
10 | If you do not have this setup send request to helpdesk@jlab.org |
||
11 | 3) from hallgw.jlab.org, login to uvasolid2.jlab.org: ssh -X solid@uvasolid2.jlab.org, |
||
12 | 4) start vncviewer: vncviewer :1 (sometimes it is in :2 or :3) |
||
13 | |||
14 | h2. how to run coda |
||
15 | |||
16 | In uvasolid2, type command "kcoda" then type "startCoda" |
||
17 | There are 3 configurations to use: |
||
18 | A) hallc_fadc: no GEM, FADC only |
||
19 | B) hallc_fadc_ssp: with GEM but no maroc |
||
20 | C) hallc_fadc_ssp_maroc: with both GEM and maroc |
||
21 | |||
22 | raw data file will be written into /home/solid/data |
||
23 | |||
24 | keep updating run list file: /home/solid/hallc_beamtest_runlist.txt |
||
25 | |||
26 | 2 | Jixie Zhang | h2.how to set trigger threshold |
27 | |||
28 | we change threshold using diaggui, which requres root. |
||
29 | A) source /home/solid/event_viewer/beamtest_hallc_decoder/setup_daq.sh |
||
30 | B) cd /home/solid/fe_diaggui |
||
31 | C) ./DiagGUI ROC_sbsvme22.txt |
||
32 | D) click on "18:DSC2" in the laft pannel, then click on "TDC Config" in the middle pannel, then click on "Thresholds" |
||
33 | Before you updated the threshold, you need to start coda and finish 'download' |
||
34 | |||
35 | In case sbsvme22 is rebooted, or vmecrate is rebooted, you have to restart diaggui. |
||
36 | If coda crashes, I highly recommend restarting diaggui. |
||
37 | |||
38 | 4 | Jixie Zhang | vmeDSC map: |
39 | TS1: DSC01 (CerSum, 25mV) & DSC03(ShowerSum, 70mV) --> PS1>=5 |
||
40 | TS2: DSC06 (SC_B, 35mV) & DSC07(SC_D, 35mV) --> PS2>=11 |
||
41 | TS3: DSC05 (SC_A, 31mV) & DSC08(SC_D, 35mV) --> requires I<20uA, PS2>=10 |
||
42 | TS4_low: DSC14 (ShowerSum, 15mV) --> PS>=10 for 40uA |
||
43 | TS4_high: DSC14 (ShowerSum, 230mV) -->keep PS4=0, 40uA(230mV-->2.7kHz) |
||
44 | 2 | Jixie Zhang | |
45 | h2. how to change trigger |
||
46 | A) login into sbsvme22: ssh sbsvme22 |
||
47 | B) cd rol |
||
48 | C) update ti_list.c, |
||
49 | |||
50 | line 62-64 to enable|disable pulse trigger: |
||
51 | |||
52 | 3 | Jixie Zhang | //TI_SYNCEVENT_CONFIG tiSyncEventConfig = {1, 1000, 100, 0, 83}; //first 100k pulse trigger of 100kHz |
53 | //TI_SYNCEVENT_CONFIG tiSyncEventConfig = {1, 1000, 3000, 0, 830}; //first 3M pulse trigger of 10kHz |
||
54 | TI_SYNCEVENT_CONFIG tiSyncEventConfig = {0, 1000, 0, 0, 83}; // disable pulser trigger |
||
55 | 2 | Jixie Zhang | |
56 | |||
57 | line 111-122 for trigger type: |
||
58 | |||
59 | /* Enable set specific TS input bits (1-6) */ |
||
60 | tiEnableTSInput( TI_TSINPUT_1 ); |
||
61 | //tiEnableTSInput( TI_TSINPUT_1 | TI_TSINPUT_4 ); |
||
62 | //tiEnableTSInput( TI_TSINPUT_1 | TI_TSINPUT_2 | TI_TSINPUT_3); |
||
63 | //tiEnableTSInput( TI_TSINPUT_1 | TI_TSINPUT_2 | TI_TSINPUT_3 | TI_TSINPUT_4); |
||
64 | //tiEnableTSInput( TI_TSINPUT_ALL ); |
||
65 | //tiEnableTSInput( TI_TSINPUT_1 | TI_TSINPUT_2 | TI_TSINPUT_4); |
||
66 | //tiEnableTSInput( TI_TSINPUT_2 | TI_TSINPUT_3 | TI_TSINPUT_4); |
||
67 | //tiEnableTSInput( TI_TSINPUT_2 ); |
||
68 | //tiEnableTSInput( TI_TSINPUT_3 ); |
||
69 | //tiEnableTSInput( TI_TSINPUT_4); |
||
70 | 1 | Jixie Zhang | //tiEnableTSInput( TI_TSINPUT_6 ); |
71 | 2 | Jixie Zhang | |
72 | Line 147-152 for prescale factors |
||
73 | 3 | Jixie Zhang | |
74 | //for 40uA beam on LD2 target |
||
75 | 2 | Jixie Zhang | tiSetInputPrescale(1,7); |
76 | tiSetInputPrescale(2,11); |
||
77 | tiSetInputPrescale(3,8); |
||
78 | tiSetInputPrescale(4,0); |
||
79 | tiSetInputPrescale(6,0); |
||
80 | 1 | Jixie Zhang | |
81 | |||
82 | h2.how to run mpod to control HV |
||
83 | /home/solid/mpod/bin/easy_lv_hv |
||
84 | |||
85 | h2. how to cook data in uvasolid2 |
||
86 | 4 | Jixie Zhang | A) source /home/solid/apps/setup_rh8.sh |
87 | B) you can choose to cook data with or without tracking. |
||
88 | B1) cook 10k events with tracking, using 10adc peak finding threshold: |
||
89 | 5 | Jixie Zhang | replayFiles_18deg.csh '-x 1 -n 10000 -t 10' /home/solid/data/hallc_fadc_ssp_4580.evio.0 |
90 | |||
91 | usage: /home/solid/event_viewer/beamtest_hallc_decoder/bin/replayFiles_18deg.csh <'replay_option'> <File_List> |
||
92 | example 1: replayFiles_18deg.csh '-n -1' hallc_fadc_ssp_3049.evio.? |
||
93 | example 2: replayFiles_18deg.csh '-m /home/solid/event_viewer/beamtest_hallc_decoder/database/modules/mapmt_module_highrate.json -n 50000' hallc_fadc_ssp_3049.evio.2 hallc_fadc_ssp_3049.evio.3 |
||
94 | replayoption must be single-quoted, here is a list of them: |
||
95 | usage of build/src/analyze: |
||
96 | build/src/analyze [-n NEV] [-m, --module MODULE] [-r RES] [-t THRES] [-p NPEDS] [-f FLAT] RAW_DATA ROOT_FILE |
||
97 | 1 | Jixie Zhang | -h, --help: print help message |
98 | -n [NEV (default: -1)]: number of events to process (< 0 means all) |
||
99 | -m, --module [MODULE (default: database/modules/mapmt_module.json)]: json file for module configuration |
||
100 | -r [RES (default: 3)]: resolution for waveform analysis |
||
101 | -t [THRES (default: 20.000000)]: peak threshold for waveform analysis |
||
102 | -p [NPEDS (default: 8)]: sample window width for pedestal searching |
||
103 | -f [FLAT (default: 1.000000)]: flatness requirement for pedestal searching |
||
104 | -x [USEFIXEDPED (default: 0)]: whether or not to use fixed FADC pedestals from database |
||
105 | |||
106 | 5 | Jixie Zhang | the output will be stored at /home/solid/replay/GEMROOTFILE, monitoring histogram and graph will be stored at /home/solid/replay/monitor |
107 | |||
108 | 4 | Jixie Zhang | B2) cooked 100k events without tracking, using 10adc peak finding threshold: |
109 | 5 | Jixie Zhang | replayFiles_highrate.csh '-x 1 -n 100000 -t 10' /home/solid/data/hallc_fadc_ssp_4580.evio.0 |
110 | 4 | Jixie Zhang | |
111 | 5 | Jixie Zhang | the output will be stored at /home/solid/replay/ROOTFILE, monitoring histogram and graph will be stored at /home/solid/replay/monitor |
112 | 3 | Jixie Zhang | |
113 | 1 | Jixie Zhang | h2. how to transfer raw data to /cache: |
114 | rsync -avzhe ssh --progress --remove-source-files /run/media/solid/Data16T/data1/ /DISK4T/data2/ jixie@ifarm1802:/cache/halla/solid/subsystem/ec/ecal_beamtest_hallc_18deg/raw |
||
115 | |||
116 | h2. where is the cooked data in the farm |
||
117 | |||
118 | A) raw data: /cache/halla/solid/subsystem/ec/ecal_beamtest_hallc_18deg/raw |
||
119 | B) cooked root file: /volatile/halla/solid/$user/ecal_beamtest_hallc/18deg/ROOTFILE |
||
120 | 4 | Jixie Zhang | C) 50k events cooked with tracking: /volatile/halla/solid/$user/ecal_beamtest_hallc/18deg/GEM50k |
121 | D) cooked with tracking root file: /volatile/halla/solid/$user/ecal_beamtest_hallc/18deg/GEMROOTFILE |
||
122 | 1 | Jixie Zhang | |
123 | 4 | Jixie Zhang | E) once the decoder software is frozen, will put pass0 cooked file here: /cache/halla/solid/subsystem/ec/ecal_beamtest_hallc_18deg/replay/pass0 |