CMS 3D CMS Logo

EcalTPGFineGrainTowerfromFile_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("ProcessOne")
4 #process.load("CondCore.DBCommon.CondDB_cfi")
5 process.load("CondCore.CondDB.CondDB_cfi")
6 process.CondDB.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
7 #
8 # Choose the output database
9 #
10 process.CondDB.connect = 'sqlite_file:EcalTPGFineGrainTower.db'
11 
12 process.MessageLogger = cms.Service("MessageLogger",
13  debugModules = cms.untracked.vstring('*'),
14  destinations = cms.untracked.vstring('cout')
15 )
16 
17 process.source = cms.Source("EmptyIOVSource",
18  firstValue = cms.uint64(1),
19  lastValue = cms.uint64(1),
20  timetype = cms.string('runnumber'),
21  interval = cms.uint64(1)
22 )
23 
24 #process.PoolDBESSource = cms.ESSource("PoolDBESSource",
25 # process.CondDB,
26 # timetype = cms.untracked.string('runnumber'),
27 # toGet = cms.VPSet(
28 # cms.PSet(
29 # record = cms.string('EcalTPGFineGrainTowerEERcd'),
30 # tag = cms.string('EcalTPGFineGrainTower_test')
31 # )
32 # )
33 # )
34 
35 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
36  process.CondDB,
37  logconnect = cms.untracked.string('sqlite_file:DBLog.db'),
38  timetype = cms.untracked.string('runnumber'),
39  toPut = cms.VPSet(
40  cms.PSet(
41  record = cms.string('EcalTPGFineGrainTowerEERcd'),
42  tag = cms.string('EcalTPGFineGrainTower_test')
43  )
44  )
45 )
46 
47 process.Test1 = cms.EDAnalyzer("ExTestEcalTPGFineGrainTowerfromFile",
48  record = cms.string('EcalTPGFineGrainTowerEERcd'),
49  Source = cms.PSet(
50 # debug = cms.bool(True),
51  FileName = cms.string('/afs/cern.ch/cms/CAF/CMSCOMM/COMM_ECAL/azabi/TPG_beamv6_trans_spikekill_FGEE_2GEV_LUT.txt')
52  )
53 )
54 
55 process.p = cms.Path(process.Test1)