You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »

Sometimes the instrument specialists give us new calibrations. Usually just a dead strip list for TKR, 3 (asym, MeV/DAC, peds) at a time for CAL. They need to be put in a standard place, registered in the calibration DB, and set active. This requires picking a time when validity switches from the previous set to the new one. We want this to happen between runs. The gaps between non-SAA runs are short, and CALDB doesn't do leap seconds, so I put the transitions near the middle of an SAA passage - the first one after the last run that we have data for.

Step-by-step guide

  1. Make sure your environment is setup correctly:  
    1. Log into a SLAC machine.  You will need to have X11 forwarding enabled (the -X or -Y option if not enabled by default).
    2. If one is not already sourced in your .bashrc or .cshrc then:
    3. This will set environment variables like $GLASTROOT and the path to the GUI you will use below.
    4. Make sure that you have write permissions to the $LATCalibRoot directory.
      1. If not, ask Tom Glanzman (question).
  2. Copy files to the "normal" place (if the instrument people haven't already):
    1. TKR: $LATCalibRoot/TKR
    2. CAL: $LATCalibRoot/CAL/p7repro
  3. Figure out the transition time:
    1. Go to the data processing page.
      1. Find the most recent run. It will be at the top, unless deliveries have arrived out of order.
      2. Click on the run number.
      3. Note the start time.
    2. Go to the mission planning timeline
      1. Find the first SAA passage that is still in the future processing wise.
      2. Pick a time that is in the middle of the SAA passage. That is when we will start the new calibration.
  4. Start the rdbGUI.
  5. Go to the File menu and select 'Open DB Schema'.
  6. Navigate to the directory /afs/slac/g/glast/applications/dbSchemas/calib
    1. You can paste this into the File Name box.
    2. You can bookmark this location for future session by clicking on the flag icon.
  7. Open the calib.xml file and click on metadata_v2r1 under the Tables box.
  8. Under the Session menu, click on Open connection.  This will open a pop up box.
  9. Fill in the box like the image below.   The profile name and profile description boxes can be anything.  The password is "calibr8tor".
  10. Once connected, click on the drop down where is says "ser_no" (serial number) and set it to "instrument".  It will fill in "LAT" in the box on the right.
  11. Click on the "More" button at the bottom of the upper box.  This will add another drop down menu row.
  12. Select "flavor".
  13. In the right hand box (that may say "vanilla"), type in "L1current".
  14. Click on the "More" button again.
  15. Select "calib_type" (calibration type).
  16. In the right hand box, select the type, e.g., 'TKR_DeadChan'.
    1. If you don't know the type that corresponds to the file you have, you can pick an option from the menu and hit "Send" to see what the current/previous calibration files are used for that type. 
    2. For easier reference, here's a table with some example files and the calib_type for them.

      file name examplecalib_type
      fit_gcrhists_lkhd_568m_572m_bigsum.gcr_asym_hist.xmlCAL_Asym
      fit_proton_calib_568m_572m_bigsum.calMPD.xmlCAL_MevPerDac
      pedavr_568m_572m.xml

      CAL_Ped

      TKR_DeadChanLAT_BadStrips_45.xml
  17. Then click "Send".
  18. You will get something that looks like this:
  19. Select the last row in the bottom box.
  20. Add in the new calibration file.
    1. Right-click and select "Copy Latest" from the menu.
    2. In the pop-up box that comes up, change the time to the middle of the SAA passage chosen earlier.
    3. Change "data_ident" field to the file name for the XML file.
    4. Click "Send" and the pop-up will disappear.
    5. Click the "Send" button on the right hand middle of the box.
  21. There should be a new last line.  Scroll over and check that the "vstart" time is correct and that the "vend" field of the previous line is the same.
  22. Do this for each of the calibration files that need to be updated.
  23. Send a message to whoever created the files and cc the data monitor list to let them know when the calibration should take effect.
    1. Get the ID of the next run by using the XTime webapp to convert start time of the next run after the SAA pass into MET.
    2. Include the start time and first run, e.g., "Done vstart is 2018-09-28 03:43. First run should be 559799706."
  24. Later check that the new calibration has been used.
    1. Go to data processing page and click on the L1Proc bar for the run after the change should have happened.
    2. Go to the "Substreams" table in the middle of the page and click on one of the streams for the "doChunk" task.
    3. Go down to the "Substreams" table and click on any one of the "doCrumb" streams.
    4. Click on the log file link for the "recon" process.
    5. Search in the log for appropriate XML file(s).

 

 

 

 

 

 

 

  • No labels