Instruction to build & load pedestals for EEMC FEEs


    B U I L D new pedestals for FEE

  1. acquire an event file with miniDaq. One can use also STAR-DAQ events, but after processing with Piotr's 'siew' - it takes more time & work.
  2. ssh star@eemc-sc.starp
    cd ezGames
    root -b 'macros/feePed.C("january15",10000)'

    The parameter are: ezTree event file name and number of events you want to process. The default directory for the input data is '/home/online/mini/trees/towerFeePed/' .
    It is expected the event file is copied there and renamed (e.g. use month & day in the name)

  3. The text output shows the Gaussian fit results for all 6x128 channels. Format:
    name   Nentries chi2  gaus_ampl gaus_mean gaus_sig err_ampl err_mean err_sig 
    cr1-ch000     1570   21.540   508.820    14.48    1.17  15.73    0.03   0.02
    cr1-ch001     1570    7.717   591.958    17.87    1.02  19.37    0.03   0.02
    ...
    
  4. If you are unhappy with the fitting range for individual channels, there is an option to change it by editing macros/feePed.C. Add more special cases following:
        // Fit range max -low, max+high, default: max-5, max+4
        if(cr==4 && chan==13)  ret=pedH->fitPed(h,8); 
        if(cr==4 && chan==95)  ret=pedH->fitPed(h,20); 
        if(cr==5 && chan==95)  ret=pedH->fitPed(h,12,12); 
        else   ret=pedH->fitPed(h);
    
    Remember to send to CVS the latest version of macros/feePed.C, or whatever you did will be lost during nest update of the code.
  5. The 6x4=24 ped4-files are written in to:
    /home/star/ezGames/feePed4
    -rw-rw-r--    1 online   online         96 Apr 16 12:07 crate3board1.ped4
    -rw-rw-r--    1 online   online         68 Apr 16 12:07 crate3board2.ped4
    -rw-rw-r--    1 online   online         64 Apr 16 12:07 crate3board3.ped4
    ....
    
    In the same directory one gets a summary ped4-file 'all' (for easire view) and histograms stored in feePed.hist.root may be viewed with
    root.exe 'macros/feePedHist.C(5,2)' <==(crate,j) --> chan=16*j, ...+16


    L O A D pedestals to FEE - N O T T E S T E D !

    last year instruction below

  6. Loading pedestals to FEE
    1. sign in to eemc-sc as online
    2. cd ~online/mini/tcl
    3. start etd_qa.hdlc (make sure the version number is 2.7 or greater)
    4. select Options and then Configuration
    5. find the "Go" buttons (row Board Pedestals)
    6. now you can type 32 pedestal values by hand, the editor page checks if the range supplied is -15..+15

      There are five buttons:
      
      1) Read
      attempts to read 32 pedestal values from addresses 
      0x63000-0x6301E (1-16) and 0x67000-0x6701E (17-32)
      
      2) Write 
      attempts to write 32 pedestal values from addresses 
      0x63000-0x6301E (1-16) and 0x67000-0x6701E (17-32)
      0x6B000-0x6B01E (1-16) and 0x6F000-0x6F01E (17-32)
      
      3) Defaults
      attempts to load ped/default/crate${cn}board${bd}.ped4 file
      into editor page
      (replace ${cn} and ${bd} with current crate/board number)
      
      Note: the default pedestal files created by 'doFeePed'  need to be
       copied each time 
      from  eemc-sc:~online/mini/tcl/ped/new 
      to    eemc-sc:~online/mini/tcl/ped/default
      
      Since there is no online DB archive for ped4 files, 
      do not discard old ones.
      
      4) Load/File
      allows to select a file (*.ped4) and loads the pedestals from it
      to the editor page
      
      5) Save/File
      allows to save pedestal values to a file
      
      6) Dismiss
      close the pedestal page