CMS 3D CMS Logo

clustering2d_v2.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from L1Trigger.L1THGCal.hgcalBackEndLayer1Producer_cfi import dummy_C2d_params, \
3  stage1truncation_proc, \
4  truncation_params
5 
7  def __init__(self,
8  maxTcsPerBin=truncation_params.maxTcsPerBin,
9  doTruncation=truncation_params.doTruncation):
10  self.processor = stage1truncation_proc.clone(
11  truncation_parameters=truncation_params.clone(
12  maxTcsPerBin=maxTcsPerBin,
13  doTruncation=doTruncation
14  )
15  )
16 
17  def __call__(self,process,inputs):
18  producer = process.hgcalBackEndStage1Producer.clone(
19  InputTriggerCells = cms.InputTag(inputs),
20  C2d_parameters = dummy_C2d_params.clone(),
21  ProcessorParameters = self.processor
22  )
23  return producer
def __call__(self, process, inputs)
def __init__(self, maxTcsPerBin=truncation_params.maxTcsPerBin, doTruncation=truncation_params.doTruncation)