1 import FWCore.ParameterSet.Config
as cms
15 parameters_towers_2d = process.hgcalTowerMapProducer.ProcessorParameters.towermap_parameters
16 parameters_towers_2d.L1TTriggerTowerConfig.readMappingFile = cms.bool(
False)
17 parameters_towers_2d.L1TTriggerTowerConfig.minEta = cms.double(minEta)
18 parameters_towers_2d.L1TTriggerTowerConfig.maxEta = cms.double(maxEta)
19 parameters_towers_2d.L1TTriggerTowerConfig.minPhi = cms.double(minPhi)
20 parameters_towers_2d.L1TTriggerTowerConfig.maxPhi = cms.double(maxPhi)
21 parameters_towers_2d.L1TTriggerTowerConfig.nBinsEta = cms.int32(nBinsEta)
22 parameters_towers_2d.L1TTriggerTowerConfig.nBinsPhi = cms.int32(nBinsPhi)
23 parameters_towers_2d.L1TTriggerTowerConfig.binsEta = cms.vdouble(binsEta)
24 parameters_towers_2d.L1TTriggerTowerConfig.binsPhi = cms.vdouble(binsPhi)
29 towermapping=
'L1Trigger/L1THGCal/data/tower_mapping_hgcroc_eta-phi_v3.txt',
37 parameters_towers_2d = process.hgcalTowerMapProducer.ProcessorParameters.towermap_parameters
38 parameters_towers_2d.L1TTriggerTowerConfig.readMappingFile = cms.bool(
True)
39 parameters_towers_2d.L1TTriggerTowerConfig.L1TTriggerTowerMapping = cms.FileInPath(towermapping)
40 parameters_towers_2d.L1TTriggerTowerConfig.minEta = cms.double(minEta)
41 parameters_towers_2d.L1TTriggerTowerConfig.maxEta = cms.double(maxEta)
42 parameters_towers_2d.L1TTriggerTowerConfig.minPhi = cms.double(minPhi)
43 parameters_towers_2d.L1TTriggerTowerConfig.maxPhi = cms.double(maxPhi)
44 parameters_towers_2d.L1TTriggerTowerConfig.nBinsEta = cms.int32(nBinsEta)
45 parameters_towers_2d.L1TTriggerTowerConfig.nBinsPhi = cms.int32(nBinsPhi)
50 towermapping=
'L1Trigger/L1THGCal/data/tower_mapping_hgcroc_eta-phi_v3.txt',
70 towermapping=
'L1Trigger/L1THGCal/data/tower_mapping_wafer_eta-phi_v3.txt',
def custom_towers_etaphi(process, minEta=1.479, maxEta=3.0, minPhi=-math.pi, maxPhi=math.pi, nBinsEta=18, nBinsPhi=72, binsEta=[], binsPhi=[])
def custom_tower_map_wafer(process, towermapping='L1Trigger/L1THGCal/data/tower_mapping_wafer_eta-phi_v3.txt', minEta=1.479, maxEta=3.0, minPhi=-math.pi, maxPhi=math.pi, nBinsEta=18, nBinsPhi=72)
def custom_tower_map_hgcroc(process, towermapping='L1Trigger/L1THGCal/data/tower_mapping_hgcroc_eta-phi_v3.txt', minEta=1.479, maxEta=3.0, minPhi=-math.pi, maxPhi=math.pi, nBinsEta=18, nBinsPhi=72)
def custom_towers_map(process, towermapping='L1Trigger/L1THGCal/data/tower_mapping_hgcroc_eta-phi_v3.txt', minEta=1.479, maxEta=3.0, minPhi=-math.pi, maxPhi=math.pi, nBinsEta=18, nBinsPhi=72)