1 from __future__
import absolute_import
2 import FWCore.ParameterSet.Config
as cms
7 from .
import hgcalLayersCalibrationCoefficients_cfi
as layercalibparam
9 from Configuration.Eras.Modifier_phase2_hgcalV10_cff
import phase2_hgcalV10
11 c2d_calib_pset = cms.PSet(calibSF_cluster=cms.double(1.),
12 layerWeights=layercalibparam.TrgLayer_weights,
13 applyLayerCalibration=cms.bool(
True))
15 c2d_thresholds_pset = cms.PSet(seeding_threshold_silicon=cms.double(5.),
16 seeding_threshold_scintillator=cms.double(5.),
17 clustering_threshold_silicon=cms.double(2.),
18 clustering_threshold_scintillator=cms.double(2.))
24 phase2_hgcalV10.toModify(c2d_thresholds_pset,
25 seeding_threshold_silicon=3.75,
26 seeding_threshold_scintillator=3.75,
27 clustering_threshold_silicon=1.5,
28 clustering_threshold_scintillator=1.5,
33 phase2_hgcalV10.toModify(c2d_calib_pset,
34 applyLayerCalibration=
False 38 dummy_C2d_params = cms.PSet(c2d_calib_pset,
39 clusterType=cms.string(
'dummyC2d')
43 distance_C2d_params = cms.PSet(c2d_calib_pset,
45 clusterType=cms.string(
'dRC2d'),
46 dR_cluster=cms.double(6.),
49 topological_C2d_params = cms.PSet(c2d_calib_pset,
51 clusterType=cms.string(
'NNC2d'),
54 constrTopological_C2d_params = cms.PSet(c2d_calib_pset,
56 clusterType=cms.string(
'dRNNC2d'),
57 dR_cluster=cms.double(6.),
60 ntcs_72links = [ 1, 4, 13, 13, 10, 10, 8, 8, 8, 7, 7, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 2, 2, 2, 2, 2, 2, 2, 2, 1]
61 ntcs_120links = [ 2, 7, 27, 24, 19, 17, 16, 15, 14, 14, 13, 13, 13, 12, 12, 12, 11, 11, 11, 10, 10, 10, 10, 10, 9, 9, 10, 9, 9, 9, 8, 8, 7, 5, 3, 3, 3, 3, 3, 3, 3, 3]
63 phi_edges = [0.98901991,0.72722052,0.6981317,0.87266463,0.93084227,0.90175345,
64 0.87266463,0.90175345,0.95993109,0.95993109,0.93084227,0.93084227,
65 0.95993109,0.98901991,0.95993109,0.95993109,0.95993109,0.98901991,
66 0.98901991,0.95993109,0.95993109,0.98901991,0.98901991,0.98901991,
67 0.98901991,0.98901991,1.01810873,0.98901991,0.98901991,0.98901991,
68 0.98901991,0.98901991,0.98901991,0.98901991,1.04719755,1.04719755,
69 1.04719755,1.04719755,1.01810873,1.04719755,1.01810873,1.01810873]
71 truncation_params = cms.PSet(rozMin=cms.double(0.07587128),
72 rozMax=cms.double(0.55508006),
73 rozBins=cms.uint32(42),
74 maxTcsPerBin=cms.vuint32(ntcs_120links),
75 phiSectorEdges=cms.vdouble(phi_edges),
76 doTruncation=cms.bool(
True)
79 truncation_paramsSA = cms.PSet(AlgoName=cms.string(
'HGCalStage1TruncationWrapper'),
80 rozMin=cms.double(0.07587128),
81 rozMax=cms.double(0.55508006),
82 rozBins=cms.uint32(42),
83 maxTcsPerBin=cms.vuint32(ntcs_120links),
84 phiSectorEdges=cms.vdouble(phi_edges),
85 doTruncation=cms.bool(
True)
89 layer1truncation_proc = cms.PSet(ProcessorName = cms.string(
'HGCalBackendLayer1Processor'),
90 C2d_parameters = dummy_C2d_params.clone(),
91 truncation_parameters = truncation_params.clone()
93 stage1truncation_proc = cms.PSet(ProcessorName = cms.string(
'HGCalBackendStage1Processor'),
94 truncation_parameters = truncation_paramsSA.clone()
97 be_proc = cms.PSet(ProcessorName = cms.string(
'HGCalBackendLayer1Processor2DClustering'),
98 C2d_parameters = dummy_C2d_params.clone()
101 l1tHGCalBackEndLayer1Producer = cms.EDProducer(
102 "HGCalBackendLayer1Producer",
103 InputTriggerCells = cms.InputTag(
'l1tHGCalConcentratorProducer:HGCalConcentratorProcessorSelection'),
104 ProcessorParameters = be_proc.clone()
107 l1tHGCalBackEndStage1Producer = cms.EDProducer(
108 "HGCalBackendStage1Producer",
109 InputTriggerCells = cms.InputTag(
'l1tHGCalConcentratorProducer:HGCalConcentratorProcessorSelection'),
110 C2d_parameters = dummy_C2d_params.clone(),
111 ProcessorParameters = stage1truncation_proc.clone()
114 l1tHGCalBackEndLayer1ProducerHFNose = l1tHGCalBackEndLayer1Producer.clone(
115 InputTriggerCells =
'l1tHGCalConcentratorProducerHFNose:HGCalConcentratorProcessorSelection'