CMS 3D CMS Logo

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