|
1 | 1 | import FWCore.ParameterSet.Config as cms |
| 2 | +import FWCore.ParameterSet.VarParsing as VarParsing |
2 | 3 |
|
3 | 4 | process = cms.Process("ProcessOne") |
4 | 5 |
|
| 6 | +options = VarParsing.VarParsing() |
| 7 | +options.register( "password" |
| 8 | + , "myToto" |
| 9 | + , VarParsing.VarParsing.multiplicity.singleton |
| 10 | + , VarParsing.VarParsing.varType.string |
| 11 | + , "the password" |
| 12 | + ) |
| 13 | +options.parseArguments() |
| 14 | + |
5 | 15 | process.MessageLogger = cms.Service("MessageLogger", |
6 | 16 | debugModules = cms.untracked.vstring('*'), |
7 | 17 | cout = cms.untracked.PSet( |
|
11 | 21 | ) |
12 | 22 |
|
13 | 23 | process.source = cms.Source("EmptyIOVSource", |
14 | | - lastValue = cms.uint64(1), |
| 24 | + lastValue = cms.uint64(2000000), |
15 | 25 | timetype = cms.string('runnumber'), |
16 | | - firstValue = cms.uint64(1), |
| 26 | + firstValue = cms.uint64(2000000), |
17 | 27 | interval = cms.uint64(1) |
18 | 28 | ) |
19 | 29 |
|
20 | | -process.load("CondCore.DBCommon.CondDBCommon_cfi") |
| 30 | +process.load("CondCore.CondDB.CondDB_cfi") |
21 | 31 |
|
22 | | -process.CondDBCommon.connect = 'sqlite_file:DB.db' |
23 | | -process.CondDBCommon.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb' |
| 32 | +#process.CondDB.connect = 'sqlite_file:EcalTPGFineGrainEBGroup_v2_hlt.db' |
| 33 | +process.CondDB.connect = 'oracle://cms_orcon_prod/CMS_CONDITIONS' |
| 34 | +process.CondDB.DBParameters.authenticationPath = '' |
24 | 35 |
|
25 | 36 | process.PoolDBOutputService = cms.Service("PoolDBOutputService", |
26 | | - process.CondDBCommon, |
27 | | - logconnect = cms.untracked.string('sqlite_file:log.db'), |
| 37 | + process.CondDB, |
| 38 | +# logconnect = cms.untracked.string('oracle://cms_orcon_prod/CMS_COND_31X_POPCONLOG'), |
| 39 | + logconnect = cms.untracked.string('sqlite_file:log.db'), |
28 | 40 | toPut = cms.VPSet(cms.PSet( |
29 | 41 | record = cms.string('EcalTPGFineGrainEBGroupRcd'), |
30 | | - #tag = cms.string('EcalTPGFineGrainEBGroup_craft') |
31 | | - tag = cms.string('EcalTPGFineGrainEBGroup_TPGTrivial_config') |
| 42 | + tag = cms.string('EcalTPGFineGrainEBGroup_v2_hlt') |
32 | 43 | )) |
33 | 44 | ) |
34 | 45 |
|
|
38 | 49 | IsDestDbCheckedInQueryLog=cms.untracked.bool(True), |
39 | 50 | SinceAppendMode=cms.bool(True), |
40 | 51 | Source=cms.PSet( |
41 | | - firstRun = cms.string('98273'), |
| 52 | + firstRun = cms.string('200000'), |
42 | 53 | lastRun = cms.string('10000000'), |
43 | 54 | OnlineDBSID = cms.string('cms_omds_lb'), |
44 | | - OnlineDBUser = cms.string('cms_ecal_conf'), |
45 | | - OnlineDBPassword = cms.string('*************'), |
| 55 | +# OnlineDBSID = cms.string('cms_orcon_adg'), test on lxplus |
| 56 | + OnlineDBUser = cms.string('cms_ecal_r'), |
| 57 | + OnlineDBPassword = cms.string( options.password ), |
46 | 58 | LocationSource = cms.string('P5'), |
47 | 59 | Location = cms.string('P5_Co'), |
48 | 60 | GenTag = cms.string('GLOBAL'), |
49 | | - RunType = cms.string('COSMICS') |
| 61 | + RunType = cms.string('PHYSICS') |
50 | 62 | ) |
51 | 63 | ) |
52 | 64 |
|
|
0 commit comments