CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
customTowers Namespace Reference

Functions

def custom_tower_map_hgcroc
 
def custom_tower_map_wafer
 
def custom_towers_all_tc
 
def custom_towers_etaphi
 
def custom_towers_map
 
def custom_towers_unclustered_tc
 

Function Documentation

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

References custom_tower_map_wafer(), and custom_towers_map().

Referenced by custom_towers_map().

68 
69  ):
70  return custom_towers_map(process,
71  towermapping,
72  minEta,
73  maxEta,
74  minPhi,
75  maxPhi,
76  nBinsEta,
77  nBinsPhi
78  )
79 
def custom_towers_map
Definition: customTowers.py:47
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 88 of file customTowers.py.

References custom_towers_map().

Referenced by custom_tower_map_hgcroc().

88 
89  ):
90  return custom_towers_map(process,
91  towermapping,
92  minEta,
93  maxEta,
94  minPhi,
95  maxPhi,
96  nBinsEta,
97  nBinsPhi
98  )
def custom_towers_map
Definition: customTowers.py:47
def customTowers.custom_towers_all_tc (   process)

Definition at line 10 of file customTowers.py.

References custom_towers_etaphi().

10 
11 def custom_towers_all_tc(process):
12  process.hgcalTowerProducer.InputTriggerCells = cms.InputTag('hgcalBackEndLayer1Producer:HGCalBackendLayer1Processor2DClustering')
13  process.hgcalTowerProducerHFNose.InputTriggerCells = cms.InputTag('hgcalBackEndLayer1ProducerHFNose:HGCalBackendLayer1Processor2DClustering')
14  return process
15 
def custom_towers_all_tc
Definition: customTowers.py:10
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 25 of file customTowers.py.

References custom_towers_map().

Referenced by custom_towers_all_tc().

25 
26  ):
27  parameters_towers_2d = process.hgcalTowerMapProducer.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 
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 47 of file customTowers.py.

References custom_tower_map_hgcroc().

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

47 
48  ):
49  parameters_towers_2d = process.hgcalTowerMapProducer.ProcessorParameters.towermap_parameters
50  parameters_towers_2d.L1TTriggerTowerConfig.readMappingFile = cms.bool(True)
51  parameters_towers_2d.L1TTriggerTowerConfig.L1TTriggerTowerMapping = cms.FileInPath(towermapping)
52  parameters_towers_2d.L1TTriggerTowerConfig.minEta = cms.double(minEta)
53  parameters_towers_2d.L1TTriggerTowerConfig.maxEta = cms.double(maxEta)
54  parameters_towers_2d.L1TTriggerTowerConfig.minPhi = cms.double(minPhi)
55  parameters_towers_2d.L1TTriggerTowerConfig.maxPhi = cms.double(maxPhi)
56  parameters_towers_2d.L1TTriggerTowerConfig.nBinsEta = cms.int32(nBinsEta)
57  parameters_towers_2d.L1TTriggerTowerConfig.nBinsPhi = cms.int32(nBinsPhi)
58  return process
59 
def customTowers.custom_towers_unclustered_tc (   process)

Definition at line 4 of file customTowers.py.

4 
6  process.hgcalTowerProducer.InputTriggerCells = cms.InputTag('hgcalBackEndLayer2Producer:HGCalBackendLayer2Processor3DClusteringUnclustered')
7  process.hgcalTowerProducerHFNose.InputTriggerCells = cms.InputTag('hgcalBackEndLayer2ProducerHFNose:HGCalBackendLayer2Processor3DClusteringUnclustered')
8  return process
9 
def custom_towers_unclustered_tc
Definition: customTowers.py:4