new TPC test operation manual (collector-level)

last modified 2005.11.17 (minor change: DaqNTPC¢ªDaqNTPCt)
log 2005.11.15 / 10.16
first version 2005.9.16


data taking


¡û40MHz clock
Clock is often broken when you reise the voltage. Reise the voltage carefully in the following way.

1.Confirm that the clock is "not connected" to the power supply.
2.Turn on the power, and check that voltage and current don't rise suddenly when you are reising the voltage. In such a case, wait for a while, and try again.
3.Set the votage 0V, and connect the clock.
4.Slowly and carefully, reise the voltage up to 5V.
5.Check the 25ns pulse width using oscilloscope. (The direct output from the clock has TTL level.)

¢¨The clock is absolutely broken when the voltage rise suddenly (the clock gets very hot). If it is broken, connect the new clock in the same way as before. (Note the position of the round and sharp edge of the clock.)

¡ûConnection to FADC
what to connect to LEMO connector (from top)
1 : 40MHz clock
2 : trigger
3 : nothing
4 : inhibit out (only the most-right module)
¢¨Note the tarmination


----- Do the data-taking in leps00 ------

¡ûntpct (new)
tests that DAQ runs or not for each crate.

<>
1. leps00> telnet lep540X ( X = 1¡Á6 )
2. lep540X> ntpct
3. After confirming that it works, suspend it(Ctrl-z),find its PID, and kill.

<>
1: leps00:/home/solaris_home/online/ntpc/fadcChk6U/optionX.dat
Write FADC module's base address and module number in this.
example. option3.dat =======================================
1000000                          --+    
1                                  |---- no need to change
1                                  |
100                              --+ 
6                                <-- # of FADC module
20     2      1
15     35     1
16     21     1
17     9      1
18     32     1
19     15     1

|      |      |
|      |      +----- used=1, not used=0 
|      +------------ module number
+------------------- base address
======================================================

¡ûoption file which collector refers to (new)

leps00:/home/solaris_home/online/user_UNIDAQ/collector-ntpc6U/fadcModX.dat

This file is used both in pedestal run and in normal run.
Write the number of used FADC modules and their base address in this file.


¡ûpedestal run

<>
leps00> cd /home/online/ntpc/evdis-8.03ped
leps00> ./mkped_ntpc <run#>

<>
1. leps00:/home/online/ntpc/evdis-8.03ped/mkped_ntpc
2. leps00:/home/solaris_home/online/bin/DaqNTPC-ped
3. leps00:/home/online/ntpc/evdis-8.03ped/optionX.pedeZero.dat
4. leps00:/home/online/ntpc/evdis-8.03ped/par/usedampX.15Sep05.dat
or usedampX.25Mar06.dat
5. leps00:/home/online/ntpc/evdis-8.03ped/macro/maskPedX.v2.pl
6. leps00:/home/online/ntpc/evdis-8.03ped/macro/maskPedAnaX.pl
7. leps00:/home/online/ntpc/evdis-8.03ped/macro/pedeX.kumac

1. leps00:/home/online/ntpc/evdis-8.03ped/mkped_ntpc
the main program of pedestal run (shell script) Read this script itself in detail.
(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