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