CMS 3D CMS Logo

caloTruthCellsNtuples_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
5 
6 ntuple_multiclusters_fulltruth = ntuple_multiclusters.clone(
7  Multiclusters = cms.InputTag('caloTruthCellsProducer'),
8  Prefix = cms.untracked.string('cl3dfulltruth')
9 )
10 hgcalTriggerNtuplizer.Ntuples.append(ntuple_multiclusters_fulltruth)
11 
12 # If caloTruthCellsProducer.makeCellsCollection is True, can run the clustering algorithm over output cells too
13 
14 if caloTruthCellsProducer.makeCellsCollection:
15 
16 
17  ntuple_triggercells.caloParticlesToCells = cms.InputTag('caloTruthCellsProducer')
18  ntuple_triggercells.FillTruthMap = cms.bool(True)
19 
20  ntuple_triggercells_truth = ntuple_triggercells.clone(
21  TriggerCells = cms.InputTag('caloTruthCellsProducer'),
22  Multiclusters = cms.InputTag('hgcalTruthBackEndLayer2Producer:HGCalBackendLayer2Processor3DClustering'),
23  Prefix = cms.untracked.string('tctruth'),
24  FillTruthMap = cms.bool(False)
25  )
26 
27  ntuple_clusters_truth = ntuple_clusters.clone(
28  Clusters = cms.InputTag('hgcalTruthBackEndLayer1Producer:HGCalBackendLayer1Processor2DClustering'),
29  Prefix = cms.untracked.string('cltruth')
30  )
31 
32  ntuple_multiclusters_truth = ntuple_multiclusters.clone(
33  Multiclusters = cms.InputTag('hgcalTruthBackEndLayer2Producer:HGCalBackendLayer2Processor3DClustering'),
34  Prefix = cms.untracked.string('cl3dtruth')
35  )
36 
37  ntuple_towers_truth = ntuple_towers.clone(
38  Towers = cms.InputTag('hgcalTruthTowerProducer:HGCalTowerProcessor'),
39  Prefix = cms.untracked.string('towertruth')
40  )
41 
42  hgcalTriggerNtuplizer.Ntuples.append(ntuple_triggercells_truth)
43  hgcalTriggerNtuplizer.Ntuples.append(ntuple_multiclusters_truth)
44  hgcalTriggerNtuplizer.Ntuples.append(ntuple_towers_truth)
hgcalTriggerNtuples_cfi