Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-02-18 08:23:37

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from L1Trigger.L1THGCal.hgcalTriggerGeometryESProducer_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 hgcalTriggerPrimitivesTask = cms.Task(hgcalVFE, hgcalConcentrator, hgcalBackEndLayer1, hgcalBackEndLayer2, hgcalTowerMap, hgcalTower)
0012 hgcalTriggerPrimitives = cms.Sequence(hgcalTriggerPrimitivesTask)
0013 
0014 _hfnose_hgcalTriggerPrimitivesTask = hgcalTriggerPrimitivesTask.copy()
0015 _hfnose_hgcalTriggerPrimitivesTask.add(hfnoseVFE, hgcalConcentratorHFNose, hgcalBackEndLayer1HFNose, hgcalBackEndLayer2HFNose, hgcalTowerMapHFNose, hgcalTowerHFNose)
0016 
0017 from Configuration.Eras.Modifier_phase2_hfnose_cff import phase2_hfnose
0018 phase2_hfnose.toReplaceWith(
0019         hgcalTriggerPrimitivesTask, _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.hgcalTriggerPrimitivesTask.add(process.simHGCalUnsuppressedDigis)
0035 doFakeHGCalDigiAlias = convertHGCalDigisSim.makeProcessModifier(_fakeHGCalDigiAlias)