CMS 3D CMS Logo

copyFgrTowerEE_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 
6 process = cms.Process("ProcessOne")
7 
8 process.MessageLogger = cms.Service("MessageLogger",
9  debugModules = cms.untracked.vstring('*'),
10  cout = cms.untracked.PSet(
11  threshold = cms.untracked.string('DEBUG')
12  ),
13  destinations = cms.untracked.vstring('cout')
14 )
15 
16 process.source = cms.Source("EmptyIOVSource",
17  lastValue = cms.uint64(100000000),
18  timetype = cms.string('runnumber'),
19  firstValue = cms.uint64(100000000),
20  interval = cms.uint64(1)
21 )
22 
23 process.load("CondCore.CondDB.CondDB_cfi")
24 
25 process.CondDB.connect = conddb_init.options.destinationDatabase
26 process.CondDB.DBParameters.authenticationPath = ''
27 
28 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
29  process.CondDB,
30  toPut = cms.VPSet(cms.PSet(
31  record = cms.string('EcalTPGFineGrainTowerEERcd'),
32  tag = cms.string(conddb_init.options.destinationTag)
33  ))
34 )
35 
36 db_service,db_user,db_pwd = auth.get_readOnly_db_credentials()
37 
38 process.Test1 = cms.EDAnalyzer("ExTestEcalTPGFineGrainTowerEEAnalyzer",
39  record = cms.string('EcalTPGFineGrainTowerEERcd'),
40  loggingOn= cms.untracked.bool(True),
41  IsDestDbCheckedInQueryLog=cms.untracked.bool(True),
42  SinceAppendMode=cms.bool(True),
43  Source=cms.PSet(
44  firstRun = cms.string('200000'),
45  lastRun = cms.string('10000000'),
46  OnlineDBSID = cms.string(db_service),
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)