Functions | |
def | customise |
def SinglePionPt60_ECALHCAL::customise | ( | process | ) |
Definition at line 2 of file SinglePionPt60_ECALHCAL.py.
00002 : 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) return(process)