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  splitModuleSum=cms.bool(False))
15 
16 L1TTriggerTowerConfig_energySplit = cms.PSet(readMappingFile=cms.bool(False),
17  doNose=cms.bool(False),
18  minEta=cms.double(1.305),
19  maxEta=cms.double(3.045),
20  minPhi=cms.double(-1*math.pi),
21  maxPhi=cms.double(math.pi),
22  nBinsEta=cms.int32(20),
23  nBinsPhi=cms.int32(72),
24  binsEta=cms.vdouble(),
25  binsPhi=cms.vdouble(),
26  splitModuleSum=cms.bool(True),
27  moduleTowerMapping=cms.FileInPath("L1Trigger/L1THGCal/data/tower_per_module_silic8_scint16.txt"))
28 
29 towerMap2D_parValues = cms.PSet( useLayerWeights = cms.bool(False),
30  layerWeights = cms.vdouble(),
31  AlgoName = cms.string('HGCalTowerMapsWrapper'),
32  L1TTriggerTowerConfig = L1TTriggerTowerConfig_etaphi
33 )
34 
35 tower_map = cms.PSet( ProcessorName = cms.string('HGCalTowerMapProcessor'),
36  towermap_parameters = towerMap2D_parValues.clone()
37  )
38 
39 l1tHGCalTowerMapProducer = cms.EDProducer(
40  "HGCalTowerMapProducer",
41  InputTriggerSums = cms.InputTag('l1tHGCalConcentratorProducer:HGCalConcentratorProcessorSelection'),
42  ProcessorParameters = tower_map.clone()
43  )
44 
45 L1TTriggerTowerConfigHFNose_etaphi = L1TTriggerTowerConfig_etaphi.clone(
46  doNose = True ,
47  minEta = 3.0 ,
48  maxEta = 4.2
49 )
50 
51 towerMap2DHFNose_parValues = towerMap2D_parValues.clone(
52  L1TTriggerTowerConfig = L1TTriggerTowerConfigHFNose_etaphi
53 )
54 
55 towerHFNose_map = cms.PSet( ProcessorName = cms.string('HGCalTowerMapProcessor'),
56  towermap_parameters = towerMap2DHFNose_parValues.clone()
57  )
58 
59 l1tHGCalTowerMapProducerHFNose = l1tHGCalTowerMapProducer.clone(
60  InputTriggerSums = cms.InputTag('l1tHGCalConcentratorProducerHFNose:HGCalConcentratorProcessorSelection'),
61  ProcessorParameters = towerHFNose_map.clone()
62 )