CMS 3D CMS Logo

concentrator.py
Go to the documentation of this file.
1 
2 import FWCore.ParameterSet.Config as cms
4 from L1Trigger.L1THGCal.hgcalConcentratorProducer_cfi import threshold_conc_proc, best_conc_proc, supertc_conc_proc, coarsetc_onebitfraction_proc, custom_conc_proc, autoEncoder_conc_proc
5 
6 
8  def __init__(self,
9  stcSize=supertc_conc_proc.stcSize,
10  type_energy_division=supertc_conc_proc.type_energy_division,
11  fixedDataSizePerHGCROC=supertc_conc_proc.fixedDataSizePerHGCROC,
12  coarsenTriggerCells=supertc_conc_proc.coarsenTriggerCells,
13  ctcSize=supertc_conc_proc.ctcSize,
14  ):
15  self.processor = supertc_conc_proc.clone(
16  stcSize = stcSize,
17  type_energy_division = type_energy_division,
18  fixedDataSizePerHGCROC = fixedDataSizePerHGCROC,
19  coarsenTriggerCells = coarsenTriggerCells,
20  ctcSize = ctcSize,
21  )
22 
23  def __call__(self, process, inputs):
24  producer = process.hgcalConcentratorProducer.clone(
25  InputTriggerCells = cms.InputTag(inputs),
26  InputTriggerSums = cms.InputTag(inputs),
27  ProcessorParameters = self.processor
28  )
29  return producer
30 
31 
33  def __init__(self,
34  threshold_silicon=threshold_conc_proc.threshold_silicon, # in mipT
35  threshold_scintillator=threshold_conc_proc.threshold_scintillator # in mipT
36  ):
37  self.processor = threshold_conc_proc.clone(
38  threshold_silicon = threshold_silicon, # MipT
39  threshold_scintillator = threshold_scintillator # MipT
40  )
41 
42  def __call__(self, process, inputs):
43  producer = process.hgcalConcentratorProducer.clone(
44  InputTriggerCells = cms.InputTag(inputs),
45  InputTriggerSums = cms.InputTag(inputs),
46  ProcessorParameters = self.processor
47  )
48  return producer
49 
50 
52  def __init__(self,
53  triggercells=best_conc_proc.NData,
54  coarsenTriggerCells=best_conc_proc.coarsenTriggerCells,
55  ctcSize=best_conc_proc.ctcSize,
56  ):
57  self.processor = best_conc_proc.clone(
58  NData = triggercells,
59  coarsenTriggerCells = coarsenTriggerCells,
60  ctcSize=ctcSize,
61  )
62 
63  def __call__(self, process, inputs):
64  producer = process.hgcalConcentratorProducer.clone(
65  InputTriggerCells = cms.InputTag(inputs),
66  InputTriggerSums = cms.InputTag(inputs),
67  ProcessorParameters = self.processor
68  )
69  return producer
70 
71 
73  def __init__(self,
74  cellRemap = autoEncoder_conc_proc.cellRemap,
75  cellRemapNoDuplicates = autoEncoder_conc_proc.cellRemapNoDuplicates,
76  nBitsPerInput = autoEncoder_conc_proc.nBitsPerInput,
77  maxBitsPerOutput = autoEncoder_conc_proc.maxBitsPerOutput,
78  bitsPerLink = autoEncoder_conc_proc.bitsPerLink,
79  modelFiles = autoEncoder_conc_proc.modelFiles,
80  linkToGraphMap = autoEncoder_conc_proc.linkToGraphMap,
81  encoderShape = autoEncoder_conc_proc.encoderShape,
82  decoderShape = autoEncoder_conc_proc.decoderShape,
83  zeroSuppresionThreshold = autoEncoder_conc_proc.zeroSuppresionThreshold,
84  saveEncodedValues = autoEncoder_conc_proc.saveEncodedValues,
85  preserveModuleSum = autoEncoder_conc_proc.preserveModuleSum,
86  scintillatorMethod = 'thresholdSelect',
87  ):
88  self.processor = autoEncoder_conc_proc.clone(
89  cellRemap = cellRemap,
90  cellRemapNoDuplicates = cellRemapNoDuplicates,
91  nBitsPerInput = nBitsPerInput,
92  maxBitsPerOutput = maxBitsPerOutput,
93  bitsPerLink = bitsPerLink,
94  modelFiles = modelFiles,
95  linkToGraphMap = linkToGraphMap,
96  encoderShape = encoderShape,
97  decoderShape = decoderShape,
98  zeroSuppresionThreshold = zeroSuppresionThreshold,
99  saveEncodedValues = saveEncodedValues,
100  preserveModuleSum = preserveModuleSum,
101  Method = cms.vstring(['autoEncoder','autoEncoder', scintillatorMethod]),
102  )
103 
104  def __call__(self, process, inputs):
105  producer = process.hgcalConcentratorProducer.clone(
106  InputTriggerCells = cms.InputTag(inputs),
107  InputTriggerSums = cms.InputTag(inputs),
108  ProcessorParameters = self.processor
109  )
110  return producer
111 
112 
114  def __init__(self,
115  stcSize=coarsetc_onebitfraction_proc.stcSize,
116  fixedDataSizePerHGCROC=coarsetc_onebitfraction_proc.fixedDataSizePerHGCROC
117  ):
118  self.processor = coarsetc_onebitfraction_proc.clone(
119  stcSize = stcSize,
120  fixedDataSizePerHGCROC = fixedDataSizePerHGCROC
121  )
122 
123  def __call__(self, process, inputs):
124  producer = process.hgcalConcentratorProducer.clone(
125  InputTriggerCells = cms.InputTag(inputs),
126  InputTriggerSums = cms.InputTag(inputs),
127  ProcessorParameters = self.processor
128  )
129  return producer
130 
131 
133  def __init__(self,
134  stcSize=custom_conc_proc.stcSize,
135  type_energy_division=custom_conc_proc.type_energy_division,
136  fixedDataSizePerHGCROC=custom_conc_proc.fixedDataSizePerHGCROC,
137  triggercells=custom_conc_proc.NData
138  ):
139  self.processor = custom_conc_proc.clone(
140  stcSize = stcSize,
141  type_energy_division = type_energy_division,
142  fixedDataSizePerHGCROC = fixedDataSizePerHGCROC,
143  NData = triggercells,
144  Method = cms.vstring('bestChoiceSelect','superTriggerCellSelect','superTriggerCellSelect'),
145  )
146 
147  def __call__(self, process, inputs):
148  producer = process.hgcalConcentratorProducer.clone(
149  InputTriggerCells = cms.InputTag(inputs),
150  InputTriggerSums = cms.InputTag(inputs),
151  ProcessorParameters = self.processor
152  )
153  return producer
154 
155 
157  def __init__(self,
158  stcSize=custom_conc_proc.stcSize,
159  type_energy_division=custom_conc_proc.type_energy_division,
160  fixedDataSizePerHGCROC=custom_conc_proc.fixedDataSizePerHGCROC,
161  triggercells=custom_conc_proc.NData,
162  threshold_silicon=custom_conc_proc.threshold_silicon, # in mipT
163  threshold_scintillator=custom_conc_proc.threshold_scintillator, # in mipT
164  Method = custom_conc_proc.Method,
165  coarsenTriggerCells=custom_conc_proc.coarsenTriggerCells,
166  ctcSize=custom_conc_proc.ctcSize,
167  ):
168  self.processor = custom_conc_proc.clone(
169  stcSize = stcSize,
170  type_energy_division = type_energy_division,
171  fixedDataSizePerHGCROC = fixedDataSizePerHGCROC,
172  NData = triggercells,
173  threshold_silicon = threshold_silicon, # MipT
174  threshold_scintillator = threshold_scintillator, # MipT
175  Method = Method,
176  coarsenTriggerCells=coarsenTriggerCells,
177  ctcSize = ctcSize,
178  )
179 
180  def __call__(self, process, inputs):
181  producer = process.hgcalConcentratorProducer.clone(
182  InputTriggerCells = cms.InputTag(inputs),
183  InputTriggerSums = cms.InputTag(inputs),
184  ProcessorParameters = self.processor
185  )
186  return producer
187 
def __call__(self, process, inputs)
Definition: concentrator.py:42
def __init__(self, cellRemap=autoEncoder_conc_proc.cellRemap, cellRemapNoDuplicates=autoEncoder_conc_proc.cellRemapNoDuplicates, nBitsPerInput=autoEncoder_conc_proc.nBitsPerInput, maxBitsPerOutput=autoEncoder_conc_proc.maxBitsPerOutput, bitsPerLink=autoEncoder_conc_proc.bitsPerLink, modelFiles=autoEncoder_conc_proc.modelFiles, linkToGraphMap=autoEncoder_conc_proc.linkToGraphMap, encoderShape=autoEncoder_conc_proc.encoderShape, decoderShape=autoEncoder_conc_proc.decoderShape, zeroSuppresionThreshold=autoEncoder_conc_proc.zeroSuppresionThreshold, saveEncodedValues=autoEncoder_conc_proc.saveEncodedValues, preserveModuleSum=autoEncoder_conc_proc.preserveModuleSum, scintillatorMethod='thresholdSelect')
Definition: concentrator.py:87
def __init__(self, stcSize=custom_conc_proc.stcSize, type_energy_division=custom_conc_proc.type_energy_division, fixedDataSizePerHGCROC=custom_conc_proc.fixedDataSizePerHGCROC, triggercells=custom_conc_proc.NData)
def __init__(self, triggercells=best_conc_proc.NData, coarsenTriggerCells=best_conc_proc.coarsenTriggerCells, ctcSize=best_conc_proc.ctcSize)
Definition: concentrator.py:56
def __call__(self, process, inputs)
Definition: concentrator.py:63
def __call__(self, process, inputs)
def __call__(self, process, inputs)
def __call__(self, process, inputs)
def __init__(self, stcSize=custom_conc_proc.stcSize, type_energy_division=custom_conc_proc.type_energy_division, fixedDataSizePerHGCROC=custom_conc_proc.fixedDataSizePerHGCROC, triggercells=custom_conc_proc.NData, threshold_silicon=custom_conc_proc.threshold_silicon, threshold_scintillator=custom_conc_proc.threshold_scintillator, Method=custom_conc_proc.Method, coarsenTriggerCells=custom_conc_proc.coarsenTriggerCells, ctcSize=custom_conc_proc.ctcSize)
def __init__(self, stcSize=coarsetc_onebitfraction_proc.stcSize, fixedDataSizePerHGCROC=coarsetc_onebitfraction_proc.fixedDataSizePerHGCROC)
def __call__(self, process, inputs)
def __call__(self, process, inputs)
Definition: concentrator.py:23
def __init__(self, threshold_silicon=threshold_conc_proc.threshold_silicon, threshold_scintillator=threshold_conc_proc.threshold_scintillator # in mipT)
Definition: concentrator.py:36
def __init__(self, stcSize=supertc_conc_proc.stcSize, type_energy_division=supertc_conc_proc.type_energy_division, fixedDataSizePerHGCROC=supertc_conc_proc.fixedDataSizePerHGCROC, coarsenTriggerCells=supertc_conc_proc.coarsenTriggerCells, ctcSize=supertc_conc_proc.ctcSize)
Definition: concentrator.py:14