CMS 3D CMS Logo

SinglePionPt60_ECALHCAL.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 def customise(process):
00003 
00004 # extend the particle gun acceptance
00005 
00006     process.source.AddAntiParticle = cms.untracked.bool(False)
00007 
00008 # add ECAL and HCAL specific Geant4 hits objects
00009 
00010     process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
00011         instanceLabel = cms.untracked.string('EcalValidInfo'),
00012         type = cms.string('EcalSimHitsValidProducer'),
00013         verbose = cms.untracked.bool(False)
00014     ))
00015 
00016 # modify the content
00017 
00018     process.output.outputCommands.append("keep *_simHcalUnsuppressedDigis_*_*")
00019           
00020 # user schedule: use only calorimeters digitization and local reconstruction
00021 
00022     del process.schedule[:]
00023 
00024     process.schedule.append(process.generation_step)
00025     process.schedule.append(process.simulation_step)
00026 
00027     process.ecalWeightUncalibRecHit.EBdigiCollection = cms.InputTag("simEcalDigis","ebDigis")
00028     process.ecalWeightUncalibRecHit.EEdigiCollection = cms.InputTag("simEcalDigis","eeDigis")
00029     process.ecalPreshowerRecHit.ESdigiCollection = cms.InputTag("simEcalPreshowerDigis")
00030 
00031     process.hbhereco.digiLabel = cms.InputTag("simHcalUnsuppressedDigis")
00032     process.horeco.digiLabel = cms.InputTag("simHcalUnsuppressedDigis")
00033     process.hfreco.digiLabel = cms.InputTag("simHcalUnsuppressedDigis")
00034 
00035     process.local_digireco = cms.Path(process.mix * process.calDigi * process.calolocalreco * (process.ecalClusters+process.caloTowersRec) )
00036 
00037     process.schedule.append(process.local_digireco)
00038 
00039     process.load("Validation/Configuration/ecalSimValid_cff")
00040     process.load("Validation/Configuration/hcalSimValid_cff")
00041     process.local_validation = cms.Path(process.ecalSimValid+process.hcalSimValid)
00042     process.schedule.append(process.local_validation)
00043 
00044     process.schedule.append(process.endjob_step)
00045     process.schedule.append(process.out_step)
00046 
00047     return(process)

Generated on Tue Jun 9 17:49:00 2009 for CMSSW by  doxygen 1.5.4