CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
copyLin_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import CondTools.Ecal.conddb_init as conddb_init
3 import CondTools.Ecal.db_credentials as auth
4 
5 process = cms.Process("ProcessOne")
6 
7 rocess.MessageLogger = cms.Service("MessageLogger",
8  debugModules = cms.untracked.vstring('*'),
9  cout = cms.untracked.PSet(
10  threshold = cms.untracked.string('DEBUG')
11  ),
12  destinations = cms.untracked.vstring('cout')
13 )
14 
15 process.source = cms.Source("EmptyIOVSource",
16  lastValue = cms.uint64(100000000),
17  timetype = cms.string('runnumber'),
18  firstValue = cms.uint64(100000000),
19  interval = cms.uint64(1)
20 )
21 
22 process.load("CondCore.CondDB.CondDB_cfi")
23 
24 process.CondDB.connect = conddb_init.options.destinationDatabase
25 process.CondDB.DBParameters.authenticationPath = ''
26 
27 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
28  process.CondDB,
29  toPut = cms.VPSet(cms.PSet(
30  record = cms.string('EcalTPGLinearizationConstRcd'),
31  tag = cms.string(conddb_init.options.destinationTag)
32  ))
33 )
34 
35 db_service,db_user,db_pwd = auth.get_readOnly_db_credentials()
36 
37 process.Test1 = cms.EDAnalyzer("ExTestEcalTPGLinConstAnalyzer",
38  record = cms.string('EcalTPGLinearizationConstRcd'),
39  loggingOn= cms.untracked.bool(True),
40  IsDestDbCheckedInQueryLog=cms.untracked.bool(True),
41  SinceAppendMode=cms.bool(True),
42  Source=cms.PSet(
43  firstRun = cms.string('200000'),
44  lastRun = cms.string('10000000'),
45  OnlineDBSID = cms.string(db_service),
46 # OnlineDBSID = cms.string('cms_orcon_adg'), test on lxplus
47  OnlineDBUser = cms.string(db_user),
48  OnlineDBPassword = cms.string( db_pwd ),
49  LocationSource = cms.string('P5'),
50  Location = cms.string('P5_Co'),
51  GenTag = cms.string('GLOBAL'),
52  RunType = cms.string('PHYSICS')
53  )
54 )
55 
56 process.p = cms.Path(process.Test1)