CMS 3D CMS Logo

hgcalTriggerNtuples_cfi.py
Go to the documentation of this file.
1 from __future__ import absolute_import
2 import FWCore.ParameterSet.Config as cms
3 
7 import L1Trigger.L1THGCal.hgcalLayersCalibrationCoefficients_cfi as layercalibparam
8 
9 
10 fcPerMip = recoparam.HGCalUncalibRecHit.HGCEEConfig.fCPerMIP
11 keV2fC = digiparam.hgceeDigitizer.digiCfg.keV2fC
12 thicknessCorrections = recocalibparam.HGCalRecHit.thicknessCorrection
13 
14 ntuple_event = cms.PSet(
15  NtupleName = cms.string('HGCalTriggerNtupleEvent')
16 )
17 
18 from FastSimulation.Event.ParticleFilter_cfi import ParticleFilterBlock
19 PartFilterConfig = ParticleFilterBlock.ParticleFilter.copy()
20 PartFilterConfig.protonEMin = cms.double(100000)
21 PartFilterConfig.etaMax = cms.double(3.1)
22 
23 ntuple_gen = cms.PSet(
24  NtupleName = cms.string('HGCalTriggerNtupleGen'),
25  GenParticles = cms.InputTag('genParticles'),
26  GenPU = cms.InputTag('addPileupInfo'),
27  MCEvent = cms.InputTag('generatorSmeared'),
28  SimTracks = cms.InputTag('g4SimHits'),
29  SimVertices = cms.InputTag('g4SimHits'),
30  particleFilter = PartFilterConfig
31 )
32 
33 ntuple_gentau = cms.PSet(
34  NtupleName = cms.string('HGCalTriggerNtupleGenTau'),
35  GenParticles = cms.InputTag('genParticles'),
36  isPythia8 = cms.bool(False)
37 )
38 
39 ntuple_genjet = cms.PSet(
40  NtupleName = cms.string('HGCalTriggerNtupleGenJet'),
41  GenJets = cms.InputTag('ak4GenJetsNoNu')
42 )
43 
44 ntuple_digis = cms.PSet(
45  NtupleName = cms.string('HGCalTriggerNtupleHGCDigis'),
46  HGCDigisEE = cms.InputTag('simHGCalUnsuppressedDigis:EE'),
47  HGCDigisFH = cms.InputTag('simHGCalUnsuppressedDigis:HEfront'),
48  HGCDigisBH = cms.InputTag('simHGCalUnsuppressedDigis:HEback'),
49  eeSimHits = cms.InputTag('g4SimHits:HGCHitsEE'),
50  fhSimHits = cms.InputTag('g4SimHits:HGCHitsHEfront'),
51  bhSimHits = cms.InputTag('g4SimHits:HGCHitsHEback'),
52  isSimhitComp = cms.bool(False),
53  digiBXselect = cms.vuint32(2)
54 )
55 
56 ntuple_triggercells = cms.PSet(
57  NtupleName = cms.string('HGCalTriggerNtupleHGCTriggerCells'),
58  TriggerCells = cms.InputTag('l1tHGCalConcentratorProducer:HGCalConcentratorProcessorSelection'),
59  Multiclusters = cms.InputTag('l1tHGCalBackEndLayer2Producer:HGCalBackendLayer2Processor3DClustering'),
60  eeSimHits = cms.InputTag('g4SimHits:HGCHitsEE'),
61  fhSimHits = cms.InputTag('g4SimHits:HGCHitsHEfront'),
62  bhSimHits = cms.InputTag('g4SimHits:HGCHitsHEback'),
63  FillSimEnergy = cms.bool(False),
64  FillTruthMap = cms.bool(False),
65  fcPerMip = fcPerMip,
66  keV2fC = keV2fC,
67  layerWeights = layercalibparam.triggerWeights.weights,
68  thicknessCorrections = thicknessCorrections,
69  FilterCellsInMulticlusters = cms.bool(False)
70 )
71 
72 ntuple_triggersums = cms.PSet(
73  NtupleName = cms.string('HGCalTriggerNtupleHGCTriggerSums'),
74  TriggerSums = cms.InputTag('l1tHGCalConcentratorProducer:HGCalConcentratorProcessorSelection'),
75 )
76 
77 ntuple_econdata = cms.PSet(
78  NtupleName = cms.string('HGCalTriggerNtupleHGCConcentratorData'),
79  ConcentratorData = cms.InputTag('l1tHGCalConcentratorProducer:HGCalConcentratorProcessorSelection'),
80 )
81 
82 ntuple_clusters = cms.PSet(
83  NtupleName = cms.string('HGCalTriggerNtupleHGCClusters'),
84  Clusters = cms.InputTag('l1tHGCalBackEndLayer1Producer:HGCalBackendLayer1Processor2DClustering'),
85  Multiclusters = cms.InputTag('l1tHGCalBackEndLayer2Producer:HGCalBackendLayer2Processor3DClustering'),
86  FilterClustersInMulticlusters = cms.bool(False)
87 )
88 
89 from L1Trigger.L1THGCal.egammaIdentification import egamma_identification_histomax
90 ntuple_multiclusters = cms.PSet(
91  NtupleName = cms.string('HGCalTriggerNtupleHGCMulticlusters'),
92  Multiclusters = cms.InputTag('l1tHGCalBackEndLayer2Producer:HGCalBackendLayer2Processor3DClustering'),
93  EGIdentification = egamma_identification_histomax.clone(),
94  FillLayerInfo = cms.bool(False),
95  FillInterpretationInfo = cms.bool(True)
96 )
97 
98 ntuple_towers = cms.PSet(
99  NtupleName = cms.string('HGCalTriggerNtupleHGCTowers'),
100  Towers = cms.InputTag('l1tHGCalTowerProducer:HGCalTowerProcessor')
101 )
102 
103 l1tHGCalTriggerNtuplizer = cms.EDAnalyzer(
104  "HGCalTriggerNtupleManager",
105  Ntuples = cms.VPSet(
106  ntuple_event,
107  ntuple_gen,
108  ntuple_genjet,
109  ntuple_gentau,
110  ntuple_digis,
111  ntuple_triggercells,
112  ntuple_triggersums,
113  ntuple_multiclusters,
114  ntuple_towers
115  )
116 )