Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:25:46

0001 import FWCore.ParameterSet.Config as cms
0002 process = cms.Process("testRECO")
0003 
0004 # import of standard configurations
0005 process.load('Configuration.StandardSequences.Services_cff')
0006 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0007 process.load('FWCore.MessageService.MessageLogger_cfi')
0008 process.load('Configuration.EventContent.EventContent_cff')
0009 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0010 process.load('Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff')
0011 process.load('Configuration.StandardSequences.RawToDigi_Data_cff')
0012 process.load('Configuration.StandardSequences.Reconstruction_Data_cff')
0013 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0014 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0015 
0016 
0017 # get timing service up for profiling
0018 process.TimerService = cms.Service("TimerService")
0019 process.options = cms.untracked.PSet(
0020     wantSummary = cms.untracked.bool(True)
0021 )
0022 
0023 # get uncalibrechits with ratio method
0024 from RecoLocalCalo.EcalRecProducers.ecalGlobalUncalibRecHit_cfi import ecalGlobalUncalibRecHit
0025 
0026 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(100))
0027 process.source = cms.Source("PoolSource",
0028     #fileNames = cms.untracked.vstring('/store/data/Commissioning08/Cosmics/RAW/v1/000/067/838/006945C8-40A5-DD11-BD7E-001617DBD556.root')
0029     fileNames = cms.untracked.vstring('file:/afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/DQMTest/MinimumBias__RAW__v1__165633__1CC420EE-B686-E011-A788-0030487CD6E8.root')
0030 )
0031 
0032 process.dumpEv = cms.EDAnalyzer("EventContentAnalyzer",
0033     verbose = cms.untracked.bool(True)
0034 )
0035 
0036 process.dumpUncalib = cms.EDAnalyzer("EcalUncalibRecHitDump",
0037     EBUncalibRecHitCollection = cms.InputTag("ecalGlobalUncalibRecHit","EcalUncalibRecHitsEB"),
0038     EEUncalibRecHitCollection = cms.InputTag("ecalGlobalUncalibRecHit","EcalUncalibRecHitsEE"),
0039 )
0040 
0041 #process.ecalTestRecoLocal = cms.Sequence(ecalGlobalUncalibRecHit * process.dumpEv)
0042 process.ecalTestRecoLocal = cms.Sequence(ecalGlobalUncalibRecHit)
0043 
0044 process.uncalibRecHitOutput = cms.OutputModule("PoolOutputModule",
0045     outputCommands = cms.untracked.vstring(
0046         'drop *',
0047         'keep *_ecalUncalibHit*_*_*',
0048         'keep *_ecalRecHit_*_*'
0049     ),
0050     fileName = cms.untracked.string('testEcalLocalRecoA.root')
0051 )
0052 
0053 from Configuration.AlCa.GlobalTag import GlobalTag
0054 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:com10', '')
0055 
0056 process.raw2digi_step = cms.Path(process.RawToDigi)
0057 process.reco_step = cms.Path(process.ecalTestRecoLocal)
0058 process.output_step = cms.EndPath(process.uncalibRecHitOutput)
0059 
0060 process.schedule = cms.Schedule(process.raw2digi_step, process.reco_step, process.output_step)