CMS 3D CMS Logo

Classes | Namespaces | Enumerations | Functions | Variables
DeepTauId.cc File Reference
#include <Math/VectorUtil.h>
#include "FWCore/Framework/interface/stream/EDProducer.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "PhysicsTools/TensorFlow/interface/TensorFlow.h"
#include "tensorflow/core/util/memmapped_file_system.h"
#include "DataFormats/PatCandidates/interface/Electron.h"
#include "DataFormats/PatCandidates/interface/Muon.h"
#include "DataFormats/PatCandidates/interface/Tau.h"
#include "DataFormats/TauReco/interface/TauDiscriminatorContainer.h"
#include "DataFormats/TauReco/interface/PFTauDiscriminator.h"
#include "DataFormats/PatCandidates/interface/PATTauDiscriminator.h"
#include "CommonTools/Utils/interface/StringObjectFunction.h"
#include "RecoTauTag/RecoTau/interface/PFRecoTauClusterVariables.h"
#include "RecoTauTag/RecoTau/interface/TauWPThreshold.h"
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
#include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
#include "DataFormats/Common/interface/View.h"
#include "DataFormats/Common/interface/RefToBase.h"
#include "DataFormats/Provenance/interface/ProductProvenance.h"
#include "DataFormats/Provenance/interface/ProcessHistoryID.h"
#include "FWCore/Common/interface/Provenance.h"
#include <map>
#include "RecoTauTag/RecoTau/interface/DeepTauScaling.h"
#include "FWCore/Utilities/interface/isFinite.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DataFormats/TauReco/interface/PFTauTransverseImpactParameterAssociation.h"
#include <fstream>
#include "oneapi/tbb/concurrent_unordered_set.h"
#include "FWCore/Framework/interface/MakerMacros.h"

Go to the source code of this file.

Classes

class  deep_tau::DeepTauCache
 
class  DeepTauId
 
struct  DeepTauId::Output
 
struct  DeepTauId::TauDiscInfo< ConsumeType >
 

Namespaces

 candFunc
 
 deep_tau
 
 dnn_inputs_v2
 
 dnn_inputs_v2::EgammaBlockInputs
 
 dnn_inputs_v2::HadronBlockInputs
 
 dnn_inputs_v2::MuonBlockInputs
 
 dnn_inputs_v2::TauBlockInputs
 

Enumerations

enum  deep_tau::BasicDiscriminator {
  deep_tau::ChargedIsoPtSum, deep_tau::NeutralIsoPtSum, deep_tau::NeutralIsoPtSumWeight, deep_tau::FootprintCorrection,
  deep_tau::PhotonPtSumOutsideSignalCone, deep_tau::PUcorrPtSum
}
 
enum  CellObjectType
 
enum  vars
 
enum  vars
 
enum  vars
 
enum  vars
 

Functions

static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker< edm::ParameterSetDescriptionFiller< DeepTauId > > s_filler_0__LINE__ ("DeepTauId")
 
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< DeepTauId > > s_maker__LINE__ ("DeepTauId")
 

Variables

constexpr int deep_tau::NumberOfOutputs = 4
 

Enumeration Type Documentation

◆ CellObjectType

enum CellObjectType
strong

Definition at line 777 of file DeepTauId.cc.

◆ vars [1/4]

enum vars

Definition at line 117 of file DeepTauId.cc.

117  {
118  rho = 0,
119  tau_pt,
120  tau_eta,
121  tau_phi,
122  tau_mass,
123  tau_E_over_pt,
124  tau_charge,
125  tau_n_charged_prongs,
126  tau_n_neutral_prongs,
127  chargedIsoPtSum,
128  chargedIsoPtSumdR03_over_dR05,
129  footprintCorrection,
130  neutralIsoPtSum,
131  neutralIsoPtSumWeight_over_neutralIsoPtSum,
132  neutralIsoPtSumWeightdR03_over_neutralIsoPtSum,
133  neutralIsoPtSumdR03_over_dR05,
134  photonPtSumOutsideSignalCone,
135  puCorrPtSum,
136  tau_dxy_pca_x,
137  tau_dxy_pca_y,
138  tau_dxy_pca_z,
139  tau_dxy_valid,
140  tau_dxy,
141  tau_dxy_sig,
142  tau_ip3d_valid,
143  tau_ip3d,
144  tau_ip3d_sig,
145  tau_dz,
146  tau_dz_sig_valid,
147  tau_dz_sig,
148  tau_flightLength_x,
149  tau_flightLength_y,
150  tau_flightLength_z,
151  tau_flightLength_sig,
152  tau_pt_weighted_deta_strip,
153  tau_pt_weighted_dphi_strip,
154  tau_pt_weighted_dr_signal,
155  tau_pt_weighted_dr_iso,
156  tau_leadingTrackNormChi2,
157  tau_e_ratio_valid,
158  tau_e_ratio,
159  tau_gj_angle_diff_valid,
160  tau_gj_angle_diff,
161  tau_n_photons,
162  tau_emFraction,
163  tau_inside_ecal_crack,
164  leadChargedCand_etaAtEcalEntrance_minus_tau_eta,
165  NumberOfInputs
166  };

