CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
copyFilePedestals.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_mc.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('runnumber'),
17  interval = cms.uint64(1)
18 )
19 
20 db_reader_account = 'CMS_ECAL_R'
21 db_service,db_user,db_pwd = auth.get_db_credentials( db_reader_account )
22 
23 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
24  process.CondDB,
25  logconnect = cms.untracked.string('sqlite_file:DBLog.db'),
26  timetype = cms.untracked.string('runnumber'),
27  toPut = cms.VPSet(
28  cms.PSet(
29  record = cms.string('EcalPedestalsRcd'),
30 # tag = cms.string('EcalPedestals_-0.1_-0.1')
31 # tag = cms.string('EcalPedestals_-0.3_-0.5')
32 # tag = cms.string('EcalPedestals_-0.5_-1')
33 # tag = cms.string('EcalPedestals_-1.5_-5')
34 # tag = cms.string('EcalPedestals_-1_-3')
35 # tag = cms.string('EcalPedestals_-2_-10')
36 # tag = cms.string('EcalPedestals_0.1_0.1')
37 # tag = cms.string('EcalPedestals_0.3_0.5')
38 # tag = cms.string('EcalPedestals_0.5_1')
39 # tag = cms.string('EcalPedestals_1.5_5')
40 # tag = cms.string('EcalPedestals_1_3')
41 # tag = cms.string('EcalPedestals_2_10')
42  tag = cms.string('EcalPedestals_0_0')
43  )
44  )
45 )
46 
47 process.Test1 = cms.EDAnalyzer("ExTestEcalPedestalsAnalyzer",
48  SinceAppendMode = cms.bool(True),
49  record = cms.string('EcalPedestalsRcd'),
50  loggingOn = cms.untracked.bool(True),
51  Source = cms.PSet(
52  GenTag = cms.string('***'),
53  RunTag = cms.string('***'),
54  OnlineDBUser = cms.string(db_user),
55  OnlineDBPassword = cms.string(db_pwd),
56  OnlineDBSID = cms.string(db_service),
57  Location = cms.string('***'),
58  LocationSource = cms.string('File'),
59 # filename = cms.untracked.string('/afs/cern.ch/user/s/shervin/public/forJean/6a9a2818932fce79d8222768ba4f2ad3f60f894c_-0.1_-0.1.dat'),
60 # filename = cms.untracked.string('/afs/cern.ch/user/s/shervin/public/forJean/6a9a2818932fce79d8222768ba4f2ad3f60f894c_-0.3_-0.5.dat'),
61 # filename = cms.untracked.string('/afs/cern.ch/user/s/shervin/public/forJean/6a9a2818932fce79d8222768ba4f2ad3f60f894c_-0.5_-1.dat'),
62 # filename = cms.untracked.string('/afs/cern.ch/user/s/shervin/public/forJean/6a9a2818932fce79d8222768ba4f2ad3f60f894c_-1.5_-5.dat'),
63 # filename = cms.untracked.string('/afs/cern.ch/user/s/shervin/public/forJean/6a9a2818932fce79d8222768ba4f2ad3f60f894c_-1_-3.dat'),
64 # filename = cms.untracked.string('/afs/cern.ch/user/s/shervin/public/forJean/6a9a2818932fce79d8222768ba4f2ad3f60f894c_-2_-10.dat'),
65 # filename = cms.untracked.string('/afs/cern.ch/user/s/shervin/public/forJean/6a9a2818932fce79d8222768ba4f2ad3f60f894c_0.1_0.1.dat'),
66 # filename = cms.untracked.string('/afs/cern.ch/user/s/shervin/public/forJean/6a9a2818932fce79d8222768ba4f2ad3f60f894c_0.3_0.5.dat'),
67 # filename = cms.untracked.string('/afs/cern.ch/user/s/shervin/public/forJean/6a9a2818932fce79d8222768ba4f2ad3f60f894c_0.5_1.dat'),
68 # filename = cms.untracked.string('/afs/cern.ch/user/s/shervin/public/forJean/6a9a2818932fce79d8222768ba4f2ad3f60f894c_1.5_5.dat'),
69 # filename = cms.untracked.string('/afs/cern.ch/user/s/shervin/public/forJean/6a9a2818932fce79d8222768ba4f2ad3f60f894c_1_3.dat'),
70 # filename = cms.untracked.string('/afs/cern.ch/user/s/shervin/public/forJean/6a9a2818932fce79d8222768ba4f2ad3f60f894c_2_10.dat'),
71  filename = cms.untracked.string('/afs/cern.ch/user/s/shervin/public/forJean/6a9a2818932fce79d8222768ba4f2ad3f60f894c_0_0.dat'),
72  firstRun = cms.string('1'),
73  lastRun = cms.string('100000000'),
74  debug = cms.bool(True)
75  )
76 )
77 
78 process.p = cms.Path(process.Test1)
79 
80