CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
copyTreePedestals.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import CondTools.Ecal.db_credentials as auth
3 
4 process = cms.Process("ProcessOne")
5 process.load("CondCore.CondDB.CondDB_cfi")
6 process.CondDB.connect = 'sqlite_file:EcalPedestals_tree.db'
7 
8 process.MessageLogger = cms.Service("MessageLogger",
9  debugModules = cms.untracked.vstring('*'),
10  destinations = cms.untracked.vstring('cout')
11 )
12 
13 process.source = cms.Source("EmptyIOVSource",
14  firstValue = cms.uint64(1),
15  lastValue = cms.uint64(1),
16  timetype = cms.string('timestamp'),
17  interval = cms.uint64(1)
18 )
19 
20 db_service,db_user,db_pwd = auth.get_readOnly_db_credentials()
21 
22 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
23  process.CondDB,
24  logconnect = cms.untracked.string('sqlite_file:DBLog.db'),
25  timetype = cms.untracked.string('runnumber'),
26  toPut = cms.VPSet(
27  cms.PSet(
28  record = cms.string('EcalPedestalsRcd'),
29  tag = cms.string('EcalPedestals_laser_2016')
30  )
31  )
32 )
33 
34 process.Test1 = cms.EDAnalyzer("ExTestEcalPedestalsAnalyzer",
35  SinceAppendMode = cms.bool(True),
36  record = cms.string('EcalPedestalsRcd'),
37  loggingOn = cms.untracked.bool(True),
38  Source = cms.PSet(
39  GenTag = cms.string('***'),
40  RunTag = cms.string('***'),
41  OnlineDBSID = cms.string(db_service),
42  OnlineDBUser = cms.string(db_user),
43  OnlineDBPassword = cms.string( db_pwd ),
44  Location = cms.string('***'),
45  LocationSource = cms.string('Tree'),
46  filename = cms.untracked.string('/afs/cern.ch/work/d/depasse/data/ana_ped_v3.root'),
47  firstRun = cms.string('285550'),
48  lastRun = cms.string('100000000'),
49  debug = cms.bool(True),
50  RunType = cms.untracked.int32(1)
51  )
52 )
53 
54 process.p = cms.Path(process.Test1)
55 
56