CMS 3D CMS Logo

caloTruthCells_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from L1Trigger.L1THGCalUtilities.caloTruthCellsProducer_cfi import caloTruthCellsProducer
4 
5 caloTruthCells = cms.Sequence(caloTruthCellsProducer)
6 
7 if caloTruthCellsProducer.makeCellsCollection:
8  ## cluster and tower sequence
9 
10  from L1Trigger.L1THGCal.hgcalConcentratorProducer_cfi import hgcalConcentratorProducer
11  from L1Trigger.L1THGCal.hgcalBackEndLayer1Producer_cfi import hgcalBackEndLayer1Producer
12  from L1Trigger.L1THGCal.hgcalBackEndLayer2Producer_cfi import hgcalBackEndLayer2Producer
13  from L1Trigger.L1THGCal.hgcalTowerMapProducer_cfi import hgcalTowerMapProducer
14  from L1Trigger.L1THGCal.hgcalTowerProducer_cfi import hgcalTowerProducer
15 
16  hgcalTruthConcentratorProducer = hgcalConcentratorProducer.clone(
17  InputTriggerCells = cms.InputTag('caloTruthCellsProducer')
18  )
19 
20  hgcalTruthBackEndLayer1Producer = hgcalBackEndLayer1Producer.clone(
21  InputTriggerCells = cms.InputTag('hgcalTruthConcentratorProducer:HGCalConcentratorProcessorSelection')
22  )
23 
24  hgcalTruthBackEndLayer2Producer = hgcalBackEndLayer2Producer.clone(
25  InputCluster = cms.InputTag('hgcalTruthBackEndLayer1Producer:HGCalBackendLayer1Processor2DClustering')
26  )
27 
28  hgcalTruthTowerMapProducer = hgcalTowerMapProducer.clone(
29  InputTriggerCells = cms.InputTag('caloTruthCellsProducer')
30  )
31 
32  hgcalTruthTowerProducer = hgcalTowerProducer.clone(
33  InputTowerMaps = cms.InputTag('hgcalTruthTowerMapProducer:HGCalTowerMapProcessor')
34  )
35 
36  caloTruthCells += cms.Sequence(
37  hgcalTruthConcentratorProducer *
38  hgcalTruthBackEndLayer1Producer *
39  hgcalTruthBackEndLayer2Producer *
40  hgcalTruthTowerMapProducer *
41  hgcalTruthTowerProducer
42  )