Find the first SAA passage that is still in the future processing wise.
Pick a time that is in the middle of the SAA passage. That is when we will start the new calibration.
Start the rdbGUI.
Go to the File menu and select 'Open DB Schema'.
Navigate to the directory /afs/slac/g/glast/applications/dbSchemas/calib
You can paste this into the File Name box.
You can bookmark this location for future session by clicking on the flag icon.
Open the calib.xml file and click on metadata_v2r1 under the Tables box.
Under the Session menu, click on Open connection. This will open a pop up box.
Fill in the box like the image below. The profile name and profile description boxes can be anything. The password is "calibr8tor".
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.
Click on the "More" button at the bottom of the upper box. This will add another drop down menu row.
Select "flavor".
In the right hand box (that may say "vanilla"), type in "L1current".
Click on the "More" button again.
Select "calib_type" (calibration type).
In the right hand box, select the type, e.g., 'TKR_DeadChan'.
Then click "Send".
You will get something that looks like this:
Select the last row in the bottom box.
Add in the new calibration file.
Right-click and select "Copy Latest" from the menu.
In the pop-up box that comes up, change the time to the middle of the SAA passage chosen earlier.
Change "data_ident" field to the file name for the XML file.
Click "Send" and the pop-up will disappear.
Click the "Send" button on the right hand middle of the box.
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.
Later check that the new calibration has been used.
Go to data processing page and pick a run after the change should take have taken effect.
Go to the "Substreams" in the middle of the page.
Click on one of the streams for the "doChunk" task.
Go down to the "doCrumb" Substreams and click on any one.
Click on the log file link for the "recon" process.
Search in the log for appropriate XML file.
Send a message to the data monitor list to let them know when the calibration will took effect.