Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:29:51

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 def customise(process):
0004 
0005 # add ECAL and HCAL specific Geant4 hits objects
0006 
0007     process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0008         instanceLabel = "EcalValidInfo",
0009         type = "EcalSimHitsValidProducer",
0010         verbose = False
0011     ))
0012 
0013 # use directly the generator output, no Hector
0014 
0015     process.g4SimHits.Generator.HepMCProductLabel = cms.string('generatorSmeared')
0016 
0017 # user schedule: use only calorimeters digitization and local reconstruction
0018 
0019     process.g4SimHits.ECalSD.StoreSecondary = True
0020     process.g4SimHits.CaloTrkProcessing.PutHistory = True
0021     process.simEcalUnsuppressedDigis.apdAddToBarrel = True
0022 
0023     return(process)