/
copyLin_cfg.py
65 lines (56 loc) · 2.23 KB
/
copyLin_cfg.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import FWCore.ParameterSet.Config as cms
import FWCore.ParameterSet.VarParsing as VarParsing
process = cms.Process("ProcessOne")
options = VarParsing.VarParsing()
options.register( "password"
, "myToto"
, VarParsing.VarParsing.multiplicity.singleton
, VarParsing.VarParsing.varType.string
, "the password"
)
options.parseArguments()
process.MessageLogger = cms.Service("MessageLogger",
debugModules = cms.untracked.vstring('*'),
cout = cms.untracked.PSet(
threshold = cms.untracked.string('DEBUG')
),
destinations = cms.untracked.vstring('cout')
)
process.source = cms.Source("EmptyIOVSource",
lastValue = cms.uint64(100000000),
timetype = cms.string('runnumber'),
firstValue = cms.uint64(100000000),
interval = cms.uint64(1)
)
process.load("CondCore.CondDB.CondDB_cfi")
#process.CondDB.connect = 'sqlite_file:EcalTPGLinearizationConst_v2_hlt.db'
process.CondDB.connect = 'oracle://cms_orcon_prod/CMS_CONDITIONS'
process.CondDB.DBParameters.authenticationPath = ''
process.PoolDBOutputService = cms.Service("PoolDBOutputService",
process.CondDB,
# logconnect = cms.untracked.string('oracle://cms_orcon_prod/CMS_COND_31X_POPCONLOG'),
logconnect = cms.untracked.string('sqlite_file:log.db'),
toPut = cms.VPSet(cms.PSet(
record = cms.string('EcalTPGLinearizationConstRcd'),
tag = cms.string('EcalTPGLinearizationConst_v2_hlt')
))
)
process.Test1 = cms.EDAnalyzer("ExTestEcalTPGLinConstAnalyzer",
record = cms.string('EcalTPGLinearizationConstRcd'),
loggingOn= cms.untracked.bool(True),
IsDestDbCheckedInQueryLog=cms.untracked.bool(True),
SinceAppendMode=cms.bool(True),
Source=cms.PSet(
firstRun = cms.string('200000'),
lastRun = cms.string('10000000'),
OnlineDBSID = cms.string('cms_omds_lb'),
# OnlineDBSID = cms.string('cms_orcon_adg'), test on lxplus
OnlineDBUser = cms.string('cms_ecal_r'),
OnlineDBPassword = cms.string( options.password ),
LocationSource = cms.string('P5'),
Location = cms.string('P5_Co'),
GenTag = cms.string('GLOBAL'),
RunType = cms.string('PHYSICS')
)
)
process.p = cms.Path(process.Test1)