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_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)
 

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

References custom_tower_map_wafer(), and custom_towers_map().

Referenced by custom_towers_map().

57  ):
58  return custom_towers_map(process,
59  towermapping,
60  minEta,
61  maxEta,
62  minPhi,
63  maxPhi,
64  nBinsEta,
65  nBinsPhi
66  )
67 
68 
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:36
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 77 of file customTowers.py.

References custom_towers_map().

Referenced by custom_tower_map_hgcroc().

77  ):
78  return custom_towers_map(process,
79  towermapping,
80  minEta,
81  maxEta,
82  minPhi,
83  maxPhi,
84  nBinsEta,
85  nBinsPhi
86  )
87 
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:36
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 14 of file customTowers.py.

References custom_towers_map().

14  ):
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)
25  return process
26 
27 
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 36 of file customTowers.py.

References custom_tower_map_hgcroc().

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

36  ):
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)
46  return process
47 
48