CMS 3D CMS Logo

Functions
customTowers Namespace Reference

Functions

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_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_towers_all_tc (process)
 
def custom_towers_energySplit (process)
 
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_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)
 
def custom_towers_unclustered_tc (process)
 

Function Documentation

◆ custom_tower_map_hgcroc()

def customTowers.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 
)

Definition at line 73 of file customTowers.py.

References custom_tower_map_wafer(), and custom_towers_map().

Referenced by custom_towers_map().

73  ):
74  return custom_towers_map(process,
75  towermapping,
76  minEta,
77  maxEta,
78  minPhi,
79  maxPhi,
80  nBinsEta,
81  nBinsPhi
82  )
83 
84 
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)
Definition: customTowers.py:52

◆ custom_tower_map_wafer()

def customTowers.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 
)

Definition at line 93 of file customTowers.py.

References custom_towers_map().

Referenced by custom_tower_map_hgcroc().

93  ):
94  return custom_towers_map(process,
95  towermapping,
96  minEta,
97  maxEta,
98  minPhi,
99  maxPhi,
100  nBinsEta,
101  nBinsPhi
102  )
103 
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)
Definition: customTowers.py:52

◆ custom_towers_all_tc()

def customTowers.custom_towers_all_tc (   process)

Definition at line 11 of file customTowers.py.

References custom_towers_etaphi().

11 def custom_towers_all_tc(process):
12  process.l1tHGCalTowerProducer.InputTriggerCells = cms.InputTag('l1tHGCalBackEndLayer1Producer:HGCalBackendLayer1Processor2DClustering')
13  process.l1tHGCalTowerProducerHFNose.InputTriggerCells = cms.InputTag('l1tHGCalBackEndLayer1ProducerHFNose:HGCalBackendLayer1Processor2DClustering')
14  return process
15 
16 
def custom_towers_all_tc(process)
Definition: customTowers.py:11

◆ custom_towers_energySplit()

def customTowers.custom_towers_energySplit (   process)

Definition at line 39 of file customTowers.py.

References custom_towers_map().

39 def custom_towers_energySplit(process):
40  parameters_towers_2d = L1TTriggerTowerConfig_energySplit.clone()
41  process.hgcalTowerMapProducer.ProcessorParameters.towermap_parameters.L1TTriggerTowerConfig = parameters_towers_2d
42  return process
43 
def custom_towers_energySplit(process)
Definition: customTowers.py:39

◆ custom_towers_etaphi()

def customTowers.custom_towers_etaphi (   process,
  minEta = 1.479,
  maxEta = 3.0,
  minPhi = -math.pi,
  maxPhi = math.pi,
  nBinsEta = 18,
  nBinsPhi = 72,
  binsEta = [],
  binsPhi = [] 
)

Definition at line 26 of file customTowers.py.

Referenced by custom_towers_all_tc().

26  ):
27  parameters_towers_2d = process.l1tHGCalTowerMapProducer.ProcessorParameters.towermap_parameters
28  parameters_towers_2d.L1TTriggerTowerConfig.readMappingFile = cms.bool(False)
29  parameters_towers_2d.L1TTriggerTowerConfig.minEta = cms.double(minEta)
30  parameters_towers_2d.L1TTriggerTowerConfig.maxEta = cms.double(maxEta)
31  parameters_towers_2d.L1TTriggerTowerConfig.minPhi = cms.double(minPhi)
32  parameters_towers_2d.L1TTriggerTowerConfig.maxPhi = cms.double(maxPhi)
33  parameters_towers_2d.L1TTriggerTowerConfig.nBinsEta = cms.int32(nBinsEta)
34  parameters_towers_2d.L1TTriggerTowerConfig.nBinsPhi = cms.int32(nBinsPhi)
35  parameters_towers_2d.L1TTriggerTowerConfig.binsEta = cms.vdouble(binsEta)
36  parameters_towers_2d.L1TTriggerTowerConfig.binsPhi = cms.vdouble(binsPhi)
37  return process
38 

◆ custom_towers_map()

def customTowers.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 
)

Definition at line 52 of file customTowers.py.

References custom_tower_map_hgcroc().

Referenced by custom_tower_map_hgcroc(), custom_tower_map_wafer(), and custom_towers_energySplit().

52  ):
53  parameters_towers_2d = process.l1tHGCalTowerMapProducer.ProcessorParameters.towermap_parameters
54  parameters_towers_2d.L1TTriggerTowerConfig.readMappingFile = cms.bool(True)
55  parameters_towers_2d.L1TTriggerTowerConfig.L1TTriggerTowerMapping = cms.FileInPath(towermapping)
56  parameters_towers_2d.L1TTriggerTowerConfig.minEta = cms.double(minEta)
57  parameters_towers_2d.L1TTriggerTowerConfig.maxEta = cms.double(maxEta)
58  parameters_towers_2d.L1TTriggerTowerConfig.minPhi = cms.double(minPhi)
59  parameters_towers_2d.L1TTriggerTowerConfig.maxPhi = cms.double(maxPhi)
60  parameters_towers_2d.L1TTriggerTowerConfig.nBinsEta = cms.int32(nBinsEta)
61  parameters_towers_2d.L1TTriggerTowerConfig.nBinsPhi = cms.int32(nBinsPhi)
62  return process
63 
64 

◆ custom_towers_unclustered_tc()

def customTowers.custom_towers_unclustered_tc (   process)

Definition at line 5 of file customTowers.py.

6  process.l1tHGCalTowerProducer.InputTriggerCells = cms.InputTag('l1tHGCalBackEndLayer2Producer:HGCalBackendLayer2Processor3DClusteringUnclustered')
7  process.l1tHGCalTowerProducerHFNose.InputTriggerCells = cms.InputTag('l1tHGCalBackEndLayer2ProducerHFNose:HGCalBackendLayer2Processor3DClusteringUnclustered')
8  return process
9 
10 
def custom_towers_unclustered_tc(process)
Definition: customTowers.py:5