CMS 3D CMS Logo

customTriggerCellSelect.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
3 from L1Trigger.L1THGCal.hgcalConcentratorProducer_cfi import threshold_conc_proc, best_conc_proc, supertc_conc_proc, coarsetc_onebitfraction_proc, coarsetc_equalshare_proc, bestchoice_ndata_decentralized, custom_conc_proc
4 
6  stcSize=supertc_conc_proc.stcSize,
7  type_energy_division=supertc_conc_proc.type_energy_division,
8  fixedDataSizePerHGCROC=supertc_conc_proc.fixedDataSizePerHGCROC
9  ):
10  parameters = supertc_conc_proc.clone(stcSize = stcSize,
11  type_energy_division = type_energy_division,
12  fixedDataSizePerHGCROC = fixedDataSizePerHGCROC
13  )
14  process.hgcalConcentratorProducer.ProcessorParameters = parameters
15  return process
16 
17 
19  threshold_silicon=threshold_conc_proc.threshold_silicon, # in mipT
20  threshold_scintillator=threshold_conc_proc.threshold_scintillator, # in mipT
21  coarsenTriggerCells=threshold_conc_proc.coarsenTriggerCells
22  ):
23  parameters = threshold_conc_proc.clone(
24  threshold_silicon = threshold_silicon,
25  threshold_scintillator = threshold_scintillator,
26  coarsenTriggerCells = coarsenTriggerCells
27  )
28  process.hgcalConcentratorProducer.ProcessorParameters = parameters
29  return process
30 
31 
33  triggercells=best_conc_proc.NData
34  ):
35  parameters = best_conc_proc.clone(NData = triggercells)
36  process.hgcalConcentratorProducer.ProcessorParameters = parameters
37  return process
38 
39 
41  return custom_triggercellselect_bestchoice(process, triggercells=bestchoice_ndata_decentralized)
42 
43 
45  stcSize=coarsetc_onebitfraction_proc.stcSize,
46  fixedDataSizePerHGCROC=coarsetc_onebitfraction_proc.fixedDataSizePerHGCROC,
47  oneBitFractionThreshold = coarsetc_onebitfraction_proc.oneBitFractionThreshold,
48  oneBitFractionLowValue = coarsetc_onebitfraction_proc.oneBitFractionLowValue,
49  oneBitFractionHighValue = coarsetc_onebitfraction_proc.oneBitFractionHighValue,
50  ):
51  parameters = coarsetc_onebitfraction_proc.clone(
52  stcSize = stcSize,
53  fixedDataSizePerHGCROC = fixedDataSizePerHGCROC,
54  oneBitFractionThreshold = oneBitFractionThreshold,
55  oneBitFractionLowValue = oneBitFractionLowValue,
56  oneBitFractionHighValue = oneBitFractionHighValue,
57  )
58  process.hgcalConcentratorProducer.ProcessorParameters = parameters
59  return process
60 
61 
62 
63 
65  stcSize=coarsetc_equalshare_proc.stcSize,
66  fixedDataSizePerHGCROC=coarsetc_equalshare_proc.fixedDataSizePerHGCROC,
67  ):
68  parameters = coarsetc_equalshare_proc.clone(
69  stcSize = stcSize,
70  fixedDataSizePerHGCROC = fixedDataSizePerHGCROC,
71  )
72  process.hgcalConcentratorProducer.ProcessorParameters = parameters
73  return process
74 
76  stcSize=custom_conc_proc.stcSize,
77  type_energy_division=custom_conc_proc.type_energy_division,
78  fixedDataSizePerHGCROC=custom_conc_proc.fixedDataSizePerHGCROC,
79  triggercells=custom_conc_proc.NData
80  ):
81  parameters = custom_conc_proc.clone(stcSize = stcSize,
82  type_energy_division = type_energy_division,
83  fixedDataSizePerHGCROC = fixedDataSizePerHGCROC,
84  NData=triggercells,
85  Method = cms.vstring('bestChoiceSelect','superTriggerCellSelect','superTriggerCellSelect'),
86  )
87  process.hgcalConcentratorProducer.ProcessorParameters = parameters
88  return process
89 
91  return custom_triggercellselect_mixedBestChoiceSuperTriggerCell(process, triggercells=bestchoice_ndata_decentralized)
hgcalConcentratorProducer_cfi
customTriggerCellSelect.custom_coarsetc_equalshare
def custom_coarsetc_equalshare(process, stcSize=coarsetc_equalshare_proc.stcSize, fixedDataSizePerHGCROC=coarsetc_equalshare_proc.fixedDataSizePerHGCROC)
Definition: customTriggerCellSelect.py:64
hgcalDigitizer_cfi
customTriggerCellSelect.custom_triggercellselect_mixedBestChoiceSuperTriggerCell
def custom_triggercellselect_mixedBestChoiceSuperTriggerCell(process, stcSize=custom_conc_proc.stcSize, type_energy_division=custom_conc_proc.type_energy_division, fixedDataSizePerHGCROC=custom_conc_proc.fixedDataSizePerHGCROC, triggercells=custom_conc_proc.NData)
Definition: customTriggerCellSelect.py:75
customTriggerCellSelect.custom_triggercellselect_mixedBestChoiceSuperTriggerCell_decentralized
def custom_triggercellselect_mixedBestChoiceSuperTriggerCell_decentralized(process)
Definition: customTriggerCellSelect.py:90
customTriggerCellSelect.custom_coarsetc_onebitfraction
def custom_coarsetc_onebitfraction(process, stcSize=coarsetc_onebitfraction_proc.stcSize, fixedDataSizePerHGCROC=coarsetc_onebitfraction_proc.fixedDataSizePerHGCROC, oneBitFractionThreshold=coarsetc_onebitfraction_proc.oneBitFractionThreshold, oneBitFractionLowValue=coarsetc_onebitfraction_proc.oneBitFractionLowValue, oneBitFractionHighValue=coarsetc_onebitfraction_proc.oneBitFractionHighValue)
Definition: customTriggerCellSelect.py:44
customTriggerCellSelect.custom_triggercellselect_bestchoice
def custom_triggercellselect_bestchoice(process, triggercells=best_conc_proc.NData)
Definition: customTriggerCellSelect.py:32
customTriggerCellSelect.custom_triggercellselect_bestchoice_decentralized
def custom_triggercellselect_bestchoice_decentralized(process)
Definition: customTriggerCellSelect.py:40
customTriggerCellSelect.custom_triggercellselect_supertriggercell
def custom_triggercellselect_supertriggercell(process, stcSize=supertc_conc_proc.stcSize, type_energy_division=supertc_conc_proc.type_energy_division, fixedDataSizePerHGCROC=supertc_conc_proc.fixedDataSizePerHGCROC)
Definition: customTriggerCellSelect.py:5
customTriggerCellSelect.custom_triggercellselect_threshold
def custom_triggercellselect_threshold(process, threshold_silicon=threshold_conc_proc.threshold_silicon, threshold_scintillator=threshold_conc_proc.threshold_scintillator, coarsenTriggerCells=threshold_conc_proc.coarsenTriggerCells)
Definition: customTriggerCellSelect.py:18