1 import FWCore.ParameterSet.Config
as cms
3 from PhysicsTools.NanoAOD.simpleCandidateFlatTableProducer_cfi
import simpleCandidateFlatTableProducer
8 photonScoutingTable = cms.EDProducer(
"SimpleRun3ScoutingPhotonFlatTableProducer",
9 src = cms.InputTag(
"hltScoutingEgammaPacker"),
11 name = cms.string(
"ScoutingPhoton"),
12 doc = cms.string(
"Photon scouting information"),
13 singleton = cms.bool(
False),
14 extension = cms.bool(
False),
16 pt =
Var(
'pt',
'float', precision=10, doc=
'super-cluster (SC) pt'),
17 eta =
Var(
'eta',
'float', precision=10, doc=
'SC eta'),
18 phi =
Var(
'phi',
'float', precision=10, doc=
'SC phi'),
19 m =
Var(
'm',
'float', precision=10, doc=
'SC mass'),
20 sigmaIetaIeta =
Var(
'sigmaIetaIeta',
'float', precision=10, doc=
'sigmaIetaIeta of the SC, calculated with full 5x5 region, noise cleaned'),
21 hOverE =
Var(
'hOverE',
'float', precision=10, doc=
'Energy in HCAL / Energy in ECAL'),
22 ecalIso =
Var(
'ecalIso',
'float', precision=10, doc=
'Isolation of SC in the ECAL'),
23 hcalIso =
Var(
'hcalIso',
'float', precision=10, doc=
'Isolation of SC in the HCAL'),
24 r9 =
Var(
'r9',
'float', precision=10, doc=
'Photon SC r9 as defined in https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideEgammaShowerShape'),
25 sMin =
Var(
'sMin',
'float', precision=10, doc=
'minor moment of the SC shower shape'),
26 sMaj =
Var(
'sMaj',
'float', precision=10, doc=
'major moment of the SC shower shape'),
27 seedId =
Var(
'seedId',
'int', doc=
'ECAL ID of the SC seed'),
31 electronScoutingTable = cms.EDProducer(
"SimpleRun3ScoutingElectronFlatTableProducer",
32 src = cms.InputTag(
"hltScoutingEgammaPacker"),
34 name = cms.string(
"ScoutingElectron"),
35 doc = cms.string(
"Electron scouting information"),
36 singleton = cms.bool(
False),
37 extension = cms.bool(
False),
39 pt =
Var(
'pt',
'float', precision=10, doc=
'super-cluster (SC) pt'),
40 eta =
Var(
'eta',
'float', precision=10, doc=
'SC eta'),
41 phi =
Var(
'phi',
'float', precision=10, doc=
'SC phi'),
42 m =
Var(
'm',
'float', precision=10, doc=
'SC mass'),
43 dEtaIn =
Var(
'dEtaIn',
'float', precision=10, doc=
'#Delta#eta(SC seed, track pixel seed)'),
44 dPhiIn =
Var(
'dPhiIn',
'float', precision=10, doc=
'#Delta#phi(SC seed, track pixel seed)'),
45 sigmaIetaIeta =
Var(
'sigmaIetaIeta',
'float', precision=10, doc=
'sigmaIetaIeta of the SC, calculated with full 5x5 region, noise cleaned'),
46 hOverE =
Var(
'hOverE',
'float', precision=10, doc=
'Energy in HCAL / Energy in ECAL'),
47 ooEMOop =
Var(
'ooEMOop',
'float', precision=10, doc=
'1/E(SC) - 1/p(track momentum)'),
48 missingHits =
Var(
'missingHits',
'int', doc=
'missing hits in the tracker'),
49 ecalIso =
Var(
'ecalIso',
'float', precision=10, doc=
'Isolation of SC in the ECAL'),
50 hcalIso =
Var(
'hcalIso',
'float', precision=10, doc=
'Isolation of SC in the HCAL'),
51 trackIso =
Var(
'trackIso',
'float', precision=10, doc=
'Isolation of electron track in the tracker'),
52 r9 =
Var(
'r9',
'float', precision=10, doc=
'ELectron SC r9 as defined in https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideEgammaShowerShape'),
53 sMin =
Var(
'sMin',
'float', precision=10, doc=
'minor moment of the SC shower shape'),
54 sMaj =
Var(
'sMaj',
'float', precision=10, doc=
'major moment of the SC shower shape'),
55 seedId =
Var(
'seedId',
'int', doc=
'ECAL ID of the SC seed'),
59 muonScoutingTable = cms.EDProducer(
"SimpleRun3ScoutingMuonFlatTableProducer",
60 src = cms.InputTag(
"hltScoutingMuonPacker"),
62 name = cms.string(
"ScoutingMuon"),
63 doc = cms.string(
"Muon scouting information"),
64 singleton = cms.bool(
False),
65 extension = cms.bool(
False),
67 pt =
Var(
'pt',
'float', precision=10, doc=
'pt'),
68 eta =
Var(
'eta',
'float', precision=10, doc=
'eta'),
69 phi =
Var(
'phi',
'float', precision=10, doc=
'phi'),
70 m =
Var(
'm',
'float', precision=10, doc=
'mass'),
71 type =
Var(
'type',
'int', doc=
'type of muon'),
72 charge =
Var(
'charge',
'int', doc=
'track charge'),
73 normchi2 =
Var(
'normalizedChi2',
'float', precision=10, doc=
'normalized chi squared'),
74 ecalIso =
Var(
'ecalIso',
'float', precision=10, doc=
'PF ECAL isolation'),
75 hcalIso =
Var(
'hcalIso',
'float', precision=10, doc=
'PF HCAL isolation'),
76 trackIso =
Var(
'trackIso',
'float', precision=10, doc=
'track isolation'),
77 nValidStandAloneMuonHits =
Var(
'nValidStandAloneMuonHits',
'int', doc=
'number of valid standalone muon hits'),
78 nStandAloneMuonMatchedStations =
Var(
'nStandAloneMuonMatchedStations',
'int', doc=
'number of muon stations with valid hits'),
79 nValidRecoMuonHits =
Var(
'nValidRecoMuonHits',
'int', doc=
'number of valid reco muon hits'),
80 nRecoMuonChambers =
Var(
'nRecoMuonChambers',
'int', doc=
'number of reco muon chambers'),
81 nRecoMuonChambersCSCorDT =
Var(
'nRecoMuonChambersCSCorDT',
'int', doc=
'number of reco muon chambers CSC or DT'),
82 nRecoMuonMatches =
Var(
'nRecoMuonMatches',
'int', doc=
'number of reco muon matches'),
83 nRecoMuonMatchedStations =
Var(
'nRecoMuonMatchedStations',
'int', doc=
'number of reco muon matched stations'),
84 nRecoMuonExpectedMatchedStations =
Var(
'nRecoMuonExpectedMatchedStations',
'int', doc=
'number of reco muon expected matched stations'),
85 recoMuonStationMask =
Var(
'recoMuonStationMask',
'int', doc=
'reco muon station mask'),
86 nRecoMuonMatchedRPCLayers =
Var(
'nRecoMuonMatchedRPCLayers',
'int', doc=
'number of reco muon matched RPC layers'),
87 recoMuonRPClayerMask =
Var(
'recoMuonRPClayerMask',
'int', doc=
'reco muon RPC layer mask'),
88 nValidPixelHits =
Var(
'nValidPixelHits',
'int', doc=
'number of valid pixel hits'),
89 nValidStripHits =
Var(
'nValidStripHits',
'int', doc=
'number of valid strip hits'),
90 nPixelLayersWithMeasurement =
Var(
'nPixelLayersWithMeasurement',
'int', doc=
'number of pixel layers with measurement'),
91 nTrackerLayersWithMeasurement =
Var(
'nTrackerLayersWithMeasurement',
'int', doc=
'number of tracker layer with measurements'),
92 trk_chi2 =
Var(
'trk_chi2',
'float', precision=10, doc=
'track chi squared'),
93 trk_ndof =
Var(
'trk_ndof',
'float', precision=10, doc=
'track number of degrees of freedom'),
94 trk_dxy =
Var(
'trk_dxy',
'float', precision=10, doc=
'track dxy'),
95 trk_dz =
Var(
'trk_dz',
'float', precision=10, doc=
'track dz'),
96 trk_qoverp =
Var(
'trk_qoverp',
'float', precision=10, doc=
'track qoverp'),
97 trk_lambda =
Var(
'trk_lambda',
'float', precision=10, doc=
'track lambda'),
98 trk_pt =
Var(
'trk_pt',
'float', precision=10, doc=
'track pt'),
99 trk_phi =
Var(
'trk_phi',
'float', precision=10, doc=
'track phi'),
100 trk_eta =
Var(
'trk_eta',
'float', precision=10, doc=
'track eta'),
101 trk_dxyError =
Var(
'trk_dxyError',
'float', precision=10, doc=
'track dxyError'),
102 trk_dzError =
Var(
'trk_dzError',
'float', precision=10, doc=
'tracl dzError'),
103 trk_qoverpError =
Var(
'trk_qoverpError',
'float', precision=10, doc=
'track qoverpError'),
104 trk_lambdaError =
Var(
'trk_lambdaError',
'float', precision=10, doc=
'track lambdaError'),
105 trk_phiError =
Var(
'trk_phiError',
'float', precision=10, doc=
'track phiError'),
106 trk_dsz =
Var(
'trk_dsz',
'float', precision=10, doc=
'track dsz'),
107 trk_dszError =
Var(
'trk_dszError',
'float', precision=10, doc=
'track dszError'),
108 trk_qoverp_lambda_cov =
Var(
'trk_qoverp_lambda_cov',
'float', precision=10, doc=
'track qoverp lambda covariance ((0,1) element of covariance matrix)'),
109 trk_qoverp_phi_cov =
Var(
'trk_qoverp_phi_cov',
'float', precision=10, doc=
'track qoverp phi covariance ((0,2) element of covariance matrix)'),
110 trk_qoverp_dxy_cov =
Var(
'trk_qoverp_dxy_cov',
'float', precision=10, doc=
'track qoverp dxy covariance ((0,3) element of covariance matrix)'),
111 trk_qoverp_dsz_cov =
Var(
'trk_qoverp_dsz_cov',
'float', precision=10, doc=
'track qoverp dsz covariance ((0,4) element of covariance matrix)'),
112 trk_lambda_phi_cov =
Var(
'trk_lambda_phi_cov',
'float', precision=10, doc=
'track lambda phi covariance ((1,2) element of covariance matrix)'),
113 trk_lambda_dxy_cov =
Var(
'trk_lambda_dxy_cov',
'float', precision=10, doc=
'track lambda dxy covariance ((1,3) element of covariance matrix)'),
114 trk_lambda_dsz_cov =
Var(
'trk_lambda_dsz_cov',
'float', precision=10, doc=
'track lambda dsz covariance ((1,4) element of covariance matrix)'),
115 trk_phi_dxy_cov =
Var(
'trk_phi_dxy_cov',
'float', precision=10, doc=
'track phi dxy covariance ((2,3) element of covariance matrix)'),
116 trk_phi_dsz_cov =
Var(
'trk_phi_dsz_cov',
'float', precision=10, doc=
'track phi dsz covariance ((2,4) element of covariance matrix)'),
117 trk_dxy_dsz_cov =
Var(
'trk_dxy_dsz_cov',
'float', precision=10, doc=
'track dxy dsz covariance ((3,4) element of covariance matrix)'),
118 trk_vx =
Var(
'trk_vx',
'float', precision=10, doc=
'track vx'),
119 trk_vy =
Var(
'trk_vy',
'float', precision=10, doc=
'track vy'),
120 trk_vz =
Var(
'trk_vz',
'float', precision=10, doc=
'track vz'),
124 trackScoutingTable = cms.EDProducer(
"SimpleRun3ScoutingTrackFlatTableProducer",
125 src = cms.InputTag(
"hltScoutingTrackPacker"),
126 cut = cms.string(
""),
127 name = cms.string(
"ScoutingTrack"),
128 doc = cms.string(
"Track scouting information"),
129 singleton = cms.bool(
False),
130 extension = cms.bool(
False),
131 variables = cms.PSet(
132 pt =
Var(
'tk_pt',
'float', precision=10, doc=
'pt'),
133 eta =
Var(
'tk_eta',
'float', precision=10, doc=
'eta'),
134 phi =
Var(
'tk_phi',
'float', precision=10, doc=
'phi'),
135 chi2 =
Var(
'tk_chi2',
'float', precision=10, doc=
'chi squared'),
136 ndof =
Var(
'tk_ndof',
'float', precision=10, doc=
'number of degrees of freedom'),
137 charge =
Var(
'tk_charge',
'int', doc=
'charge'),
138 dxy =
Var(
'tk_dxy',
'float', precision=10, doc=
'dxy'),
139 dz =
Var(
'tk_dz',
'float', precision=10, doc=
'dz'),
140 nValidPixelHits =
Var(
'tk_nValidPixelHits',
'int', doc=
'number of valid pixel hits'),
141 nValidStripHits =
Var(
'tk_nValidStripHits',
'int', doc=
'number of valid strip hits'),
142 nTrackerLayersWithMeasurement =
Var(
'tk_nTrackerLayersWithMeasurement',
'int', doc=
'number of tracker layers with measurements'),
143 qoverp =
Var(
'tk_qoverp',
'float', precision=10, doc=
'qoverp'),
144 lambda_ =
Var(
'tk_lambda',
'float', precision=10, doc=
'lambda'),
145 dxyError =
Var(
'tk_dxy_Error',
'float', precision=10, doc=
'dxyError'),
146 dzError =
Var(
'tk_dz_Error',
'float', precision=10, doc=
'dzError'),
147 qoverpError =
Var(
'tk_qoverp_Error',
'float', precision=10, doc=
'qoverpError'),
148 lambdaError =
Var(
'tk_lambda_Error',
'float', precision=10, doc=
'lambdaError'),
149 phiError =
Var(
'tk_phi_Error',
'float', precision=10, doc=
'phiError'),
150 dsz =
Var(
'tk_dsz',
'float', precision=10, doc=
'dsz'),
151 dszError =
Var(
'tk_dsz_Error',
'float', precision=10, doc=
'dszError'),
152 qoverp_lambda_cov =
Var(
'tk_qoverp_lambda_cov',
'float', precision=10, doc=
'qoverp lambda covariance ((0,1) element of covariance matrix)'),
153 qoverp_phi_cov =
Var(
'tk_qoverp_phi_cov',
'float', precision=10, doc=
'qoverp phi covariance ((0,2) element of covariance matrix)'),
154 qoverp_dxy_cov =
Var(
'tk_qoverp_dxy_cov',
'float', precision=10, doc=
'qoverp dxy covariance ((0,3) element of covariance matrix)'),
155 qoverp_dsz_cov =
Var(
'tk_qoverp_dsz_cov',
'float', precision=10, doc=
'qoverp dsz covariance ((0,4) element of covariance matrix)'),
156 lambda_phi_cov =
Var(
'tk_lambda_phi_cov',
'float', precision=10, doc=
'lambda phi covariance ((1,2) element of covariance matrix)'),
157 lambda_dxy_cov =
Var(
'tk_lambda_dxy_cov',
'float', precision=10, doc=
'lambda dxy covariance ((1,3) element of covariance matrix)'),
158 lambda_dsz_cov =
Var(
'tk_lambda_dsz_cov',
'float', precision=10, doc=
'lambd dsz covariance ((1,4) element of covariance matrix)'),
159 phi_dxy_cov =
Var(
'tk_phi_dxy_cov',
'float', precision=10, doc=
'phi dxy covariance ((2,3) element of covariance matrix)'),
160 phi_dsz_cov =
Var(
'tk_phi_dsz_cov',
'float', precision=10, doc=
'phi dsz covariance ((2,4) element of covariance matrix)'),
161 dxy_dsz_cov =
Var(
'tk_dxy_dsz_cov',
'float', precision=10, doc=
'dxy dsz covariance ((3,4) element of covariance matrix)'),
162 vtxInd =
Var(
'tk_vtxInd',
'int', doc=
'vertex index'),
163 vx =
Var(
'tk_vx',
'float', precision=10, doc=
'vx'),
164 vy =
Var(
'tk_vy',
'float', precision=10, doc=
'vy'),
165 vz =
Var(
'tk_vz',
'float', precision=10, doc=
'vz'),
169 primaryvertexScoutingTable = cms.EDProducer(
"SimpleRun3ScoutingVertexFlatTableProducer",
170 src = cms.InputTag(
"hltScoutingPrimaryVertexPacker",
"primaryVtx"),
171 cut = cms.string(
""),
172 name = cms.string(
"ScoutingPrimaryVertex"),
173 doc = cms.string(
"PrimaryVertex scouting information"),
174 singleton = cms.bool(
False),
175 extension = cms.bool(
False),
176 variables = cms.PSet(
177 x =
Var(
'x',
'float', precision=10, doc=
'position x coordinate'),
178 y =
Var(
'y',
'float', precision=10, doc=
'position y coordinate'),
179 z =
Var(
'z',
'float', precision=10, doc=
'position z coordinate'),
180 xError =
Var(
'xError',
'float', precision=10, doc=
'x error'),
181 yError =
Var(
'yError',
'float', precision=10, doc=
'y error'),
182 zError =
Var(
'zError',
'float', precision=10, doc=
'z error'),
183 tracksSize =
Var(
'tracksSize',
'int', doc=
'number of tracks'),
184 chi2 =
Var(
'chi2',
'float', precision=10, doc=
'chi squared'),
185 ndof =
Var(
'ndof',
'int', doc=
'number of degrees of freedom'),
186 isValidVtx =
Var(
'isValidVtx',
'bool', doc=
'is valid'),
190 displacedvertexScoutingTable = cms.EDProducer(
"SimpleRun3ScoutingVertexFlatTableProducer",
191 src = cms.InputTag(
"hltScoutingMuonPacker",
"displacedVtx"),
192 cut = cms.string(
""),
193 name = cms.string(
"ScoutingDisplacedVertex"),
194 doc = cms.string(
"DisplacedVertex scouting information"),
195 singleton = cms.bool(
False),
196 extension = cms.bool(
False),
197 variables = cms.PSet(
198 x =
Var(
'x',
'float', precision=10, doc=
'position x coordinate'),
199 y =
Var(
'y',
'float', precision=10, doc=
'position y coordinate'),
200 z =
Var(
'z',
'float', precision=10, doc=
'position z coordinate'),
201 xError =
Var(
'xError',
'float', precision=10, doc=
'x error'),
202 yError =
Var(
'yError',
'float', precision=10, doc=
'y error'),
203 zError =
Var(
'zError',
'float', precision=10, doc=
'z error'),
204 tracksSize =
Var(
'tracksSize',
'int', doc=
'number of tracks'),
205 chi2 =
Var(
'chi2',
'float', precision=10, doc=
'chi squared'),
206 ndof =
Var(
'ndof',
'int', doc=
'number of degrees of freedom'),
207 isValidVtx =
Var(
'isValidVtx',
'bool', doc=
'is valid'),
211 jetScoutingTable = cms.EDProducer(
"SimpleRun3ScoutingPFJetFlatTableProducer",
212 src = cms.InputTag(
"hltScoutingPFPacker"),
213 cut = cms.string(
""),
214 name = cms.string(
"ScoutingPFJet"),
215 doc = cms.string(
"PFJet scouting information"),
216 singleton = cms.bool(
False),
217 extension = cms.bool(
False),
218 variables = cms.PSet(
220 m =
Var(
'm',
'float', precision=10, doc=
'mass'),
221 jetArea =
Var(
'jetArea',
'float', precision=10, doc=
'jet area'),
222 chargedHadronEnergy =
Var(
'chargedHadronEnergy',
'float', precision=10, doc=
'charged hadron energy'),
223 neutralHadronEnergy =
Var(
'neutralHadronEnergy',
'float', precision=10, doc=
'neutral hadron energy'),
224 photonEnergy =
Var(
'photonEnergy',
'float', precision=10, doc=
'photon energy'),
225 electronEnergy =
Var(
'electronEnergy',
'float', precision=10, doc=
'electron energy'),
226 muonEnergy =
Var(
'muonEnergy',
'float', precision=10, doc=
'muon energy'),
227 HFHadronEnergy =
Var(
'HFHadronEnergy',
'float', precision=10, doc=
'hadronic energy in HF'),
228 HFEMEnergy =
Var(
'HFEMEnergy',
'float', precision=10, doc=
'electromagnetic energy in HF'),
229 chargedHadronMultiplicity =
Var(
'chargedHadronMultiplicity',
'int', doc=
'number of charged hadrons in the jet'),
230 neutralHadronMultiplicity =
Var(
'neutralHadronMultiplicity',
'int', doc=
'number of neutral hadrons in the jet'),
231 photonMultiplicity =
Var(
'photonMultiplicity',
'int', doc=
'number of photons in the jet'),
232 electronMultiplicity =
Var(
'electronMultiplicity',
'int', doc=
'number of electrons in the jet'),
233 muonMultiplicity =
Var(
'muonMultiplicity',
'int', doc=
'number of muons in the jet'),
234 HFHadronMultiplicity =
Var(
'HFHadronMultiplicity',
'int', doc=
'number of HF hadronic particles in the jet'),
235 HFEMMultiplicity =
Var(
'HFEMMultiplicity',
'int', doc=
'number of HF electromagnetic particles in the jet'),
236 HOEnergy =
Var(
'HOEnergy',
'float', precision=10, doc=
'hadronic energy in HO'),
240 rhoScoutingTable = cms.EDProducer(
"GlobalVariablesTableProducer",
241 name = cms.string(
""),
242 variables = cms.PSet(
243 ScoutingRho =
ExtVar( cms.InputTag(
"hltScoutingPFPacker",
"rho"),
"double", doc =
"rho from all scouting PF Candidates, used e.g. for JECs" ),
247 metScoutingTable = cms.EDProducer(
"GlobalVariablesTableProducer",
248 name = cms.string(
"ScoutingMET"),
249 variables = cms.PSet(
250 pt =
ExtVar( cms.InputTag(
"hltScoutingPFPacker",
"pfMetPt"),
"double", doc =
"scouting MET pt"),
251 phi =
ExtVar( cms.InputTag(
"hltScoutingPFPacker",
"pfMetPhi"),
"double", doc =
"scouting MET phi"),
258 muonVtxScoutingTable = muonScoutingTable.clone(
259 src = cms.InputTag(
"hltScoutingMuonPackerVtx"),
260 name = cms.string(
"ScoutingMuonVtx"),
261 doc = cms.string(
"Scouting Muon Vtx information"),
263 displacedvertexVtxScoutingTable = displacedvertexScoutingTable.clone(
264 src = cms.InputTag(
"hltScoutingMuonPackerVtx",
"displacedVtx"),
265 name = cms.string(
"ScoutingMuonVtxDisplacedVertex"),
266 doc = cms.string(
"Scouting Muon Vtx DisplacedVertex information"),
270 muonNoVtxScoutingTable = muonScoutingTable.clone(
271 src = cms.InputTag(
"hltScoutingMuonPackerNoVtx"),
272 name = cms.string(
"ScoutingMuonNoVtx"),
273 doc = cms.string(
"Scouting Muon NoVtx information"),
275 displacedvertexNoVtxScoutingTable = displacedvertexScoutingTable.clone(
276 src = cms.InputTag(
"hltScoutingMuonPackerNoVtx",
"displacedVtx"),
277 name = cms.string(
"ScoutingMuonNoVtxDisplacedVertex"),
278 doc = cms.string(
"Scouting Muon NoVtx DisplacedVertex information"),
284 scoutingPFCands = cms.EDProducer(
285 "Run3ScoutingParticleToRecoPFCandidateProducer",
286 scoutingparticle=cms.InputTag(
"hltScoutingPFPacker"),
289 particleScoutingTable = cms.EDProducer(
"SimpleCandidateFlatTableProducer",
290 src = cms.InputTag(
"scoutingPFCands"),
291 name = cms.string(
"ScoutingParticle"),
292 cut = cms.string(
""),
293 doc = cms.string(
"ScoutingParticle"),
294 singleton = cms.bool(
False),
295 extension = cms.bool(
False),
296 externalVariables = cms.PSet(
297 vertexIndex =
ExtVar(cms.InputTag(
"scoutingPFCands",
"vertexIndex"), int, doc=
"vertex index"),
298 trkNormchi2 =
ExtVar(cms.InputTag(
"scoutingPFCands",
"normchi2"), float, doc=
"normalized chi squared of best track", precision=6),
299 trkDz =
ExtVar(cms.InputTag(
"scoutingPFCands",
"dz"), float, doc=
"dz of best track", precision=6),
300 trkDxy =
ExtVar(cms.InputTag(
"scoutingPFCands",
"dxy"), float, doc=
"dxy of best track", precision=6),
301 trkDzsig =
ExtVar(cms.InputTag(
"scoutingPFCands",
"dzsig"), float, doc=
"dzsig of best track", precision=6),
302 trkDxysig =
ExtVar(cms.InputTag(
"scoutingPFCands",
"dxysig"), float, doc=
"dxysig of best track", precision=6),
303 trkLostInnerHits =
ExtVar(cms.InputTag(
"scoutingPFCands",
"lostInnerHits"), int, doc=
"lostInnerHits of best track"),
304 trkQuality =
ExtVar(cms.InputTag(
"scoutingPFCands",
"quality"), int, doc=
"quality of best track"),
305 trkPt =
ExtVar(cms.InputTag(
"scoutingPFCands",
"trkPt"), float, doc=
"pt of best track", precision=6),
306 trkEta =
ExtVar(cms.InputTag(
"scoutingPFCands",
"trkEta"), float, doc=
"eta of best track", precision=6),
307 trkPhi =
ExtVar(cms.InputTag(
"scoutingPFCands",
"trkPhi"), float, doc=
"phi of best track", precision=6),
309 variables = cms.PSet(
318 ak4ScoutingJets = ak4PFJets.clone(
319 src = (
"scoutingPFCands"),
323 ak4ScoutingJetParticleNetJetTagInfos = cms.EDProducer(
"DeepBoostedJetTagInfoProducer",
324 jet_radius = cms.double( 0.4 ),
325 min_jet_pt = cms.double( 5.0 ),
326 max_jet_eta = cms.double( 2.5 ),
327 min_pt_for_track_properties = cms.double( 0.95 ),
328 min_pt_for_pfcandidates = cms.double( 0.1 ),
329 use_puppiP4 = cms.bool(
False ),
330 include_neutrals = cms.bool(
True ),
331 sort_by_sip2dsig = cms.bool(
False ),
332 min_puppi_wgt = cms.double( -1.0 ),
333 flip_ip_sign = cms.bool(
False ),
334 sip3dSigMax = cms.double( -1.0 ),
335 use_hlt_features = cms.bool(
False ),
336 pf_candidates = cms.InputTag(
"scoutingPFCands" ),
337 jets = cms.InputTag(
"ak4ScoutingJets" ),
338 puppi_value_map = cms.InputTag(
"" ),
339 use_scouting_features = cms.bool(
True ),
340 normchi2_value_map = cms.InputTag(
"scoutingPFCands",
"normchi2"),
341 dz_value_map = cms.InputTag(
"scoutingPFCands",
"dz"),
342 dxy_value_map = cms.InputTag(
"scoutingPFCands",
"dxy"),
343 dzsig_value_map = cms.InputTag(
"scoutingPFCands",
"dzsig"),
344 dxysig_value_map = cms.InputTag(
"scoutingPFCands",
"dxysig"),
345 lostInnerHits_value_map = cms.InputTag(
"scoutingPFCands",
"lostInnerHits"),
346 quality_value_map = cms.InputTag(
"scoutingPFCands",
"quality"),
347 trkPt_value_map = cms.InputTag(
"scoutingPFCands",
"trkPt"),
348 trkEta_value_map = cms.InputTag(
"scoutingPFCands",
"trkEta"),
349 trkPhi_value_map = cms.InputTag(
"scoutingPFCands",
"trkPhi"),
352 from RecoBTag.ONNXRuntime.boostedJetONNXJetTagsProducer_cfi
import boostedJetONNXJetTagsProducer
354 ak4ScoutingJetParticleNetJetTags = cms.EDProducer(
"BoostedJetONNXJetTagsProducer",
355 jets = cms.InputTag(
"ak4ScoutingJets"),
356 produceValueMap = cms.untracked.bool(
True),
357 src = cms.InputTag(
"ak4ScoutingJetParticleNetJetTagInfos"),
358 preprocess_json = cms.string(
"RecoBTag/Combined/data/Run3Scouting/ParticleNetAK4/V00/preprocess.json"),
359 model_path = cms.FileInPath(
"RecoBTag/Combined/data/Run3Scouting/ParticleNetAK4/V00/particle-net.onnx"),
360 flav_names = cms.vstring([
"probb",
"probbb",
"probc",
"probcc",
"probuds",
"probg",
"probundef"]),
361 debugMode = cms.untracked.bool(
False),
364 ak4ScoutingJetTable = cms.EDProducer(
"SimplePFJetFlatTableProducer",
365 src = cms.InputTag(
"ak4ScoutingJets"),
366 name = cms.string(
"ScoutingPFJetRecluster"),
367 cut = cms.string(
""),
368 doc = cms.string(
"ak4 jets from re-clustering scouting PF candidates"),
369 singleton = cms.bool(
False),
370 extension = cms.bool(
False),
371 externalVariables = cms.PSet(
372 particleNet_prob_b =
ExtVar(cms.InputTag(
'ak4ScoutingJetParticleNetJetTags:probb'), float, doc=
"ParticleNet probability of b", precision=10),
373 particleNet_prob_bb =
ExtVar(cms.InputTag(
'ak4ScoutingJetParticleNetJetTags:probbb'), float, doc=
"ParticleNet probability of bb", precision=10),
374 particleNet_prob_c =
ExtVar(cms.InputTag(
'ak4ScoutingJetParticleNetJetTags:probc'), float, doc=
"ParticleNet probability of c", precision=10),
375 particleNet_prob_cc =
ExtVar(cms.InputTag(
'ak4ScoutingJetParticleNetJetTags:probcc'), float, doc=
"ParticleNet probability of cc", precision=10),
376 particleNet_prob_uds =
ExtVar(cms.InputTag(
'ak4ScoutingJetParticleNetJetTags:probuds'), float, doc=
"particlenet probability of uds", precision=10),
377 particleNet_prob_g =
ExtVar(cms.InputTag(
'ak4ScoutingJetParticleNetJetTags:probg'), float, doc=
"ParticleNet probability of g", precision=10),
378 particleNet_prob_undef =
ExtVar(cms.InputTag(
'ak4ScoutingJetParticleNetJetTags:probundef'), float, doc=
"ParticleNet probability of undef", precision=10),
380 variables = cms.PSet(
382 area =
Var(
"jetArea()", float, doc=
"jet catchment area, for JECs",precision=10),
383 chHEF =
Var(
"chargedHadronEnergy()/(chargedHadronEnergy()+neutralHadronEnergy()+photonEnergy()+electronEnergy()+muonEnergy())", float, doc=
"charged Hadron Energy Fraction", precision= 6),
384 neHEF =
Var(
"neutralHadronEnergy()/(chargedHadronEnergy()+neutralHadronEnergy()+photonEnergy()+electronEnergy()+muonEnergy())", float, doc=
"neutral Hadron Energy Fraction", precision= 6),
385 chEmEF =
Var(
"(electronEnergy()+muonEnergy())/(chargedHadronEnergy()+neutralHadronEnergy()+photonEnergy()+electronEnergy()+muonEnergy())", float, doc=
"charged Electromagnetic Energy Fraction", precision= 6),
386 neEmEF =
Var(
"(photonEnergy())/(chargedHadronEnergy()+neutralHadronEnergy()+photonEnergy()+electronEnergy()+muonEnergy())", float, doc=
"neutral Electromagnetic Energy Fraction", precision= 6),
387 muEF =
Var(
"(muonEnergy())/(chargedHadronEnergy()+neutralHadronEnergy()+photonEnergy()+electronEnergy()+muonEnergy())", float, doc=
"muon Energy Fraction", precision= 6),
388 nCh =
Var(
"chargedHadronMultiplicity()", int, doc=
"number of charged hadrons in the jet"),
389 nNh =
Var(
"neutralHadronMultiplicity()", int, doc=
"number of neutral hadrons in the jet"),
390 nMuons =
Var(
"muonMultiplicity()", int, doc=
"number of muons in the jet"),
391 nElectrons =
Var(
"electronMultiplicity()", int, doc=
"number of electrons in the jet"),
392 nPhotons =
Var(
"photonMultiplicity()", int, doc=
"number of photons in the jet"),
393 nConstituents =
Var(
"numberOfDaughters()",
"uint8", doc=
"number of particles in the jet")
397 ak4ScoutingJetMatchGen = cms.EDProducer(
"RecoJetToGenJetDeltaRValueMapProducer",
398 src = cms.InputTag(
"ak4ScoutingJets"),
399 matched = cms.InputTag(
"slimmedGenJets"),
400 distMax = cms.double(0.4),
401 value = cms.string(
"index"),
404 ak4ScoutingJetExtTable = cms.EDProducer(
"SimpleCandidateFlatTableProducer",
405 src = cms.InputTag(
"ak4ScoutingJets"),
406 name = cms.string(
"ScoutingPFJetRecluster"),
407 cut = cms.string(
""),
408 singleton = cms.bool(
False),
409 extension = cms.bool(
True),
410 externalVariables = cms.PSet(
411 genJetIdx =
ExtVar(cms.InputTag(
"ak4ScoutingJetMatchGen"), int, doc=
"gen jet idx"),
413 variables = cms.PSet(),
419 ak8ScoutingJets = ak4PFJets.clone(
420 src = (
"scoutingPFCands"),
425 ak8ScoutingJetsSoftDrop = ak4PFJets.clone(
426 src = (
"scoutingPFCands"),
429 useSoftDrop = cms.bool(
True),
430 zcut = cms.double(0.1),
431 beta = cms.double(0.0),
432 R0 = cms.double(0.8),
433 useExplicitGhosts = cms.bool(
True),
434 writeCompound = cms.bool(
True),
435 jetCollInstanceName=cms.string(
"SubJets"),
438 ak8ScoutingJetsSoftDropMass = cms.EDProducer(
"RecoJetDeltaRValueMapProducer",
439 src = cms.InputTag(
"ak8ScoutingJets"),
440 matched = cms.InputTag(
"ak8ScoutingJetsSoftDrop"),
441 distMax = cms.double(0.8),
442 value = cms.string(
'mass')
445 from RecoJets.JetProducers.ECF_cff
import ecfNbeta1
446 ak8ScoutingJetEcfNbeta1 = ecfNbeta1.clone(src = cms.InputTag(
"ak8ScoutingJets"), srcWeights=
"")
448 from RecoJets.JetProducers.nJettinessAdder_cfi
import Njettiness
449 ak8ScoutingJetNjettiness = Njettiness.clone(src = cms.InputTag(
"ak8ScoutingJets"), srcWeights=
"")
451 ak8ScoutingJetParticleNetJetTagInfos = cms.EDProducer(
"DeepBoostedJetTagInfoProducer",
452 jet_radius = cms.double( 0.8 ),
453 min_jet_pt = cms.double( 50 ),
454 max_jet_eta = cms.double( 2.5 ),
455 min_pt_for_track_properties = cms.double( 0.95 ),
456 min_pt_for_pfcandidates = cms.double( 0.1 ),
457 use_puppiP4 = cms.bool(
False ),
458 include_neutrals = cms.bool(
True ),
459 sort_by_sip2dsig = cms.bool(
False ),
460 min_puppi_wgt = cms.double( -1.0 ),
461 flip_ip_sign = cms.bool(
False ),
462 sip3dSigMax = cms.double( -1.0 ),
463 use_hlt_features = cms.bool(
False ),
464 pf_candidates = cms.InputTag(
"scoutingPFCands" ),
465 jets = cms.InputTag(
"ak8ScoutingJets" ),
466 puppi_value_map = cms.InputTag(
"" ),
467 use_scouting_features = cms.bool(
True ),
468 normchi2_value_map = cms.InputTag(
"scoutingPFCands",
"normchi2"),
469 dz_value_map = cms.InputTag(
"scoutingPFCands",
"dz"),
470 dxy_value_map = cms.InputTag(
"scoutingPFCands",
"dxy"),
471 dzsig_value_map = cms.InputTag(
"scoutingPFCands",
"dzsig"),
472 dxysig_value_map = cms.InputTag(
"scoutingPFCands",
"dxysig"),
473 lostInnerHits_value_map = cms.InputTag(
"scoutingPFCands",
"lostInnerHits"),
474 quality_value_map = cms.InputTag(
"scoutingPFCands",
"quality"),
475 trkPt_value_map = cms.InputTag(
"scoutingPFCands",
"trkPt"),
476 trkEta_value_map = cms.InputTag(
"scoutingPFCands",
"trkEta"),
477 trkPhi_value_map = cms.InputTag(
"scoutingPFCands",
"trkPhi"),
480 from RecoBTag.ONNXRuntime.boostedJetONNXJetTagsProducer_cfi
import boostedJetONNXJetTagsProducer
481 ak8ScoutingJetParticleNetJetTags = cms.EDProducer(
"BoostedJetONNXJetTagsProducer",
482 jets = cms.InputTag(
"ak8ScoutingJets"),
483 produceValueMap = cms.untracked.bool(
True),
484 src = cms.InputTag(
"ak8ScoutingJetParticleNetJetTagInfos"),
485 preprocess_json = cms.string(
"RecoBTag/Combined/data/Run3Scouting/ParticleNetAK8/General/V00/preprocess.json"),
486 model_path = cms.FileInPath(
"RecoBTag/Combined/data/Run3Scouting/ParticleNetAK8/General/V00/particle-net.onnx"),
487 flav_names = cms.vstring([
"probQCDall",
"probHbb",
"probHcc",
"probHqq"]),
488 debugMode = cms.untracked.bool(
False),
491 ak8ScoutingJetParticleNetMassRegressionJetTags = cms.EDProducer(
"BoostedJetONNXJetTagsProducer",
492 jets = cms.InputTag(
"ak8ScoutingJets"),
493 produceValueMap = cms.untracked.bool(
True),
494 src = cms.InputTag(
"ak8ScoutingJetParticleNetJetTagInfos"),
495 preprocess_json = cms.string(
"RecoBTag/Combined/data/Run3Scouting/ParticleNetAK8/MassRegression/V00/preprocess.json"),
496 model_path = cms.FileInPath(
"RecoBTag/Combined/data/Run3Scouting/ParticleNetAK8/MassRegression/V00/particle-net.onnx"),
497 flav_names = cms.vstring([
"mass"]),
498 debugMode = cms.untracked.bool(
False),
501 ak8ScoutingJetTable = cms.EDProducer(
"SimplePFJetFlatTableProducer",
502 src = cms.InputTag(
"ak8ScoutingJets"),
503 name = cms.string(
"ScoutingFatPFJetRecluster"),
504 cut = cms.string(
""),
505 doc = cms.string(
"ak8 jets from re-clustering scouting PF candidates"),
506 singleton = cms.bool(
False),
507 extension = cms.bool(
False),
508 externalVariables = cms.PSet(
510 msoftdrop =
ExtVar(cms.InputTag(
'ak8ScoutingJetsSoftDropMass'), float, doc=
"Softdrop mass", precision=10),
511 n2b1 =
ExtVar(cms.InputTag(
'ak8ScoutingJetEcfNbeta1:ecfN2'), float, doc=
"N2 with beta=1", precision=10),
512 n3b1 =
ExtVar(cms.InputTag(
'ak8ScoutingJetEcfNbeta1:ecfN3'), float, doc=
"N3 with beta=1", precision=10),
513 tau1 =
ExtVar(cms.InputTag(
'ak8ScoutingJetNjettiness:tau1'), float, doc=
"Nsubjettiness (1 axis)", precision=10),
514 tau2 =
ExtVar(cms.InputTag(
'ak8ScoutingJetNjettiness:tau2'), float, doc=
"Nsubjettiness (2 axis)", precision=10),
515 tau3 =
ExtVar(cms.InputTag(
'ak8ScoutingJetNjettiness:tau3'), float, doc=
"Nsubjettiness (3 axis)", precision=10),
516 tau4 =
ExtVar(cms.InputTag(
'ak8ScoutingJetNjettiness:tau4'), float, doc=
"Nsubjettiness (4 axis)", precision=10),
517 particleNet_mass =
ExtVar(cms.InputTag(
'ak8ScoutingJetParticleNetMassRegressionJetTags:mass'), float, doc=
"ParticleNet regressed mass", precision=10),
518 particleNet_prob_QCD =
ExtVar(cms.InputTag(
'ak8ScoutingJetParticleNetJetTags:probQCDall'), float, doc=
"ParticleNet probability of QCD", precision=10),
519 particleNet_prob_Hbb =
ExtVar(cms.InputTag(
'ak8ScoutingJetParticleNetJetTags:probHbb'), float, doc=
"ParticleNet probability of Hbb", precision=10),
520 particleNet_prob_Hcc =
ExtVar(cms.InputTag(
'ak8ScoutingJetParticleNetJetTags:probHcc'), float, doc=
"ParticleNet probability of Hcc", precision=10),
521 particleNet_prob_Hqq =
ExtVar(cms.InputTag(
'ak8ScoutingJetParticleNetJetTags:probHqq'), float, doc=
"ParticleNet probability of Hqq", precision=10),
523 variables = cms.PSet(
525 area =
Var(
"jetArea()", float, doc=
"jet catchment area, for JECs",precision=10),
526 chHEF =
Var(
"chargedHadronEnergy()/(chargedHadronEnergy()+neutralHadronEnergy()+photonEnergy()+electronEnergy()+muonEnergy())", float, doc=
"charged Hadron Energy Fraction", precision= 6),
527 neHEF =
Var(
"neutralHadronEnergy()/(chargedHadronEnergy()+neutralHadronEnergy()+photonEnergy()+electronEnergy()+muonEnergy())", float, doc=
"neutral Hadron Energy Fraction", precision= 6),
528 chEmEF =
Var(
"(electronEnergy()+muonEnergy())/(chargedHadronEnergy()+neutralHadronEnergy()+photonEnergy()+electronEnergy()+muonEnergy())", float, doc=
"charged Electromagnetic Energy Fraction", precision= 6),
529 neEmEF =
Var(
"(photonEnergy())/(chargedHadronEnergy()+neutralHadronEnergy()+photonEnergy()+electronEnergy()+muonEnergy())", float, doc=
"neutral Electromagnetic Energy Fraction", precision= 6),
530 muEF =
Var(
"(muonEnergy())/(chargedHadronEnergy()+neutralHadronEnergy()+photonEnergy()+electronEnergy()+muonEnergy())", float, doc=
"muon Energy Fraction", precision= 6),
531 nCh =
Var(
"chargedHadronMultiplicity()", int, doc=
"number of charged hadrons in the jet"),
532 nNh =
Var(
"neutralHadronMultiplicity()", int, doc=
"number of neutral hadrons in the jet"),
533 nMuons =
Var(
"muonMultiplicity()", int, doc=
"number of muons in the jet"),
534 nElectrons =
Var(
"electronMultiplicity()", int, doc=
"number of electrons in the jet"),
535 nPhotons =
Var(
"photonMultiplicity()", int, doc=
"number of photons in the jet"),
536 nConstituents =
Var(
"numberOfDaughters()",
"uint8", doc=
"number of particles in the jet")
540 ak8ScoutingJetMatchGen = cms.EDProducer(
"RecoJetToGenJetDeltaRValueMapProducer",
541 src = cms.InputTag(
"ak8ScoutingJets"),
542 matched = cms.InputTag(
"slimmedGenJetsAK8"),
543 distMax = cms.double(0.8),
544 value = cms.string(
"index"),
547 ak8ScoutingJetExtTable = cms.EDProducer(
"SimpleCandidateFlatTableProducer",
548 src = cms.InputTag(
"ak8ScoutingJets"),
549 name = cms.string(
"ScoutingFatPFJetRecluster"),
550 cut = cms.string(
""),
551 singleton = cms.bool(
False),
552 extension = cms.bool(
True),
553 externalVariables = cms.PSet(
554 genJetAK8Idx =
ExtVar(cms.InputTag(
"ak8ScoutingJetMatchGen"), int, doc=
"gen jet idx"),
556 variables = cms.PSet(),
def Var(expr, valtype, doc=None, precision=-1, lazyEval=False)
def ExtVar(tag, valtype, doc=None, precision=-1)