| What's there? | Job options |
Production vanilla calibration data has a physical home:
/afs/slac.stanford.edu/g/glast/ground/EMcalibroot
It's associated with the environment variable EMcalibroot. If you're running on SLAC Linux and source $GROUPSCRIPTS/group.cshrc, the environment variable will be defined for you. Otherwise
| Where is it? | Job options |
Currently we have standard CAL calibration files: pedestals, gains, amd mu slopes. Soon we'll also have TKR hot strips and dead strips. At that time I'll make a tar ball of the files at SLAC and put it in the FTP space to simplify the process of installing the files elsewhere. You can see what is available (more accurately, what is supposed to be available) by making a query to the MySQL database:
mysql> select ser_no,vstart,calib_type,data_ident from metadata_v2r1 where instrument="EM" and flavor="vanilla";
+--------+---------------------+--------------+-----------------------------------------------------+
| ser_no | vstart | calib_type | data_ident |
+--------+---------------------+--------------+-----------------------------------------------------+
| 6 | 2000-08-02 00:00:00 | TKR_HotChan | $CALIBUTILROOT/xml/test/testHot-2002-05-02.xml |
| 21 | 2000-10-31 00:00:00 | TKR_DeadChan | $(CALIBUTILROOT)/xml/Tkr/DeadStripsOutput.xml |
| 22 | 2000-10-31 00:00:00 | TKR_HotChan | $(CALIBUTILROOT)/xml/Tkr/HotStripsOutput.xml |
| 27 | 2003-02-21 05:49:12 | CAL_Ped | $(CALIBUTILROOT)/xml/Cal/CalPed_PEM_022103.xml |
| 28 | 2003-02-21 05:49:12 | CAL_ElecGain | $(CALIBUTILROOT)/xml/Cal/CalGain_PEM_022103.xml |
| 29 | 2003-02-21 05:49:12 | CAL_MuSlope | $(CALIBUTILROOT)/xml/Cal/MuSlope_PEM_022103.xml |
| 36 | 2003-09-01 00:00:00 | CAL_ElecGain | $(EMcalibroot)/CAL/gains_1_2003-09-01-0000.xml |
| 37 | 2003-09-01 00:00:00 | CAL_MuSlope | $(EMcalibroot)/CAL/muslopes_1_2003-09-01-0000.xml |
| 38 | 2003-09-01 00:00:00 | CAL_Ped | $(EMcalibroot)/CAL/pedestals_1_2003-09-01-0000.xml |
| 41 | 2003-09-01 00:00:00 | TKR_HotChan | $(EMcalibroot)/TKR/hotStrips_1_2003-09-01-0000.xml |
| 42 | 2003-09-01 00:00:00 | TKR_DeadChan | $(EMcalibroot)/TKR/deadStrips_1_2003-09-01-0000.xml |
+--------+---------------------+--------------+-----------------------------------------------------+
Standard calibration (the ones with gold background in the table) have names of the form
calibType_seqNo_timestamp
where calibType must be one of the supported types,
seqNo is the next available integer in a
per-calibration-type sequence and timestamp is
normally the same as the value of vstart.
| Where is it? | What's there? |
In order to access the standard (flavor="vanilla") calibrations while processing EM event data from a Gaudi program like Gleam, you need provide job options parameters to
Typical job options handling all of the above look something like this:
// Add calibration services component ApplicationMgr.DLLs += {"CalibSvc"}; // Add calibration-related services: a data service, // conversion services,and persistency services ApplicationMgr.ExtSvc += {"CalibDataSvc"}; ApplicationMgr.ExtSvc += {"CalibMySQLCnvSvc", "CalibXmlCnvSvc" }; DetectorPersistencySvc.CnvServices += {"CalibMySQLCnvSvc"}; DetectorPersistencySvc.CnvServices += {"CalibXmlCnvSvc"}; // Set instrument for calibration data CalibDataSvc.CalibInstrumentName = "EM"; // CalibEvtClock needs to run after event is read in and before // any algorithms needing to access calibration data ApplicationMgr.TopAlg = {"digiRootReaderAlg", "CalibEvtClock", "myAnalysisAlg",... }; // Nominal first event timestamp and interval between events for // CalibEvtClock CalibEvtClock.startTime = "2003-10-01_00:20"; CalibEvtClock.delayTime = 1;
A little more work is required to access private calibrations of other flavors.