How to list » History » Version 2
Jixie Zhang, 03/09/2023 01:45 PM
| 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 | |||
| 39 | h2. how to change trigger |
||
| 40 | A) login into sbsvme22: ssh sbsvme22 |
||
| 41 | B) cd rol |
||
| 42 | C) update ti_list.c, |
||
| 43 | |||
| 44 | line 62-64 to enable|disable pulse trigger: |
||
| 45 | |||
| 46 | //TI_SYNCEVENT_CONFIG tiSyncEventConfig = {1, 1000, 100, 0, 83}; //first 100k pulse trigger of 100kHz |
||
| 47 | //TI_SYNCEVENT_CONFIG tiSyncEventConfig = {1, 1000, 3000, 0, 830}; //first 3M pulse trigger of 10kHz |
||
| 48 | TI_SYNCEVENT_CONFIG tiSyncEventConfig = {0, 1000, 0, 0, 83}; // disable pulser trigger |
||
| 49 | |||
| 50 | |||
| 51 | line 111-122 for trigger type: |
||
| 52 | |||
| 53 | /* Enable set specific TS input bits (1-6) */ |
||
| 54 | tiEnableTSInput( TI_TSINPUT_1 ); |
||
| 55 | //tiEnableTSInput( TI_TSINPUT_1 | TI_TSINPUT_4 ); |
||
| 56 | //tiEnableTSInput( TI_TSINPUT_1 | TI_TSINPUT_2 | TI_TSINPUT_3); |
||
| 57 | //tiEnableTSInput( TI_TSINPUT_1 | TI_TSINPUT_2 | TI_TSINPUT_3 | TI_TSINPUT_4); |
||
| 58 | //tiEnableTSInput( TI_TSINPUT_ALL ); |
||
| 59 | //tiEnableTSInput( TI_TSINPUT_1 | TI_TSINPUT_2 | TI_TSINPUT_4); |
||
| 60 | //tiEnableTSInput( TI_TSINPUT_2 | TI_TSINPUT_3 | TI_TSINPUT_4); |
||
| 61 | //tiEnableTSInput( TI_TSINPUT_2 ); |
||
| 62 | //tiEnableTSInput( TI_TSINPUT_3 ); |
||
| 63 | //tiEnableTSInput( TI_TSINPUT_4); |
||
| 64 | //tiEnableTSInput( TI_TSINPUT_6 ); |
||
| 65 | |||
| 66 | Line 147-152 for prescale factors |
||
| 67 | //for 40uA beam on LD2 target |
||
| 68 | tiSetInputPrescale(1,7); |
||
| 69 | tiSetInputPrescale(2,11); |
||
| 70 | tiSetInputPrescale(3,8); |
||
| 71 | tiSetInputPrescale(4,0); |
||
| 72 | tiSetInputPrescale(6,0); |
||
| 73 | |||
| 74 | |||
| 75 | 1 | Jixie Zhang | h2.how to run mpod to control HV |
| 76 | /home/solid/mpod/bin/easy_lv_hv |
||
| 77 | |||
| 78 | h2. how to cook data in uvasolid2 |
||
| 79 | A) source /home/solid/event_viewer/beamtest_hallc_decoder/setup_daq.sh |
||
| 80 | B) replayFiles_18deg.csh '-n 10000 -t 10' /home/solid/data/hallc_fadc_ssp_4580.evio.0 |
||
| 81 | |||
| 82 | usage: /home/solid/event_viewer/beamtest_hallc_decoder/bin/replayFiles_18deg.csh <'replay_option'> <File_List> |
||
| 83 | example 1: replayFiles_18deg.csh '-n -1' hallc_fadc_ssp_3049.evio.? |
||
| 84 | 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 |
||
| 85 | replayoption must be single-quoted, here is a list of them: |
||
| 86 | usage of build/src/analyze: |
||
| 87 | build/src/analyze [-n NEV] [-m, --module MODULE] [-r RES] [-t THRES] [-p NPEDS] [-f FLAT] RAW_DATA ROOT_FILE |
||
| 88 | -h, --help: print help message |
||
| 89 | -n [NEV (default: -1)]: number of events to process (< 0 means all) |
||
| 90 | -m, --module [MODULE (default: database/modules/mapmt_module.json)]: json file for module configuration |
||
| 91 | -r [RES (default: 3)]: resolution for waveform analysis |
||
| 92 | -t [THRES (default: 20.000000)]: peak threshold for waveform analysis |
||
| 93 | -p [NPEDS (default: 8)]: sample window width for pedestal searching |
||
| 94 | -f [FLAT (default: 1.000000)]: flatness requirement for pedestal searching |
||
| 95 | -x [USEFIXEDPED (default: 0)]: whether or not to use fixed FADC pedestals from database |
||
| 96 | |||
| 97 | C) the output will be stored at /home/solid/replay/GEMROOTFILE, monitoring histogram and graph will be stored at /home/solid/replay/monitor |
||
| 98 | |||
| 99 | h2. how to transfer raw data t0 /cache: |
||
| 100 | 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 |
||
| 101 | |||
| 102 | h2. where is the cooked data in the farm |
||
| 103 | |||
| 104 | A) raw data: /cache/halla/solid/subsystem/ec/ecal_beamtest_hallc_18deg/raw |
||
| 105 | B) cooked root file: /volatile/halla/solid/$user/ecal_beamtest_hallc/18deg/ROOTFILE |
||
| 106 | |||
| 107 | C) once the decoder software is frozen, will put pass0 cooked file here: /cache/halla/solid/subsystem/ec/ecal_beamtest_hallc_18deg/replay/pass0 |