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 layerWeights = layercalibparam.TrgLayer_dEdX_weights
13 thicknessCorrections = recocalibparam.HGCalRecHit.thicknessCorrection
14 
15 ntuple_event = cms.PSet(
16  NtupleName = cms.string('HGCalTriggerNtupleEvent')
17 )
18 
19 from FastSimulation.Event.ParticleFilter_cfi import ParticleFilterBlock
20 PartFilterConfig = ParticleFilterBlock.ParticleFilter.copy()
21 PartFilterConfig.protonEMin = cms.double(100000)
22 PartFilterConfig.etaMax = cms.double(3.1)
23 
24 ntuple_gen = cms.PSet(
25  NtupleName = cms.string('HGCalTriggerNtupleGen'),
26  GenParticles = cms.InputTag('genParticles'),
27  GenPU = cms.InputTag('addPileupInfo'),
28  MCEvent = cms.InputTag('generatorSmeared'),
29  SimTracks = cms.InputTag('g4SimHits'),
30  SimVertices = cms.InputTag('g4SimHits'),
31  particleFilter = PartFilterConfig
32 )
33 
34 ntuple_gentau = cms.PSet(
35  NtupleName = cms.string('HGCalTriggerNtupleGenTau'),
36  GenParticles = cms.InputTag('genParticles'),
37  isPythia8 = cms.bool(False)
38 )
39 
40 ntuple_genjet = cms.PSet(
41  NtupleName = cms.string('HGCalTriggerNtupleGenJet'),
42  GenJets = cms.InputTag('ak4GenJetsNoNu')
43 )
44 
45 ntuple_digis = cms.PSet(
46  NtupleName = cms.string('HGCalTriggerNtupleHGCDigis'),
47  HGCDigisEE = cms.InputTag('simHGCalUnsuppressedDigis:EE'),
48  HGCDigisFH = cms.InputTag('simHGCalUnsuppressedDigis:HEfront'),
49  HGCDigisBH = cms.InputTag('simHGCalUnsuppressedDigis:HEback'),
50  eeSimHits = cms.InputTag('g4SimHits:HGCHitsEE'),
51  fhSimHits = cms.InputTag('g4SimHits:HGCHitsHEfront'),
52  bhSimHits = cms.InputTag('g4SimHits:HcalHits'),
53  isSimhitComp = cms.bool(False)
54 )
55 
56 ntuple_triggercells = cms.PSet(
57  NtupleName = cms.string('HGCalTriggerNtupleHGCTriggerCells'),
58  TriggerCells = cms.InputTag('hgcalConcentratorProducer:HGCalConcentratorProcessorSelection'),
59  Multiclusters = cms.InputTag('hgcalBackEndLayer2Producer:HGCalBackendLayer2Processor3DClustering'),
60  eeSimHits = cms.InputTag('g4SimHits:HGCHitsEE'),
61  fhSimHits = cms.InputTag('g4SimHits:HGCHitsHEfront'),
62  bhSimHits = cms.InputTag('g4SimHits:HcalHits'),
63  FillSimEnergy = cms.bool(False),
64  FillTruthMap = cms.bool(False),
65  fcPerMip = fcPerMip,
66  keV2fC = keV2fC,
67  layerWeights = layerWeights,
68  thicknessCorrections = thicknessCorrections,
69  FilterCellsInMulticlusters = cms.bool(False)
70 )
71 
72 ntuple_triggersums = cms.PSet(
73  NtupleName = cms.string('HGCalTriggerNtupleHGCTriggerSums'),
74  TriggerSums = cms.InputTag('hgcalConcentratorProducer:HGCalConcentratorProcessorSelection'),
75 )
76 
77 ntuple_clusters = cms.PSet(
78  NtupleName = cms.string('HGCalTriggerNtupleHGCClusters'),
79  Clusters = cms.InputTag('hgcalBackEndLayer1Producer:HGCalBackendLayer1Processor2DClustering'),
80  Multiclusters = cms.InputTag('hgcalBackEndLayer2Producer:HGCalBackendLayer2Processor3DClustering'),
81  FilterClustersInMulticlusters = cms.bool(False)
82 )
83 
84 from L1Trigger.L1THGCal.egammaIdentification import egamma_identification_histomax
85 ntuple_multiclusters = cms.PSet(
86  NtupleName = cms.string('HGCalTriggerNtupleHGCMulticlusters'),
87  Multiclusters = cms.InputTag('hgcalBackEndLayer2Producer:HGCalBackendLayer2Processor3DClustering'),
88  EGIdentification = egamma_identification_histomax.clone(),
89  FillLayerInfo = cms.bool(False),
90  FillInterpretationInfo = cms.bool(True)
91 )
92 
93 ntuple_panels = cms.PSet(
94  NtupleName = cms.string('HGCalTriggerNtupleHGCPanels'),
95  TriggerCells = cms.InputTag('hgcalConcentratorProducer:HGCalConcentratorProcessorSelection')
96 )
97 
98 ntuple_towers = cms.PSet(
99  NtupleName = cms.string('HGCalTriggerNtupleHGCTowers'),
100  Towers = cms.InputTag('hgcalTowerProducer:HGCalTowerProcessor')
101 )
102 
103 hgcalTriggerNtuplizer = 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 )
hgcalDigitizer_cfi
ParticleFilter_cfi
egammaIdentification
HGCalRecHit_cfi
HGCalUncalibRecHit_cfi