CMS 3D CMS Logo

hgcalTriggerNtuples_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
6 import hgcalLayersCalibrationCoefficients_cfi as layercalibparam
7 
8 
9 fcPerMip = recoparam.HGCalUncalibRecHit.HGCEEConfig.fCPerMIP
10 keV2fC = digiparam.hgceeDigitizer.digiCfg.keV2fC
11 layerWeights = layercalibparam.TrgLayer_dEdX_weights
12 thicknessCorrections = recocalibparam.HGCalRecHit.thicknessCorrection
13 
14 ntuple_event = cms.PSet(
15  NtupleName = cms.string('HGCalTriggerNtupleEvent')
16 )
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('mix:HGCDigisEE'),
48  HGCDigisFH = cms.InputTag('mix:HGCDigisHEfront'),
49  HGCDigisBH = cms.InputTag('mix:HGCDigisHEback'),
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('hgcalTriggerPrimitiveDigiProducer:calibratedTriggerCells'),
59  Multiclusters = cms.InputTag('hgcalTriggerPrimitiveDigiProducer:cluster3D'),
60  eeSimHits = cms.InputTag('g4SimHits:HGCHitsEE'),
61  fhSimHits = cms.InputTag('g4SimHits:HGCHitsHEfront'),
62  bhSimHits = cms.InputTag('g4SimHits:HcalHits'),
63  FillSimEnergy = cms.bool(False),
64  fcPerMip = fcPerMip,
65  keV2fC = keV2fC,
66  layerWeights = layerWeights,
67  thicknessCorrections = thicknessCorrections,
68  FilterCellsInMulticlusters = cms.bool(True)
69 )
70 
71 ntuple_clusters = cms.PSet(
72  NtupleName = cms.string('HGCalTriggerNtupleHGCClusters'),
73  Clusters = cms.InputTag('hgcalTriggerPrimitiveDigiProducer:cluster2D'),
74  Multiclusters = cms.InputTag('hgcalTriggerPrimitiveDigiProducer:cluster3D'),
75  FilterClustersInMulticlusters = cms.bool(True)
76 )
77 
78 ntuple_multicluster = cms.PSet(
79  NtupleName = cms.string('HGCalTriggerNtupleHGCMulticlusters'),
80  Multiclusters = cms.InputTag('hgcalTriggerPrimitiveDigiProducer:cluster3D')
81 )
82 
83 ntuple_panels = cms.PSet(
84  NtupleName = cms.string('HGCalTriggerNtupleHGCPanels'),
85  TriggerCells = cms.InputTag('hgcalTriggerPrimitiveDigiProducer:calibratedTriggerCells')
86 )
87 
88 ntuple_tower = cms.PSet(
89  NtupleName = cms.string('HGCalTriggerNtupleHGCTowers'),
90  Towers = cms.InputTag('hgcalTriggerPrimitiveDigiProducer:tower')
91 )
92 
93 hgcalTriggerNtuplizer = cms.EDAnalyzer(
94  "HGCalTriggerNtupleManager",
95  Ntuples = cms.VPSet(
96  ntuple_event,
97  ntuple_gen,
98  ntuple_genjet,
99  ntuple_gentau,
100  ntuple_digis,
101  ntuple_triggercells,
102  ntuple_clusters,
103  ntuple_multicluster,
104  ntuple_tower
105  )
106 )