CMS 3D CMS Logo

l1tHGCalTowerMapProducer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import math
3 
4 L1TTriggerTowerConfig_etaphi = cms.PSet(readMappingFile=cms.bool(False),
5  doNose=cms.bool(False),
6  minEta=cms.double(1.479),
7  maxEta=cms.double(3.0),
8  minPhi=cms.double(-1*math.pi),
9  maxPhi=cms.double(math.pi),
10  nBinsEta=cms.int32(18),
11  nBinsPhi=cms.int32(72),
12  binsEta=cms.vdouble(),
13  binsPhi=cms.vdouble())
14 
15 towerMap2D_parValues = cms.PSet( useLayerWeights = cms.bool(False),
16  layerWeights = cms.vdouble(),
17  AlgoName = cms.string('HGCalTowerMapsWrapper'),
18  L1TTriggerTowerConfig = L1TTriggerTowerConfig_etaphi
19 )
20 
21 tower_map = cms.PSet( ProcessorName = cms.string('HGCalTowerMapProcessor'),
22  towermap_parameters = towerMap2D_parValues.clone()
23  )
24 
25 l1tHGCalTowerMapProducer = cms.EDProducer(
26  "HGCalTowerMapProducer",
27  InputTriggerSums = cms.InputTag('l1tHGCalConcentratorProducer:HGCalConcentratorProcessorSelection'),
28  ProcessorParameters = tower_map.clone()
29  )
30 
31 L1TTriggerTowerConfigHFNose_etaphi = L1TTriggerTowerConfig_etaphi.clone(
32  doNose = True ,
33  minEta = 3.0 ,
34  maxEta = 4.2
35 )
36 
37 towerMap2DHFNose_parValues = towerMap2D_parValues.clone(
38  L1TTriggerTowerConfig = L1TTriggerTowerConfigHFNose_etaphi
39 )
40 
41 towerHFNose_map = cms.PSet( ProcessorName = cms.string('HGCalTowerMapProcessor'),
42  towermap_parameters = towerMap2DHFNose_parValues.clone()
43  )
44 
45 l1tHGCalTowerMapProducerHFNose = l1tHGCalTowerMapProducer.clone(
46  InputTriggerSums = cms.InputTag('l1tHGCalConcentratorProducerHFNose:HGCalConcentratorProcessorSelection'),
47  ProcessorParameters = towerHFNose_map.clone()
48 )