test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
copySli_cfg.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 
24 process.source = cms.Source("EmptyIOVSource",
25  lastValue = cms.uint64(100000000),
26  timetype = cms.string('runnumber'),
27  firstValue = cms.uint64(100000000),
28  interval = cms.uint64(1)
29 )
30 
31 process.load("CondCore.CondDB.CondDB_cfi")
32 
33 #process.CondDB.connect = 'sqlite_file:EcalTPGSlidingWindow_v2_hlt.db'
34 process.CondDB.connect = 'oracle://cms_orcon_prod/CMS_CONDITIONS'
35 process.CondDB.DBParameters.authenticationPath = ''
36 
37 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
38  process.CondDB,
39 # logconnect = cms.untracked.string('oracle://cms_orcon_prod/CMS_COND_31X_POPCONLOG'),
40  logconnect = cms.untracked.string('sqlite_file:log.db'),
41  toPut = cms.VPSet(cms.PSet(
42  record = cms.string('EcalTPGSlidingWindowRcd'),
43  tag = cms.string('EcalTPGSlidingWindow_v2_hlt')
44  ))
45 )
46 
47 process.Test1 = cms.EDAnalyzer("ExTestEcalTPGSlidingWindowAnalyzer",
48  record = cms.string('EcalTPGSlidingWindowRcd'),
49  loggingOn= cms.untracked.bool(True),
50  IsDestDbCheckedInQueryLog=cms.untracked.bool(True),
51  SinceAppendMode=cms.bool(True),
52  Source=cms.PSet(
53  firstRun = cms.string('200000'),
54  lastRun = cms.string('10000000'),
55  OnlineDBSID = cms.string('cms_omds_lb'),
56 # OnlineDBSID = cms.string('cms_orcon_adg'), test on lxplus
57  OnlineDBUser = cms.string('cms_ecal_r'),
58  OnlineDBPassword = cms.string( options.password ),
59  LocationSource = cms.string('P5'),
60  Location = cms.string('P5_Co'),
61  GenTag = cms.string('GLOBAL'),
62  RunType = cms.string('PHYSICS')
63  )
64 )
65 
66 process.p = cms.Path(process.Test1)