CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/SimG4CMS/Calo/python/APDSimu_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 def customise(process):
00004 
00005 # add ECAL and HCAL specific Geant4 hits objects
00006 
00007     process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
00008         instanceLabel = cms.untracked.string('EcalValidInfo'),
00009         type = cms.string('EcalSimHitsValidProducer'),
00010         verbose = cms.untracked.bool(False)
00011     ))
00012 
00013 # use directly the generator output, no Hector
00014 
00015     process.g4SimHits.generator.HepMCProductLabel = cms.string('generator')
00016 
00017 # user schedule: use only calorimeters digitization and local reconstruction
00018 
00019     process.g4SimHits.ECalSD.StoreSecondary = True
00020     process.g4SimHits.CaloTrkProcessing.PutHistory = True
00021     process.simEcalUnsuppressedDigis.apdAddToBarrel = True
00022 
00023     return(process)