test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
copyBadXT_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 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.connect = 'sqlite_file:EcalTPGCrystalStatus_v2_hlt.db'
33 process.CondDB.connect = 'oracle://cms_orcon_prod/CMS_CONDITIONS'
34 process.CondDB.DBParameters.authenticationPath = ''
35 
36 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
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'),
40  toPut = cms.VPSet(cms.PSet(
41  record = cms.string('EcalTPGCrystalStatusRcd'),
42  tag = cms.string('EcalTPGCrystalStatus_v2_hlt')
43  ))
44 )
45 
46 process.Test1 = cms.EDAnalyzer("ExTestEcalTPGBadXTAnalyzer",
47  record = cms.string('EcalTPGCrystalStatusRcd'),
48  loggingOn= cms.untracked.bool(True),
49  IsDestDbCheckedInQueryLog=cms.untracked.bool(True),
50  SinceAppendMode=cms.bool(True),
51  Source=cms.PSet(
52  firstRun = cms.string('200000'),
53  lastRun = cms.string('10000000'),
54  OnlineDBSID = cms.string('cms_omds_lb'),
55 # OnlineDBSID = cms.string('cms_orcon_adg'), test on lxplus
56  OnlineDBUser = cms.string('cms_ecal_r'),
57  OnlineDBPassword = cms.string( options.password ),
58  LocationSource = cms.string('P5'),
59  Location = cms.string('P5_Co'),
60  GenTag = cms.string('GLOBAL'),
61  RunType = cms.string('PHYSICS')
62  )
63 )
64 
65 process.p = cms.Path(process.Test1)