(mkped_ntpc)=======================================
...
######################################
# directory for storing DATA,need to be changed
datadir=/data2/online/ntpcPedestal
######################################
* data directory designation.
This part designates the directory of input file to analyze,
and DaqNTPC-ped designates the direction of the output files of
data taking.
(new)
no need to change
...
############################
# data taking start
############################
### init & record ###
/usr/bin/X11/xterm -title "TPC3" -fg red -sb -geometry 50x13+0+400 -e
rsh leps5403 "DaqNTPC-ped init; DaqNTPC-ped record;" &
sleep 20
* cpu name should be changed.
...
###########################################
# analysis & making pedestal files start
###########################################
if [ -f $data ]; then
echo $analyzer $options3 $data
$analyzer $options3 $data
paw -l $macro3
cp -f pede.dat $pardir/$run1.dat2
$mask3 < $pardir/$run1.dat2 > tmp.ped
less err3.dat
mv -f tmp.ped $pardir/$run1.ped2
fi
.
.
.
./macro/maskPedAna3.pl < $pardir/$run1.dat2 > $pardir/$run1.dat0
* In case of cpu lep540X, optionsX,macroX,maskX are used.
errX.dat,$run1.dat[X-1],$run1.ped[X-1] are created.
Note that in case of cpu lep5401, err1.dat,$run1.dat,$run1.ped
are created.
===========================================================================
In data taking, other script
leps00:/home/solaris_home/online/bin/DaqNTPC-ped
is called. The difference between this and DaqNTPC which called in normal run is the collector they call.
2.leps00:/home/solaris_home/online/bin/DaqNTPC-ped (new)
This sets the environmental variable, and call each UNIDAQ process.
(DaqNTPC-ped)=======================================
...
#######################################
setenv DEFAULT_DATA_DIR /data2fe/online/ntpcPedestal
#######################################
*output direction
========================================================================
As mentioned in 1.,the difference between DaqNTPC-ped and DaqNTPC(used innormal DAQ) is used collector.
========================================================================
...
case 'lep5401'
setenv COLL collector-tpc-ped
# setenv COLL collector-tpc
setenv DETECTOR TPC
breaksw
...
========================================================================
3. leps00:/home/online/ntpc/evdis-8.03ped/optionX.pedeZero.dat
Îã: option3.pedeZero.dat============================================
Eve/IRQ : 0
Num_of_Channel : 192
usedamp_file : ./par/usedamp3.15.Sep05.dat
pedestal_file : ./par/pede_zero.dat
Num_of_DestID : 1
*Num_of_Channel = the total number of channels in the crate(32*6=192)
In case of new FADC test, 16.
====================================================================
4. leps00:/home/online/ntpc/evdis-8.03ped/par/usedampX15Sep05.dat
set FADC module's base address,module number,Amp number
Îã:usedamp3.15Sep05.dat=============================================
# Base Mod# Amp#1 Amp#2 on/off
1 20 2 39 40 1
2 15 35 29 30 1
3 16 21 31 32 1
4 17 9 33 34 1
5 18 32 35 36 1
6 19 15 37 38 1
====================================================================
5. leps00:/home/online/ntpc/evdis-8.03ped/macro/maskPedX.v2.pl
pedestal file and perl program to make error file used in analysis
Îã:maskPed3.v2.pl====================================================
<ÊÔ½¸¤¹¤Ù¤Éôʬ>
...
# cpu in 9U crate,6 modules, 15/Sep/05
@amp = (39,40,29,30,31,32,33,34,35,36,37,38);
@usedAmp = (39,40,29,30,31,32,33,34,35,36,37,38);
@base = (20,15,16,17,18,19);
*base address should be changed.
...
open(errFile,">err3.dat");
*set error file for each cpu
======================================================================
6. leps00:/home/online/ntpc/evdis-8.03ped/macro/maskPedAnaX.pl
the same as 5.
7. leps00:/home/online/ntpc/evdis-8.03ped/macro/pedeX.kumac
channel number should be changed
Instead of 1., please use mkped_ntpcX,(_noX) for cpu lep540X
to TPC
to Nakatsugawa's Home