CMS 3D CMS Logo

hgcalTowerMapProducer_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  minEta=cms.double(1.479),
6  maxEta=cms.double(3.0),
7  minPhi=cms.double(-1*math.pi),
8  maxPhi=cms.double(math.pi),
9  nBinsEta=cms.int32(18),
10  nBinsPhi=cms.int32(72),
11  binsEta=cms.vdouble(),
12  binsPhi=cms.vdouble())
13 
14 towerMap2D_parValues = cms.PSet( #nEtaBins = cms.int32(18),
15  #nPhiBins = cms.int32(72),
16  #etaBins = cms.vdouble(),
17  #phiBins = cms.vdouble(),
18  useLayerWeights = cms.bool(False),
19  layerWeights = cms.vdouble(),
20  L1TTriggerTowerConfig = L1TTriggerTowerConfig_etaphi
21 )
22 
23 tower_map = cms.PSet( ProcessorName = cms.string('HGCalTowerMapProcessor'),
24  towermap_parameters = towerMap2D_parValues.clone()
25  )
26 
27 hgcalTowerMapProducer = cms.EDProducer(
28  "HGCalTowerMapProducer",
29  InputTriggerCells = cms.InputTag('hgcalVFEProducer:HGCalVFEProcessorSums'),
30  ProcessorParameters = tower_map.clone()
31  )