CMS 3D CMS Logo

concentrator.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
4 
5 
6 def create_supertriggercell(process, inputs,
7  stcSize=supertc_conc_proc.stcSize
8  ):
9  producer = process.hgcalConcentratorProducer.clone(
10  InputTriggerCells = cms.InputTag('{}:HGCalVFEProcessorSums'.format(inputs)),
11  InputTriggerSums = cms.InputTag('{}:HGCalVFEProcessorSums'.format(inputs))
12  )
13  producer.ProcessorParameters = supertc_conc_proc.clone(
14  stcSize = stcSize
15  )
16  return producer
17 
18 
19 def create_threshold(process, inputs,
20  threshold_silicon=threshold_conc_proc.triggercell_threshold_silicon, # in mipT
21  threshold_scintillator=threshold_conc_proc.triggercell_threshold_scintillator # in mipT
22  ):
23  producer = process.hgcalConcentratorProducer.clone(
24  InputTriggerCells = cms.InputTag('{}:HGCalVFEProcessorSums'.format(inputs)),
25  InputTriggerSums = cms.InputTag('{}:HGCalVFEProcessorSums'.format(inputs))
26  )
27  producer.ProcessorParameters = threshold_conc_proc.clone(
28  triggercell_threshold_silicon = threshold_silicon, # MipT
29  triggercell_threshold_scintillator = threshold_scintillator # MipT
30  )
31  return producer
32 
33 
34 def create_bestchoice(process, inputs,
35  triggercells=best_conc_proc.NData
36  ):
37  producer = process.hgcalConcentratorProducer.clone(
38  InputTriggerCells = cms.InputTag('{}:HGCalVFEProcessorSums'.format(inputs)),
39  InputTriggerSums = cms.InputTag('{}:HGCalVFEProcessorSums'.format(inputs))
40  )
41  producer.ProcessorParameters = best_conc_proc.clone(
42  NData = triggercells
43  )
44  return producer
def create_bestchoice(process, inputs, triggercells=best_conc_proc.NData)
Definition: concentrator.py:36
def create_threshold(process, inputs, threshold_silicon=threshold_conc_proc.triggercell_threshold_silicon, threshold_scintillator=threshold_conc_proc.triggercell_threshold_scintillator#in mipT)
Definition: concentrator.py:22
def create_supertriggercell(process, inputs, stcSize=supertc_conc_proc.stcSize)
Definition: concentrator.py:8