CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
updateADCToGeV.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("ProcessOne")
4 
5 process.MessageLogger = cms.Service("MessageLogger",
6  debugModules = cms.untracked.vstring('*'),
7  cout = cms.untracked.PSet(
8  threshold = cms.untracked.string('DEBUG')
9  ),
10  destinations = cms.untracked.vstring('cout')
11 )
12 
13 process.source = cms.Source("EmptyIOVSource",
14  lastValue = cms.uint64(100000000000),
15  timetype = cms.string('runnumber'),
16  firstValue = cms.uint64(100000000000),
17  interval = cms.uint64(1)
18 )
19 
20 process.load("CondCore.DBCommon.CondDBCommon_cfi")
21 
22 process.CondDBCommon.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb'
23 
24 #process.CondDBCommon.connect = 'sqlite_file:DB.db'
25 #process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
26 process.CondDBCommon.connect = 'oracle://cms_orcon_prod/CMS_COND_31X_ECAL'
27 
28 
29 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
30  process.CondDBCommon,
31  logconnect = cms.untracked.string('oracle://cms_orcon_prod/CMS_COND_31X_POPCONLOG'),
32 # logconnect = cms.untracked.string('sqlite_file:log.db'),
33  toPut = cms.VPSet(cms.PSet(
34  record = cms.string('EcalADCToGeVConstantRcd'),
35  tag = cms.string('EcalADCToGeVConstant_v8_offline')
36  ))
37 )
38 
39 process.Test1 = cms.EDAnalyzer("ExTestEcalADCToGeVAnalyzer",
40  record = cms.string('EcalADCToGeVConstantRcd'),
41  loggingOn= cms.untracked.bool(True),
42  IsDestDbCheckedInQueryLog=cms.untracked.bool(True),
43  SinceAppendMode=cms.bool(True),
44  Source=cms.PSet(
45  FileLowField = cms.string('/nfshome0/popcondev/EcalTPGPopCon/CMSSW_3_11_0_ONLINE/src/CondTools/Ecal/python/ADCtoGeV_Boff.xml'),
46  FileHighField = cms.string('/nfshome0/popcondev/EcalTPGPopCon/CMSSW_3_11_0_ONLINE/src/CondTools/Ecal/python/ADCtoGeV_Bon.xml'),
47  firstRun = cms.string('98273'),
48  lastRun = cms.string('10000000'),
49  OnlineDBSID = cms.string('cms_omds_lb'),
50  OnlineDBUser = cms.string('cms_ecal_r'),
51  OnlineDBPassword = cms.string('*******'),
52  LocationSource = cms.string('P5'),
53  Location = cms.string('P5_Co'),
54  GenTag = cms.string('GLOBAL'),
55  RunType = cms.string('COSMICS')
56  )
57 )
58 
59 process.p = cms.Path(process.Test1)