How to run T0C/NTC FEEM calibration
with BB GTM stand alone mode
Dec/5/2001 by Hiroshi Tsuruoka
For Shift Crew | For T0C expert
2. > cd $SCRIPTS_SRC
3. > calib.pl
4. Toggle "NTC/T0_Timing" or "NTC/T0_Charge" button
5. Wait till 25(Timing) or 32(Charge) prdf files are made in buffer2/calibdata.
(It takes about 30 min.)(Buffer2 is, so far, hardwired.)
6. So far, the following error messages can be ignored:"Error opening /export/software/oncs/online_configuration/GL1/StandAloneMode/partition.names, building default Parition Name list".
7. The following picture indicate the T0C/NTC calibration job's done.
Toggle "Exit" button.
7. Make sure the output prdf files are transfered before /buffer2/calibdata is cleaned up.
(They might miss the OS shift's last HPSS data transfer!)
8. Thank you very much !
Step 1. Setup
1. > ssh -l phoncs phoncs0
2. > setuponcs
3. > cd $SCRIPTS_SRC
4. Set TP_Delay (for Timing scan ) or dac (for Charge scan).
> emacs ntctscan.sh & (for Timing scan)
> emacs ntcqscan.sh & (for Charge scan)
Click here -> How to modify ntctscan.sh or ntcqscan.sh .
5. > make
Step 2. Execute program
1. Ask shift leader what you can take calibration data.
2. > ./ntctscan.sh (for Timing)
> ./ntcqscan.sh (for Charge)
Step 3. Analysis data
Flow Chart
These analysis program was provided by Hachiya Takashi (BBC).
1. > ssh -l phnxtof va007
2. > cd /home/phnxtof/tzc_tscan/
3. copy root macro files.
> cp -r ana_org/ ana_MMDDYY/ (ex. ana_Dec0501)
> cd ana_MMDDYY/
4. copy listfile that has the list of TP_Delay (charge) and prdf files.
> cp /home/phnxtof/calib/logs/T_ntc/ntctscan@12-05-2001_----.calib . ( for Timing )
> cp /home/phnxtof/calib/logs/Q_ntc/ntctscan@12-05-2001_----.calib . ( for Charge )
5. first , make root ntuple file
> ./mktreeTsc.csh [input list file name] [output root file name] ( for Timing )
> ./mktreeQsc.csh [input list file name] [output root file name] ( for Charge )
ex . > ./mktreeTsc.csh ntctscan@12-05-2001.calib tscan_12-05-2001.root
So , you can get root ntuple file.
6. second , to get conversion parammeter ,
please set fitting range and output file name.
> emacs Tscan.C & (for Timing)
> emacs Qscan.C & (for Charge)
Click filename , you understand how to modify these files.
7. execute Tscan.C or Qscan.C
> root -l
> .x Tscan.C ( .x Qscan.C )
You see some histogram. If fitting range is in the wrong , go to 6 .
Begin again to set range.
> q
[root ] .q
So, you can get the conversion parameter file (~.dat) and one more root file (~_hist.root ).
8. thrid , you can get postscript file.
Please set fitting range like this.
> emacs fit_tdc.C & (for Timing)
> emacs fit_adc.C & (for Charge)
Click filename , you understand how to modify these files.
> root -l
[root 0] .L fit_tdc.C
( [root 0] .L fit_adc.C )
[root 1] fit_tdc.C("TDC0"," ~_hist.root " , " ~.ps ")
or fit_tdc.C("TDC1"," ~_hist.root " , " ~.ps ")
( [root 1] fit_adc.C("ADC"," ~_hist.root " , " ~.ps ") )
9. Enjoy !