CMS 3D CMS Logo

hgcalTriggerPrimitivesNew_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
10 
11 L1THGCalTriggerPrimitivesTask = cms.Task(L1THGCalVFE, L1THGCalConcentrator, L1THGCalBackEndStage1, L1THGCalBackEndStage2, L1THGCalTowerMap, L1THGCalTower)
12 L1THGCalTriggerPrimitives = cms.Sequence(L1THGCalTriggerPrimitivesTask)
13 
14 _hfnose_hgcalTriggerPrimitivesTask = L1THGCalTriggerPrimitivesTask.copy()
15 _hfnose_hgcalTriggerPrimitivesTask.add(L1THFnoseVFE, L1THGCalConcentratorHFNose, L1THGCalBackEndLayer1HFNose, L1THGCalBackEndLayer2HFNose, L1THGCalTowerMapHFNose, L1THGCalTowerHFNose)
16 
17 from Configuration.Eras.Modifier_phase2_hfnose_cff import phase2_hfnose
18 phase2_hfnose.toReplaceWith(
19  L1THGCalTriggerPrimitivesTask, _hfnose_hgcalTriggerPrimitivesTask )
20 
21 from Configuration.Eras.Modifier_phase2_hgcalV10_cff import phase2_hgcalV10
22 from Configuration.Eras.Modifier_phase2_hgcalV11_cff import phase2_hgcalV11
23 from L1Trigger.L1THGCal.customTriggerGeometry import custom_geometry_V10, custom_geometry_V11_Imp3
24 from L1Trigger.L1THGCal.customCalibration import custom_cluster_calibration_global
25 modifyHgcalTriggerPrimitivesWithV10Geometry_ = (phase2_hgcalV10 & ~phase2_hgcalV11).makeProcessModifier(custom_geometry_V10)
26 modifyHgcalTriggerPrimitivesWithV11Geometry_ = phase2_hgcalV11.makeProcessModifier(custom_geometry_V11_Imp3)
27 
28 from Configuration.ProcessModifiers.convertHGCalDigisSim_cff import convertHGCalDigisSim
29 # can't declare a producer version of simHGCalUnsuppressedDigis in the normal flow of things,
30 # because it's already an EDAlias elsewhere
31 def _fakeHGCalDigiAlias(process):
32  from EventFilter.HGCalRawToDigi.HGCDigiConverter_cfi import HGCDigiConverter as _HGCDigiConverter
33  process.simHGCalUnsuppressedDigis = _HGCDigiConverter.clone()
34  process.L1THGCalTriggerPrimitivesTask.add(process.simHGCalUnsuppressedDigis)
35 doFakeHGCalDigiAlias = convertHGCalDigisSim.makeProcessModifier(_fakeHGCalDigiAlias)