CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PixelPopConCalibAnalyzer_cfi.py
Go to the documentation of this file.
1 """
2 PixelPopConCalibAnalyzer_cfi.py
3 
4 Python cfi file for the PixelPopConCalib application.
5 
6 Original version: Sep 2008, M. Eads
7 """
8 
9 import FWCore.ParameterSet.Config as cms
10 
11 # set up the EDAnalyzer for the pixel calib config popcon application
12 PixelPopConCalibAnalyzer = cms.EDAnalyzer('PixelPopConCalibAnalyzer',
13  # record name - this is defined in CMSSW and shouldn't be changed
14  record = cms.string('SiPixelCalibConfigurationRcd'),
15  # choose whether to log the transfer - defaults to true
16  loggingOn = cms.untracked.bool(True),
17  # SinceAppendMode controls how the IOV given is interpreted.
18  # If "true", the sinceIOV parameter will be appended to the IOV.
19  # So, if sinceIOV is 10, then the IOV written will be from run 10 to infinity
20  SinceAppendMode = cms.bool(True),
21  Source = cms.PSet(
22  # ?
23  firstSince = cms.untracked.double(300),
24  # connectString controls where the calib.dat information is read from
25  # to read from a file, it should begin with "file://"
26  # to read from the database, it should start with "oracle://"
27  # NOTE: READING THE CALIB.DAT FROM THE DATABASE IS NOT CURRENTLY IMPLEMENTED
28  connectString = cms.string('file:///afs/cern.ch/user/m/meads/test_calib.dat'),
29  # schemaName, viewName, runNumber, and configKeyName are only used when reading from the database
30  # (and are not currently used)
31  schemaName = cms.string('CMS_PXL_PIXEL_VIEW_OWNER'),
32  viewName = cms.string('CONF_KEY_PIXEL)CALIB_V'),
33  runNumber = cms.int32(-1),
34  configKeyName = cms.string('pixel-config-key-demo2'),
35  # sinceIOV (together with SinceAppendMode above) control the IOV that is assigned to this calib configuration object
36  sinceIOV = cms.uint32(1)
37  )
38  )
39 
40 # Use CondDBCOmmon and PoolDBOutputSource to write the calib configuration object to ORCON
42 # connect string that determines to which database the calb config object will be written
43 CondDBCommon.connect = cms.string('sqlite_file:testExample.db')
44 # path to the database authentication.xml file
45 CondDBCommon.DBParameters.authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
46 PoolDBOutputService = cms.Service("PoolDBOutputService",
47  CondDBCommon,
48  # connection string for the log database
49  logconnect = cms.untracked.string('sqlite_file:log.db'),
50  # records to put into the database
51  toPut = cms.VPSet(cms.PSet(
52  # record name - this is set in CMSSW and shouldn't be changed
53  record = cms.string('SiPixelCalibConfigurationRcd'),
54  # tag name
55  tag = cms.string('Pxl_tst_tag1')
56  ))
57 )