Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:34:24

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("Demo")
0004 
0005 process.load('Configuration/StandardSequences/Services_cff')
0006 process.load('FWCore/MessageService/MessageLogger_cfi')
0007 process.load('Configuration.StandardSequences.GeometryDB_cff')
0008 process.load('Configuration/StandardSequences/MagneticField_38T_cff')
0009 process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')
0010 process.load('Configuration/EventContent/EventContent_cff')
0011 
0012 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0013 
0014 #process.source = cms.Source("PoolSource",
0015     ## replace 'myfile.root' with the source file you want to use
0016     #fileNames = cms.untracked.vstring(
0017         #'file:myfile.root'
0018     #)
0019 #)
0020 
0021 
0022 
0023 
0024 process.source = cms.Source("PoolSource",
0025    fileNames = cms.untracked.vstring('/store/relval/CMSSW_5_0_0_pre7/RelValH130GGgluonfusion/GEN-SIM-RECO/START50_V7-v1/0070/903C7DE3-7722-E111-A53A-003048678B86.root'),
0026 )
0027 
0028         
0029 
0030 process.egenergyanalyzer = cms.EDAnalyzer('EGEnergyAnalyzer'
0031 )
0032 
0033 
0034 process.GlobalTag.globaltag = 'START50_V7::All'    
0035 
0036             
0037 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0038 # input database (in this case local sqlite file)
0039 process.CondDBCommon.connect = 'sqlite_file:GBRWrapper.db'
0040 
0041 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0042     process.CondDBCommon,
0043     DumpStat=cms.untracked.bool(True),
0044     toGet = cms.VPSet(
0045       cms.PSet(
0046         record = cms.string('GBRWrapperRcd'),
0047         tag = cms.string('wgbrph_EBCorrection'),
0048         label = cms.untracked.string('wgbrph_EBCorrection')
0049       ),
0050       cms.PSet(
0051         record = cms.string('GBRWrapperRcd'),
0052         tag = cms.string('wgbrph_EBUncertainty'),
0053         label = cms.untracked.string('wgbrph_EBUncertainty')
0054       ),    
0055       cms.PSet(
0056         record = cms.string('GBRWrapperRcd'),
0057         tag = cms.string('wgbrph_EECorrection'),
0058         label = cms.untracked.string('wgbrph_EECorrection')
0059       ),
0060       cms.PSet(
0061         record = cms.string('GBRWrapperRcd'),
0062         tag = cms.string('wgbrph_EEUncertainty'),
0063         label = cms.untracked.string('wgbrph_EEUncertainty')
0064       ),        
0065     )
0066 )
0067             
0068                 
0069                     
0070 process.p = cms.Path(process.egenergyanalyzer)