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_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 60 of file customTowers.py.

60 def custom_tower_map_hgcroc(process,
61  towermapping='L1Trigger/L1THGCal/data/tower_mapping_hgcroc_eta-phi_v3.txt',
62  minEta=1.479,
63  maxEta=3.0,
64  minPhi=-math.pi,
65  maxPhi=math.pi,
66  nBinsEta=18,
67  nBinsPhi=72
68  ):
69  return custom_towers_map(process,
70  towermapping,
71  minEta,
72  maxEta,
73  minPhi,
74  maxPhi,
75  nBinsEta,
76  nBinsPhi
77  )
78 
79 

References custom_towers_map().

◆ 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 80 of file customTowers.py.

80 def custom_tower_map_wafer(process,
81  towermapping='L1Trigger/L1THGCal/data/tower_mapping_wafer_eta-phi_v3.txt',
82  minEta=1.479,
83  maxEta=3.0,
84  minPhi=-math.pi,
85  maxPhi=math.pi,
86  nBinsEta=18,
87  nBinsPhi=72
88  ):
89  return custom_towers_map(process,
90  towermapping,
91  minEta,
92  maxEta,
93  minPhi,
94  maxPhi,
95  nBinsEta,
96  nBinsPhi
97  )

References custom_towers_map().

◆ custom_towers_all_tc()

def customTowers.custom_towers_all_tc (   process)

Definition at line 10 of file customTowers.py.

10 def custom_towers_all_tc(process):
11  process.hgcalTowerProducer.InputTriggerCells = cms.InputTag('hgcalBackEndLayer1Producer:HGCalBackendLayer1Processor2DClustering')
12  process.hgcalTowerProducerHFNose.InputTriggerCells = cms.InputTag('hgcalBackEndLayer1ProducerHFNose:HGCalBackendLayer1Processor2DClustering')
13  return process
14 
15 

◆ 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 16 of file customTowers.py.

16 def custom_towers_etaphi(process,
17  minEta=1.479,
18  maxEta=3.0,
19  minPhi=-math.pi,
20  maxPhi=math.pi,
21  nBinsEta=18,
22  nBinsPhi=72,
23  binsEta=[],
24  binsPhi=[]
25  ):
26  parameters_towers_2d = process.hgcalTowerMapProducer.ProcessorParameters.towermap_parameters
27  parameters_towers_2d.L1TTriggerTowerConfig.readMappingFile = cms.bool(False)
28  parameters_towers_2d.L1TTriggerTowerConfig.minEta = cms.double(minEta)
29  parameters_towers_2d.L1TTriggerTowerConfig.maxEta = cms.double(maxEta)
30  parameters_towers_2d.L1TTriggerTowerConfig.minPhi = cms.double(minPhi)
31  parameters_towers_2d.L1TTriggerTowerConfig.maxPhi = cms.double(maxPhi)
32  parameters_towers_2d.L1TTriggerTowerConfig.nBinsEta = cms.int32(nBinsEta)
33  parameters_towers_2d.L1TTriggerTowerConfig.nBinsPhi = cms.int32(nBinsPhi)
34  parameters_towers_2d.L1TTriggerTowerConfig.binsEta = cms.vdouble(binsEta)
35  parameters_towers_2d.L1TTriggerTowerConfig.binsPhi = cms.vdouble(binsPhi)
36  return process
37 
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 39 of file customTowers.py.

39 def custom_towers_map(process,
40  towermapping='L1Trigger/L1THGCal/data/tower_mapping_hgcroc_eta-phi_v3.txt',
41  minEta=1.479,
42  maxEta=3.0,
43  minPhi=-math.pi,
44  maxPhi=math.pi,
45  nBinsEta=18,
46  nBinsPhi=72
47  ):
48  parameters_towers_2d = process.hgcalTowerMapProducer.ProcessorParameters.towermap_parameters
49  parameters_towers_2d.L1TTriggerTowerConfig.readMappingFile = cms.bool(True)
50  parameters_towers_2d.L1TTriggerTowerConfig.L1TTriggerTowerMapping = cms.FileInPath(towermapping)
51  parameters_towers_2d.L1TTriggerTowerConfig.minEta = cms.double(minEta)
52  parameters_towers_2d.L1TTriggerTowerConfig.maxEta = cms.double(maxEta)
53  parameters_towers_2d.L1TTriggerTowerConfig.minPhi = cms.double(minPhi)
54  parameters_towers_2d.L1TTriggerTowerConfig.maxPhi = cms.double(maxPhi)
55  parameters_towers_2d.L1TTriggerTowerConfig.nBinsEta = cms.int32(nBinsEta)
56  parameters_towers_2d.L1TTriggerTowerConfig.nBinsPhi = cms.int32(nBinsPhi)
57  return process
58 
59 

Referenced by custom_tower_map_hgcroc(), and custom_tower_map_wafer().

◆ custom_towers_unclustered_tc()

def customTowers.custom_towers_unclustered_tc (   process)

Definition at line 4 of file customTowers.py.

5  process.hgcalTowerProducer.InputTriggerCells = cms.InputTag('hgcalBackEndLayer2Producer:HGCalBackendLayer2Processor3DClusteringUnclustered')
6  process.hgcalTowerProducerHFNose.InputTriggerCells = cms.InputTag('hgcalBackEndLayer2ProducerHFNose:HGCalBackendLayer2Processor3DClusteringUnclustered')
7  return process
8 
9 
customTowers.custom_towers_all_tc
def custom_towers_all_tc(process)
Definition: customTowers.py:10
customTowers.custom_towers_unclustered_tc
def custom_towers_unclustered_tc(process)
Definition: customTowers.py:4
customTowers.custom_tower_map_wafer
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)
Definition: customTowers.py:80
customTowers.custom_tower_map_hgcroc
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)
Definition: customTowers.py:60
customTowers.custom_towers_map
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:39
customTowers.custom_towers_etaphi
def custom_towers_etaphi(process, minEta=1.479, maxEta=3.0, minPhi=-math.pi, maxPhi=math.pi, nBinsEta=18, nBinsPhi=72, binsEta=[], binsPhi=[])
Definition: customTowers.py:16