CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/CondTools/SiPixel/python/PixelPopConCalibAnalyzer_cfi.py

Go to the documentation of this file.
00001 """
00002 PixelPopConCalibAnalyzer_cfi.py
00003 
00004 Python cfi file for the PixelPopConCalib application.
00005 
00006 Original version: Sep 2008, M. Eads
00007 """
00008 
00009 import FWCore.ParameterSet.Config as cms
00010 
00011 # set up the EDAnalyzer for the pixel calib config popcon application
00012 PixelPopConCalibAnalyzer = cms.EDAnalyzer('PixelPopConCalibAnalyzer',
00013                                           # record name - this is defined in CMSSW and shouldn't be changed
00014                                           record = cms.string('SiPixelCalibConfigurationRcd'),
00015                                           # choose whether to log the transfer - defaults to true
00016                                           loggingOn = cms.untracked.bool(True),
00017                                           # SinceAppendMode controls how the IOV given is interpreted.
00018                                           # If "true", the sinceIOV parameter will be appended to the IOV.
00019                                           # So, if sinceIOV is 10, then the IOV written will be from run 10 to infinity
00020                                           SinceAppendMode = cms.bool(True),
00021                                           Source = cms.PSet(
00022                                                             # ?
00023                                                             firstSince  = cms.untracked.double(300),
00024                                                             # connectString controls where the calib.dat information is read from
00025                                                             # to read from a file, it should begin with "file://"
00026                                                             # to read from the database, it should start with "oracle://"
00027                                                             # NOTE: READING THE CALIB.DAT FROM THE DATABASE IS NOT CURRENTLY IMPLEMENTED
00028                                                             connectString = cms.string('file:///afs/cern.ch/user/m/meads/test_calib.dat'),
00029                                                             # schemaName, viewName, runNumber, and configKeyName are only used when reading from the database
00030                                                             # (and are not currently used)
00031                                                             schemaName = cms.string('CMS_PXL_PIXEL_VIEW_OWNER'),
00032                                                             viewName = cms.string('CONF_KEY_PIXEL)CALIB_V'),
00033                                                             runNumber = cms.int32(-1),
00034                                                             configKeyName = cms.string('pixel-config-key-demo2'),
00035                                                             # sinceIOV (together with SinceAppendMode above) control the IOV that is assigned to this calib configuration object
00036                                                             sinceIOV = cms.uint32(1)
00037                                                             )
00038                                           )
00039 
00040 # Use CondDBCOmmon and PoolDBOutputSource to write the calib configuration object to ORCON
00041 from CondCore.DBCommon.CondDBCommon_cfi import *
00042 # connect string that determines to which database the calb config object will be written
00043 CondDBCommon.connect = cms.string('sqlite_file:testExample.db')
00044 # path to the database authentication.xml file
00045 CondDBCommon.DBParameters.authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
00046 PoolDBOutputService = cms.Service("PoolDBOutputService",
00047     CondDBCommon,
00048     # connection string for the log database
00049     logconnect = cms.untracked.string('sqlite_file:log.db'),
00050     # records to put into the database
00051     toPut = cms.VPSet(cms.PSet(
00052         # record name - this is set in CMSSW and shouldn't be changed
00053         record = cms.string('SiPixelCalibConfigurationRcd'),
00054         # tag name
00055         tag = cms.string('Pxl_tst_tag1')
00056     ))
00057 )