Project

General

Profile

How to list » History » Version 3

Jixie Zhang, 03/09/2023 01:46 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 3 Jixie Zhang
       //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 2 Jixie Zhang
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 1 Jixie Zhang
	//tiEnableTSInput( TI_TSINPUT_6 );
65 2 Jixie Zhang
66
Line 147-152 for prescale factors
67 3 Jixie Zhang
	
68
        //for 40uA beam on LD2 target
69 2 Jixie Zhang
	tiSetInputPrescale(1,7);
70
	tiSetInputPrescale(2,11);
71
	tiSetInputPrescale(3,8);
72
	tiSetInputPrescale(4,0);
73
	tiSetInputPrescale(6,0);
74
75
76 1 Jixie Zhang
h2.how to run mpod to control HV
77
/home/solid/mpod/bin/easy_lv_hv
78
79
h2. how to cook data in uvasolid2
80
A) source /home/solid/event_viewer/beamtest_hallc_decoder/setup_daq.sh
81
B) replayFiles_18deg.csh '-n 10000 -t 10'  /home/solid/data/hallc_fadc_ssp_4580.evio.0
82
   
83
usage: /home/solid/event_viewer/beamtest_hallc_decoder/bin/replayFiles_18deg.csh <'replay_option'> <File_List>
84
example 1: replayFiles_18deg.csh '-n -1' hallc_fadc_ssp_3049.evio.?
85
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
86
replayoption must be single-quoted, here is a list of them:
87
usage of build/src/analyze:
88
build/src/analyze [-n NEV] [-m, --module MODULE] [-r RES] [-t THRES] [-p NPEDS] [-f FLAT] RAW_DATA ROOT_FILE
89
         -h, --help: print help message
90
         -n [NEV (default: -1)]: number of events to process (< 0 means all)
91
         -m, --module [MODULE (default: database/modules/mapmt_module.json)]: json file for module configuration
92
         -r [RES (default: 3)]: resolution for waveform analysis
93
         -t [THRES (default: 20.000000)]: peak threshold for waveform analysis
94
         -p [NPEDS (default: 8)]: sample window width for pedestal searching
95
         -f [FLAT (default: 1.000000)]: flatness requirement for pedestal searching
96
         -x [USEFIXEDPED (default: 0)]: whether or not to use fixed FADC pedestals from database
97
98
C) the output will be stored at /home/solid/replay/GEMROOTFILE, monitoring histogram and graph will be stored at /home/solid/replay/monitor
99
100 3 Jixie Zhang
h2. how to transfer raw data to /cache:
101 1 Jixie Zhang
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
102
103
h2. where is the cooked data in the farm
104
105
A) raw data: /cache/halla/solid/subsystem/ec/ecal_beamtest_hallc_18deg/raw
106
B) cooked root file: /volatile/halla/solid/$user/ecal_beamtest_hallc/18deg/ROOTFILE
107
108
C) once the decoder software is frozen, will put pass0 cooked file here: /cache/halla/solid/subsystem/ec/ecal_beamtest_hallc_18deg/replay/pass0