Functions | |
def | customise |
def HCAL::customise | ( | process | ) |
Definition at line 2 of file HCAL.py.
00002 : 00003 00004 # geometry addition to avoid problems with ECAL chain 00005 00006 process.load('Geometry.CaloEventSetup.EcalTrigTowerConstituents_cfi') 00007 process.load('Geometry.EcalMapping.EcalMapping_cfi') 00008 process.load('Geometry.EcalMapping.EcalMappingRecord_cfi') 00009 00010 # extend the particle gun acceptance 00011 00012 process.source.AddAntiParticle = cms.untracked.bool(False) 00013 00014 # no magnetic field 00015 00016 process.g4SimHits.UseMagneticField = cms.bool(False) 00017 process.UniformMagneticFieldESProducer = cms.ESProducer("UniformMagneticFieldESProducer", 00018 ZFieldInTesla = cms.double(0.0) 00019 ) 00020 00021 process.prefer("UniformMagneticFieldESProducer") 00022 00023 # modify the content 00024 00025 process.output.outputCommands.append("keep *_simHcalUnsuppressedDigis_*_*") 00026 00027 # user schedule: use only calorimeters digitization and local reconstruction 00028 00029 del process.schedule[:] 00030 00031 process.schedule.append(process.generation_step) 00032 process.schedule.append(process.simulation_step) 00033 00034 process.ecalWeightUncalibRecHit.EBdigiCollection = cms.InputTag("simEcalDigis","ebDigis") 00035 process.ecalWeightUncalibRecHit.EEdigiCollection = cms.InputTag("simEcalDigis","eeDigis") 00036 process.ecalPreshowerRecHit.ESdigiCollection = cms.InputTag("simEcalPreshowerDigis") 00037 00038 process.hbhereco.digiLabel = cms.InputTag("simHcalUnsuppressedDigis") 00039 process.horeco.digiLabel = cms.InputTag("simHcalUnsuppressedDigis") 00040 process.hfreco.digiLabel = cms.InputTag("simHcalUnsuppressedDigis") 00041 00042 process.local_digireco = cms.Path(process.mix * process.calDigi * process.calolocalreco * process.caloTowersRec) 00043 00044 process.schedule.append(process.local_digireco) 00045 00046 process.load("Validation/Configuration/hcalSimValid_cff") 00047 process.local_validation = cms.Path(process.hcalSimValid) 00048 process.schedule.append(process.local_validation) 00049 00050 process.schedule.append(process.endjob_step) 00051 process.schedule.append(process.out_step) 00052 00053 return(process) return(process)