Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:25

0001 """
0002 PixelPopConCalibAnalyzer_cfi.py
0003 
0004 Python cfi file for the PixelPopConCalib application.
0005 
0006 Original version: Sep 2008, M. Eads
0007 """
0008 
0009 import FWCore.ParameterSet.Config as cms
0010 
0011 # set up the EDAnalyzer for the pixel calib config popcon application
0012 PixelPopConCalibAnalyzer = cms.EDAnalyzer('PixelPopConCalibAnalyzer',
0013                                           # record name - this is defined in CMSSW and shouldn't be changed
0014                                           record = cms.string('SiPixelCalibConfigurationRcd'),
0015                                           # choose whether to log the transfer - defaults to true
0016                                           loggingOn = cms.untracked.bool(True),
0017                                           # SinceAppendMode controls how the IOV given is interpreted.
0018                                           # If "true", the sinceIOV parameter will be appended to the IOV.
0019                                           # So, if sinceIOV is 10, then the IOV written will be from run 10 to infinity
0020                                           SinceAppendMode = cms.bool(True),
0021                                           Source = cms.PSet(
0022                                                             # ?
0023                                                             firstSince  = cms.untracked.double(300),
0024                                                             # connectString controls where the calib.dat information is read from
0025                                                             # to read from a file, it should begin with "file://"
0026                                                             # to read from the database, it should start with "oracle://"
0027                                                             # NOTE: READING THE CALIB.DAT FROM THE DATABASE IS NOT CURRENTLY IMPLEMENTED
0028                                                             connectString = cms.string('file:///afs/cern.ch/user/m/meads/test_calib.dat'),
0029                                                             # schemaName, viewName, runNumber, and configKeyName are only used when reading from the database
0030                                                             # (and are not currently used)
0031                                                             schemaName = cms.string('CMS_PXL_PIXEL_VIEW_OWNER'),
0032                                                             viewName = cms.string('CONF_KEY_PIXEL)CALIB_V'),
0033                                                             runNumber = cms.int32(-1),
0034                                                             configKeyName = cms.string('pixel-config-key-demo2'),
0035                                                             # sinceIOV (together with SinceAppendMode above) control the IOV that is assigned to this calib configuration object
0036                                                             sinceIOV = cms.uint32(1)
0037                                                             )
0038                                           )
0039 
0040 # Use CondDBCOmmon and PoolDBOutputSource to write the calib configuration object to ORCON
0041 from CondCore.DBCommon.CondDBCommon_cfi import *
0042 # connect string that determines to which database the calb config object will be written
0043 CondDBCommon.connect = cms.string('sqlite_file:testExample.db')
0044 # path to the database authentication.xml file
0045 CondDBCommon.DBParameters.authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0046 PoolDBOutputService = cms.Service("PoolDBOutputService",
0047     CondDBCommon,
0048     # connection string for the log database
0049     logconnect = cms.untracked.string('sqlite_file:log.db'),
0050     # records to put into the database
0051     toPut = cms.VPSet(cms.PSet(
0052         # record name - this is set in CMSSW and shouldn't be changed
0053         record = cms.string('SiPixelCalibConfigurationRcd'),
0054         # tag name
0055         tag = cms.string('Pxl_tst_tag1')
0056     ))
0057 )