◆ vars [2/4]

enum vars

Definition at line 172 of file DeepTauId.cc.

172  {
173  rho = 0,
174  tau_pt,
175  tau_eta,
176  tau_inside_ecal_crack,
177  pfCand_ele_valid,
178  pfCand_ele_rel_pt,
179  pfCand_ele_deta,
180  pfCand_ele_dphi,
181  pfCand_ele_pvAssociationQuality,
182  pfCand_ele_puppiWeight,
183  pfCand_ele_charge,
184  pfCand_ele_lostInnerHits,
185  pfCand_ele_numberOfPixelHits,
186  pfCand_ele_vertex_dx,
187  pfCand_ele_vertex_dy,
188  pfCand_ele_vertex_dz,
189  pfCand_ele_vertex_dx_tauFL,
190  pfCand_ele_vertex_dy_tauFL,
191  pfCand_ele_vertex_dz_tauFL,
192  pfCand_ele_hasTrackDetails,
193  pfCand_ele_dxy,
194  pfCand_ele_dxy_sig,
195  pfCand_ele_dz,
196  pfCand_ele_dz_sig,
197  pfCand_ele_track_chi2_ndof,
198  pfCand_ele_track_ndof,
199  ele_valid,
200  ele_rel_pt,
201  ele_deta,
202  ele_dphi,
203  ele_cc_valid,
204  ele_cc_ele_rel_energy,
205  ele_cc_gamma_rel_energy,
206  ele_cc_n_gamma,
207  ele_rel_trackMomentumAtVtx,
208  ele_rel_trackMomentumAtCalo,
209  ele_rel_trackMomentumOut,
210  ele_rel_trackMomentumAtEleClus,
211  ele_rel_trackMomentumAtVtxWithConstraint,
212  ele_rel_ecalEnergy,
213  ele_ecalEnergy_sig,
214  ele_eSuperClusterOverP,
215  ele_eSeedClusterOverP,
216  ele_eSeedClusterOverPout,
217  ele_eEleClusterOverPout,
218  ele_deltaEtaSuperClusterTrackAtVtx,
219  ele_deltaEtaSeedClusterTrackAtCalo,
220  ele_deltaEtaEleClusterTrackAtCalo,
221  ele_deltaPhiEleClusterTrackAtCalo,
222  ele_deltaPhiSuperClusterTrackAtVtx,
223  ele_deltaPhiSeedClusterTrackAtCalo,
224  ele_mvaInput_earlyBrem,
225  ele_mvaInput_lateBrem,
226  ele_mvaInput_sigmaEtaEta,
227  ele_mvaInput_hadEnergy,
228  ele_mvaInput_deltaEta,
229  ele_gsfTrack_normalizedChi2,
230  ele_gsfTrack_numberOfValidHits,
231  ele_rel_gsfTrack_pt,
232  ele_gsfTrack_pt_sig,
233  ele_has_closestCtfTrack,
234  ele_closestCtfTrack_normalizedChi2,
235  ele_closestCtfTrack_numberOfValidHits,
236  pfCand_gamma_valid,
237  pfCand_gamma_rel_pt,
238  pfCand_gamma_deta,
239  pfCand_gamma_dphi,
240  pfCand_gamma_pvAssociationQuality,
241  pfCand_gamma_fromPV,
242  pfCand_gamma_puppiWeight,
243  pfCand_gamma_puppiWeightNoLep,
244  pfCand_gamma_lostInnerHits,
245  pfCand_gamma_numberOfPixelHits,
246  pfCand_gamma_vertex_dx,
247  pfCand_gamma_vertex_dy,
248  pfCand_gamma_vertex_dz,
249  pfCand_gamma_vertex_dx_tauFL,
250  pfCand_gamma_vertex_dy_tauFL,
251  pfCand_gamma_vertex_dz_tauFL,
252  pfCand_gamma_hasTrackDetails,
253  pfCand_gamma_dxy,
254  pfCand_gamma_dxy_sig,
255  pfCand_gamma_dz,
256  pfCand_gamma_dz_sig,
257  pfCand_gamma_track_chi2_ndof,
258  pfCand_gamma_track_ndof,
259  NumberOfInputs
260  };

◆ vars [3/4]

enum vars

Definition at line 264 of file DeepTauId.cc.

