test
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 FWCore.ParameterSet.VarParsing as VarParsing
3 
4 process = cms.Process("ProcessOne")
5 
7 options.register( "password"
8  , "myToto"
9  , VarParsing.VarParsing.multiplicity.singleton
10  , VarParsing.VarParsing.varType.string
11  , "the password"
12  )
13 options.parseArguments()
14 
15 process.MessageLogger = cms.Service("MessageLogger",
16  debugModules = cms.untracked.vstring('*'),
17  cout = cms.untracked.PSet(
18  threshold = cms.untracked.string('DEBUG')
19  ),
20  destinations = cms.untracked.vstring('cout')
21 )
22 
23 process.source = cms.Source("EmptyIOVSource",
24  lastValue = cms.uint64(100000000000),
25  timetype = cms.string('runnumber'),
26  firstValue = cms.uint64(100000000000),
27  interval = cms.uint64(1)
28 )
29 
30 process.load("CondCore.CondDB.CondDB_cfi")
31 
32 process.CondDB.DBParameters.authenticationPath = ''
33 
34 #process.CondDB.connect = 'sqlite_file:EcalADCToGeVConstant_V1_express.db'
35 process.CondDB.connect = 'oracle://cms_orcon_prod/CMS_CONDITIONS'
36 
37 
38 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
39  process.CondDB,
40 # logconnect = cms.untracked.string('oracle://cms_orcon_prod/CMS_COND_31X_POPCONLOG'),
41  logconnect = cms.untracked.string('sqlite_file:log.db'),
42  toPut = cms.VPSet(cms.PSet(
43  record = cms.string('EcalADCToGeVConstantRcd'),
44  tag = cms.string('EcalADCToGeVConstant_V1_express')
45  ))
46 )
47 
48 process.Test1 = cms.EDAnalyzer("ExTestEcalADCToGeVAnalyzer",
49  record = cms.string('EcalADCToGeVConstantRcd'),
50  loggingOn= cms.untracked.bool(True),
51  IsDestDbCheckedInQueryLog=cms.untracked.bool(True),
52  SinceAppendMode=cms.bool(True),
53  Source=cms.PSet(
54  FileLowField = cms.string('/data/O2O/Ecal/TPG/ADCToGeV_Boff.xml'),
55  FileHighField = cms.string('/data/O2O/Ecal/TPG/ADCToGeV_Bon.xml'),
56 # FileLowField = cms.string('/afs/cern.ch/work/d/depasse/cmssw/CMSSW_8_0_1/src/CondTools/Ecal/python/ADCToGeV_express_current_BOFF.xml'),
57 # FileHighField = cms.string('/afs/cern.ch/work/d/depasse/cmssw/CMSSW_8_0_1/src/CondTools/Ecal/python/ADCToGeV_express_current_BON.xml'),
58  firstRun = cms.string('207149'),
59  lastRun = cms.string('10000000'),
60  OnlineDBSID = cms.string('cms_omds_lb'),
61 # OnlineDBSID = cms.string('cms_orcon_adg'), test on lxplus
62  OnlineDBUser = cms.string('cms_ecal_r'),
63  OnlineDBPassword = cms.string( options.password ),
64  LocationSource = cms.string('P5'),
65  Location = cms.string('P5_Co'),
66  GenTag = cms.string('GLOBAL'),
67  RunType = cms.string('COSMICS')
68  )
69 )
70 
71 process.p = cms.Path(process.Test1)