CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
hgcalTriggerPrimitives_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
10 
11 hgcalTriggerPrimitivesTask = cms.Task(hgcalVFE, hgcalConcentrator, hgcalBackEndLayer1, hgcalBackEndLayer2, hgcalTowerMap, hgcalTower)
12 hgcalTriggerPrimitives = cms.Sequence(hgcalTriggerPrimitivesTask)
13 
14 _hfnose_hgcalTriggerPrimitivesTask = hgcalTriggerPrimitivesTask.copy()
15 _hfnose_hgcalTriggerPrimitivesTask.add(hfnoseVFE, hgcalConcentratorHFNose, hgcalBackEndLayer1HFNose, hgcalBackEndLayer2HFNose, hgcalTowerMapHFNose, hgcalTowerHFNose)
16 
17 from Configuration.Eras.Modifier_phase2_hfnose_cff import phase2_hfnose
18 phase2_hfnose.toReplaceWith(
19  hgcalTriggerPrimitivesTask, _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_decentralized_V10, custom_geometry_decentralized_V11
24 from L1Trigger.L1THGCal.customCalibration import custom_cluster_calibration_global
25 modifyHgcalTriggerPrimitivesWithV10Geometry_ = (phase2_hgcalV10 & ~phase2_hgcalV11).makeProcessModifier(custom_geometry_decentralized_V10)
26 modifyHgcalTriggerPrimitivesWithV11Geometry_ = phase2_hgcalV11.makeProcessModifier(custom_geometry_decentralized_V11)
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.hgcalTriggerPrimitivesTask.add(process.simHGCalUnsuppressedDigis)
35 doFakeHGCalDigiAlias = convertHGCalDigisSim.makeProcessModifier(_fakeHGCalDigiAlias)