264  {
265  rho = 0,
266  tau_pt,
267  tau_eta,
268  tau_inside_ecal_crack,
269  pfCand_muon_valid,
270  pfCand_muon_rel_pt,
271  pfCand_muon_deta,
272  pfCand_muon_dphi,
273  pfCand_muon_pvAssociationQuality,
274  pfCand_muon_fromPV,
275  pfCand_muon_puppiWeight,
276  pfCand_muon_charge,
277  pfCand_muon_lostInnerHits,
278  pfCand_muon_numberOfPixelHits,
279  pfCand_muon_vertex_dx,
280  pfCand_muon_vertex_dy,
281  pfCand_muon_vertex_dz,
282  pfCand_muon_vertex_dx_tauFL,
283  pfCand_muon_vertex_dy_tauFL,
284  pfCand_muon_vertex_dz_tauFL,
285  pfCand_muon_hasTrackDetails,
286  pfCand_muon_dxy,
287  pfCand_muon_dxy_sig,
288  pfCand_muon_dz,
289  pfCand_muon_dz_sig,
290  pfCand_muon_track_chi2_ndof,
291  pfCand_muon_track_ndof,
292  muon_valid,
293  muon_rel_pt,
294  muon_deta,
295  muon_dphi,
296  muon_dxy,
297  muon_dxy_sig,
298  muon_normalizedChi2_valid,
299  muon_normalizedChi2,
300  muon_numberOfValidHits,
301  muon_segmentCompatibility,
302  muon_caloCompatibility,
303  muon_pfEcalEnergy_valid,
304  muon_rel_pfEcalEnergy,
305  muon_n_matches_DT_1,
306  muon_n_matches_DT_2,
307  muon_n_matches_DT_3,
308  muon_n_matches_DT_4,
309  muon_n_matches_CSC_1,
310  muon_n_matches_CSC_2,
311  muon_n_matches_CSC_3,
312  muon_n_matches_CSC_4,
313  muon_n_matches_RPC_1,
314  muon_n_matches_RPC_2,
315  muon_n_matches_RPC_3,
316  muon_n_matches_RPC_4,
317  muon_n_hits_DT_1,
318  muon_n_hits_DT_2,
319  muon_n_hits_DT_3,
320  muon_n_hits_DT_4,
321  muon_n_hits_CSC_1,
322  muon_n_hits_CSC_2,
323  muon_n_hits_CSC_3,
324  muon_n_hits_CSC_4,
325  muon_n_hits_RPC_1,
326  muon_n_hits_RPC_2,
327  muon_n_hits_RPC_3,
328  muon_n_hits_RPC_4,
329  NumberOfInputs
330  };

◆ vars [4/4]

enum vars

Definition at line 334 of file DeepTauId.cc.

334  {
335  rho = 0,
336  tau_pt,
337  tau_eta,
338  tau_inside_ecal_crack,
339  pfCand_chHad_valid,
340  pfCand_chHad_rel_pt,
341  pfCand_chHad_deta,
342  pfCand_chHad_dphi,
343  pfCand_chHad_leadChargedHadrCand,
344  pfCand_chHad_pvAssociationQuality,
345  pfCand_chHad_fromPV,
346  pfCand_chHad_puppiWeight,
347  pfCand_chHad_puppiWeightNoLep,
348  pfCand_chHad_charge,
349  pfCand_chHad_lostInnerHits,
350  pfCand_chHad_numberOfPixelHits,
351  pfCand_chHad_vertex_dx,
352  pfCand_chHad_vertex_dy,
353  pfCand_chHad_vertex_dz,
354  pfCand_chHad_vertex_dx_tauFL,
355  pfCand_chHad_vertex_dy_tauFL,
356  pfCand_chHad_vertex_dz_tauFL,
357  pfCand_chHad_hasTrackDetails,
358  pfCand_chHad_dxy,
359  pfCand_chHad_dxy_sig,
360  pfCand_chHad_dz,
361  pfCand_chHad_dz_sig,
362  pfCand_chHad_track_chi2_ndof,
363  pfCand_chHad_track_ndof,
364  pfCand_chHad_hcalFraction,
365  pfCand_chHad_rawCaloFraction,
366  pfCand_nHad_valid,
367  pfCand_nHad_rel_pt,
368  pfCand_nHad_deta,
369  pfCand_nHad_dphi,
370  pfCand_nHad_puppiWeight,
371  pfCand_nHad_puppiWeightNoLep,
372  pfCand_nHad_hcalFraction,
373  NumberOfInputs
374  };

Function Documentation

◆ s_filler_0__LINE__()

static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< DeepTauId > > s_filler_0__LINE__ ( "DeepTauId"  )
static

◆ s_maker__LINE__()

static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< DeepTauId > > s_maker__LINE__ ( "DeepTauId"  )
static