CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
updateADCToGeV_express.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import CondTools.Ecal.conddb_init as conddb_init
3 import CondTools.Ecal.db_credentials as auth
4 
5 process = cms.Process("ProcessOne")
6 
7 process.MessageLogger = cms.Service("MessageLogger",
8  debugModules = cms.untracked.vstring('*'),
9  cout = cms.untracked.PSet(
10  threshold = cms.untracked.string('DEBUG')
11  ),
12  destinations = cms.untracked.vstring('cout')
13 )
14 
15 process.source = cms.Source("EmptyIOVSource",
16  lastValue = cms.uint64(100000000000),
17  timetype = cms.string('runnumber'),
18  firstValue = cms.uint64(100000000000),
19  interval = cms.uint64(1)
20 )
21 
22 process.load("CondCore.CondDB.CondDB_cfi")
23 
24 process.CondDB.DBParameters.authenticationPath = ''
25 
26 process.CondDB.connect = conddb_init.options.destinationDatabase
27 
28 
29 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
30  process.CondDB,
31  toPut = cms.VPSet(cms.PSet(
32  record = cms.string('EcalADCToGeVConstantRcd'),
33  tag = cms.string(conddb_init.options.destinationTag)
34  ))
35 )
36 
37 process.Test1 = cms.EDAnalyzer("ExTestEcalADCToGeVAnalyzer",
38  record = cms.string('EcalADCToGeVConstantRcd'),
39  loggingOn= cms.untracked.bool(True),
40  IsDestDbCheckedInQueryLog=cms.untracked.bool(True),
41  SinceAppendMode=cms.bool(True),
42  Source=cms.PSet(
43  FileLowField = cms.string('/data/O2O/Ecal/TPG/ADCToGeV_Boff.xml'),
44  FileHighField = cms.string('/data/O2O/Ecal/TPG/ADCToGeV_Bon.xml'),
45 # FileLowField = cms.string('/afs/cern.ch/work/d/depasse/cmssw/CMSSW_8_0_1/src/CondTools/Ecal/python/ADCToGeV_express_current_BOFF.xml'),
46 # FileHighField = cms.string('/afs/cern.ch/work/d/depasse/cmssw/CMSSW_8_0_1/src/CondTools/Ecal/python/ADCToGeV_express_current_BON.xml'),
47  firstRun = cms.string('207149'),
48  lastRun = cms.string('10000000'),
49  OnlineDBSID = cms.string(db_service),
50  OnlineDBUser = cms.string(db_user),
51  OnlineDBPassword = cms.string( db_pwd ),
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)