Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:20:41

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from L1Trigger.L1THGCal.l1tHGCalTriggerGeometryESProducer_cfi import *
0004 from L1Trigger.L1THGCal.hgcalVFE_cff import *
0005 from L1Trigger.L1THGCal.hgcalConcentrator_cff import *
0006 from L1Trigger.L1THGCal.hgcalBackEndLayer1_cff import *
0007 from L1Trigger.L1THGCal.hgcalBackEndLayer2_cff import *
0008 from L1Trigger.L1THGCal.hgcalTowerMap_cff import *
0009 from L1Trigger.L1THGCal.hgcalTower_cff import *
0010 
0011 L1THGCalTriggerPrimitivesTask = cms.Task(L1THGCalVFE, L1THGCalConcentrator, L1THGCalBackEndLayer1, L1THGCalBackEndLayer2, L1THGCalTowerMap, L1THGCalTower)
0012 L1THGCalTriggerPrimitives = cms.Sequence(L1THGCalTriggerPrimitivesTask)
0013 
0014 _hfnose_hgcalTriggerPrimitivesTask = L1THGCalTriggerPrimitivesTask.copy()
0015 _hfnose_hgcalTriggerPrimitivesTask.add(L1THFnoseVFE, L1THGCalConcentratorHFNose, L1THGCalBackEndLayer1HFNose, L1THGCalBackEndLayer2HFNose, L1THGCalTowerMapHFNose, L1THGCalTowerHFNose)
0016 
0017 from Configuration.Eras.Modifier_phase2_hfnose_cff import phase2_hfnose
0018 phase2_hfnose.toReplaceWith(
0019         L1THGCalTriggerPrimitivesTask, _hfnose_hgcalTriggerPrimitivesTask )
0020 
0021 from Configuration.Eras.Modifier_phase2_hgcalV10_cff import phase2_hgcalV10
0022 from Configuration.Eras.Modifier_phase2_hgcalV11_cff import phase2_hgcalV11
0023 from L1Trigger.L1THGCal.customTriggerGeometry import custom_geometry_V10, custom_geometry_V11_Imp3
0024 from L1Trigger.L1THGCal.customCalibration import  custom_cluster_calibration_global
0025 modifyHgcalTriggerPrimitivesWithV10Geometry_ = (phase2_hgcalV10 & ~phase2_hgcalV11).makeProcessModifier(custom_geometry_V10)
0026 modifyHgcalTriggerPrimitivesWithV11Geometry_ = phase2_hgcalV11.makeProcessModifier(custom_geometry_V11_Imp3)
0027 
0028 from Configuration.ProcessModifiers.convertHGCalDigisSim_cff import convertHGCalDigisSim
0029 # can't declare a producer version of simHGCalUnsuppressedDigis in the normal flow of things,
0030 # because it's already an EDAlias elsewhere
0031 def _fakeHGCalDigiAlias(process):
0032     from EventFilter.HGCalRawToDigi.HGCDigiConverter_cfi import HGCDigiConverter as _HGCDigiConverter
0033     process.simHGCalUnsuppressedDigis = _HGCDigiConverter.clone()
0034     process.L1THGCalTriggerPrimitivesTask.add(process.simHGCalUnsuppressedDigis)
0035 doFakeHGCalDigiAlias = convertHGCalDigisSim.makeProcessModifier(_fakeHGCalDigiAlias)