CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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  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  L1TTriggerTowerConfig = L1TTriggerTowerConfig_etaphi
18 )
19 
20 tower_map = cms.PSet( ProcessorName = cms.string('HGCalTowerMapProcessor'),
21  towermap_parameters = towerMap2D_parValues.clone()
22  )
23 
24 hgcalTowerMapProducer = cms.EDProducer(
25  "HGCalTowerMapProducer",
26  InputTriggerSums = cms.InputTag('hgcalConcentratorProducer:HGCalConcentratorProcessorSelection'),
27  ProcessorParameters = tower_map.clone()
28  )
29 
30 L1TTriggerTowerConfigHFNose_etaphi = L1TTriggerTowerConfig_etaphi.clone(
31  doNose = True ,
32  minEta = 3.0 ,
33  maxEta = 4.2
34 )
35 
36 towerMap2DHFNose_parValues = towerMap2D_parValues.clone(
37  L1TTriggerTowerConfig = L1TTriggerTowerConfigHFNose_etaphi
38 )
39 
40 towerHFNose_map = cms.PSet( ProcessorName = cms.string('HGCalTowerMapProcessor'),
41  towermap_parameters = towerMap2DHFNose_parValues.clone()
42  )
43 
44 hgcalTowerMapProducerHFNose = hgcalTowerMapProducer.clone(
45  InputTriggerSums = cms.InputTag('hgcalConcentratorProducerHFNose:HGCalConcentratorProcessorSelection'),
46  ProcessorParameters = towerHFNose_map.clone()
47 )