SLAC PEP-II
BABAR
SLAC<->RAL
Babar logo
HEPIC E,S & H Databases PDG HEP preprints
Organization Detector Computing Physics Documentation
Personnel Glossary Sitemap Search Hypernews
Unwrap page!
Det. Search
Who's who?
Meetings
FAQ
Images
Archive
Systems
Performance
Intern. region
Vertex Tracker
Drift chamber
DIRC
Calorimeter
IFR
LST
Magnet
Electronics
Trigger
Operations
Run Coordination
Contact Experts
Shift Takers Info
Operations Manual
Electronic Logbook
Ops Hypernews
Shift Signup
Check this page for HTML 4.01 Transitional compliance with the
W3C Validator
(More checks...)

EMC-EMT-GLT Calibrations

There are many different calibrations that can be done between the EMC, EMT & GLT. I will take time here to describe the primary ones between the EMC & EMT. All these calibrations must be done when there is NO beam. 


EMC -EMT

Before running this calibration you must first ensure that neither the EMC or EMT are in use by anyone since other calibrations such as light pulser will badly affect the results. The EMC must be in a running (ie calbrated state) this is best done by doing this calibration just after a run has finished normally. If the ROMs have been rebooted then it will be necessary to ask the DAQ system person to start a run 

    EMC-EMT Noise Tower Calibration

    Taking the Data

    There are several steps to this and I will attempt to go through them as thoroughly as possible. 
    • Run cratestart from any machine in the Control Room. (This is located in $BFROOT/detector/trg/emt)
    • Log into the three windows that appear.
    • In the window labeled EmtCrate type "xyplex of-emt" This will enable you to watch the ROM running through the test.
    • In the window labeled Control Level change directory into a release and srtpath. Then type "RunCalManager OrcCyles". You will then be asked to enter a crate mask. For the EMT this should be 400. You will then be asked to enter the configuration key value, WAIT
    • In the window labeled Event Level also change dir into "/nfs/babar/calib/emt". From here you should then run "$BFROOT/detector/trg/emt/EmtTCALNoise_logger". This will automatically start up correctly opening another window.
    • You may now enter the correct configuration key. For this calibration the value is 82.
    • The system will now run through 7 major cycles each containing 100 Minor/L1Accepts. As each Major cycle completes you will see a message in the OEP window stating that there has beenchanged event damage of 0x2000. This is completely normal.
    • Once this has finished running you will see a message in the Control Level window asking you to either enter another config key value or 0 to exit. Type 0 <CR>.
    • All extra windows that appeared will no dissappear and the Control & Event level windows will return to their prompts. You will now need to rename the resulting file that has been made. In the Event level window do an "ls -al babar-emc-emt*". This will give ou a list of the previously done calibration xtc files & one with the same first part to the name but with the normal 56bit ending. This should be renamed to the next regular number in the babar-emc-emt-tcalXXXXXXXX.xtc list (eg. babar-emc-emt-tcal00000001.xtc).
    • You are now ready to analyse this data.
     

    Analysing the Data

    After renaming the file to something consecutive with the other taken Tower Calibrations you can now using OEP look at the data you have just taken. It is best to do this on a machine such as Shire or Percheron to speed up this process since the detector will be waiting for you to finish. 
    • [shire01]> cd  $BFROOT/detector/trg/2.8.0 (or any recent online release)
    • [shire01]> srtpath
    • [shire01]> ir2boot
    • [shire01]> cd ../emt
    • [shire01]> ./noisetower  <run-name>
    This will produce an hbook file in the dir ./hbooks. 
    You may look at this now with your choice of paw variants 
    Therefore in paw: 

    PAW>h/fil 1 hbooks/babar-emc-emt-tcalXXXXXXXX.hbook 
    PAW>exec tcalmon 

    This will produce as output a ps file in the dir ./psfiles. It is best if this is now printed and looked at. 
    Now the following procedure must be followed. 

    [shire01]> cd /nfs/bbr-srv02/dataflow/constants/emt 
    [shire01]> cp aaaalink.mask run<next_run_number>.mask 
    [shire01]> chmod 744 run<next_run_number>.mask 
    [shire01]> emacs run<next_run_number>.mask& This will bring up a file with the same format as below up for editing 

         
    Start off by looking at the plot labeled Phi Energy V Time Theta 0;  As can be seen from this example the following toers are hot for theta 0. You must remeber that the Phi numbering runing up the Y axis start from bin 0!

    Hot towers = 1, 13, 16, 18, 21, 27, 32, 33, 34 & 35

    The file run<next_run_number>.mask must now be altered to reflect these towers that must be masked off. A 0 represents a masked tower.

    All the other towers in the fiule below have been change to reflect the results shown by the following 6 plots.Towers 1, 2, 3, 4, 5 & 6
    Example of a mask file below; 

          Theta Tower 
          7 6 5 4 3 2 1 0 

          0 1 1 1 1 1 1 1  0 1 1 1       0 
          0 1 1 1 1 1 1 0  0 1 1 1       1 
          0 1 1 1 1 1 1 1  0 1 1 1       2 
          0 1 1 1 1 1 1 1  0 1 1 1       3 
          0 1 1 1 1 1 1 1  0 1 1 1       4 
          0 1 1 1 1 1 1 1  0 1 1 1       5 
          0 1 1 1 1 1 1 1  0 1 1 1       6 
          0 1 1 1 1 1 1 1  0 1 1 1       7 
          0 1 1 1 1 1 1 1  0 1 1 1       8 
          0 1 1 1 1 1 1 1  0 1 1 1       9 
          0 1 1 1 1 1 1 1  0 1 1 1     10 
          0 1 1 1 1 1 1 1  0 1 1 1     11 
          0 1 1 1 1 1 1 1  0 1 1 1     12 
          0 1 1 1 1 1 1 0  0 1 1 1     13 
          0 1 1 1 1 1 1 1  0 1 1 1     14 
          0 1 1 1 1 1 1 1  0 1 1 1     15 
          0 1 1 1 1 1 1 0  0 1 1 1     16 
          0 0 1 1 1 1 1 1  0 1 1 1     17         Phi Towers 
          0 1 1 1 1 1 1 0  0 1 1 1     18 
          0 1 1 1 1 1 1 1  0 1 1 1     19 
          0 1 1 1 1 1 1 1  0 1 1 1     20 
          0 1 1 1 1 1 1 0  0 1 1 1     21 
          0 1 1 1 1 1 1 1  0 1 1 1     22 
          0 1 1 1 1 1 1 1  0 1 1 1     23 
          0 1 1 1 1 1 1 1  0 1 1 1     24 
          0 1 1 1 1 1 1 1  0 1 1 1     25 
          0 1 1 1 1 1 1 1  0 1 1 1     26 
          0 1 1 1 1 1 1 0  0 1 1 1     27 
          0 1 1 1 1 1 1 1  0 1 1 1     28 
          0 1 1 1 1 1 1 1  0 1 1 1     29 
          0 1 1 1 1 1 1 1  0 1 1 1     30 
          0 1 1 1 1 1 1 1  0 1 1 1     31 
          0 1 1 1 1 1 1 0  0 1 1 1     32 
          0 1 1 1 1 1 1 0  0 1 1 1     33 
          0 1 1 1 1 1 1 0  0 1 1 1     34 
          0 1 1 0 1 1 1 0  0 1 1 1     35 
          0 1 1 1 1 1 1 1  0 1 1 1     36 
          0 1 1 1 1 1 1 1  0 1 1 1     37 
          0 1 1 1 1 1 1 1  0 1 1 1     38 
          0 1 1 1 1 1 1 1  0 1 1 1     39 
           

     The last thing that you now must do is in the /nfs/bbr-srv02/constants/emt directory;
    • [shire01]> rm aaaalink.mask
    • [shire01]> ln -s run<next_run_number>.mask aaaalink.mask

    You are now ready to hand the system back over to the shift crew.

    NOTE: Editing the mask file by hand is a temporary measure which will soon become automated.


    EMC-EMT Serial Number Calibration

    Taking the Data

    The basics of taking this calibration are the same as the above Noise calibration though a different logger is used & a different crate mask. In the Event Leval window type EmtTCALSerial_logger instead of  EmtTCALNoise_logger. All this does is to use a differnt crate mask for running the calibration. The crate mask for this is:

    Crate Mask = 7ff

    Since this is a different type of calibration then a different Calibration key must therefore be used. In this case it is 81.
    The usage of RunCalManager and the xyplex is exactly the same as above.

    Analysing the Data

    Here you also want to be logger onto a machine such as shire. The startup procedure invloving srtpath & ir2boot is the same and also eventually you also want to be in the $BFROOT/detector/trg/emt directory.

    From here the executable is:

    serialtower babar-emc-emt-tcalXXXXXXXX

    Since this application produces alot of output to the screen it would probably be est if you pipe this to a file so that it can be looked at later. One of the EMT group would popbably be best to have a look through this file so it isn't necessary for you to. The hbook file is put in the same hbooks directory as above 
    Open paw and execute towercheck.kumac on it. This also prints output to a ps file and it wouls also be best if this was printed out and put in the Trigger folder. An EMT person would probably be best to look at this so if necessary phone one of them or wait until daytime!
     


    EMC -EMT FrameClash Calibration

    This calibration is necessary to check that the framing of the data being sent from the EMC is correctly aligned with the EMT internal frame.

    INSTRUCTIONS TO COME