test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
copyBadStrip_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" #default value
9  , VarParsing.VarParsing.multiplicity.singleton
10  , VarParsing.VarParsing.varType.string
11  , "the password"
12  )
13 options.parseArguments()
14 
15 
16 process.MessageLogger = cms.Service("MessageLogger",
17  debugModules = cms.untracked.vstring('*'),
18  cout = cms.untracked.PSet(
19  threshold = cms.untracked.string('DEBUG')
20  ),
21  destinations = cms.untracked.vstring('cout')
22 )
23 
24 process.source = cms.Source("EmptyIOVSource",
25  lastValue = cms.uint64(100000000000),
26  timetype = cms.string('runnumber'),
27  firstValue = cms.uint64(100000000000),
28  interval = cms.uint64(1)
29 )
30 
31 process.load("CondCore.CondDB.CondDB_cfi")
32 
33 #process.CondDB.connect = 'sqlite_file:EcalTPGStripStatus_v3_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('EcalTPGStripStatusRcd'),
43  tag = cms.string('EcalTPGStripStatus_v3_hlt')
44  ))
45 )
46 
47 process.Test1 = cms.EDAnalyzer("ExTestEcalTPGBadStripAnalyzer",
48  record = cms.string('EcalTPGStripStatusRcd'),
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)