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 "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 <TF1.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 >
 
class  deep_tau::TauWPThreshold
 

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 826 of file DeepTauId.cc.

◆ vars [1/4]

enum vars

Definition at line 166 of file DeepTauId.cc.

166  {
167  rho = 0,
168  tau_pt,
169  tau_eta,
170  tau_phi,
171  tau_mass,
172  tau_E_over_pt,
173  tau_charge,
174  tau_n_charged_prongs,
175  tau_n_neutral_prongs,
176  chargedIsoPtSum,
177  chargedIsoPtSumdR03_over_dR05,
178  footprintCorrection,
179  neutralIsoPtSum,
180  neutralIsoPtSumWeight_over_neutralIsoPtSum,
181  neutralIsoPtSumWeightdR03_over_neutralIsoPtSum,
182  neutralIsoPtSumdR03_over_dR05,
183  photonPtSumOutsideSignalCone,
184  puCorrPtSum,
185  tau_dxy_pca_x,
186  tau_dxy_pca_y,
187  tau_dxy_pca_z,
188  tau_dxy_valid,
189  tau_dxy,
190  tau_dxy_sig,
191  tau_ip3d_valid,
192  tau_ip3d,
193  tau_ip3d_sig,
194  tau_dz,
195  tau_dz_sig_valid,
196  tau_dz_sig,
197  tau_flightLength_x,
198  tau_flightLength_y,
199  tau_flightLength_z,
200  tau_flightLength_sig,
201  tau_pt_weighted_deta_strip,
202  tau_pt_weighted_dphi_strip,
203  tau_pt_weighted_dr_signal,
204  tau_pt_weighted_dr_iso,
205  tau_leadingTrackNormChi2,
206  tau_e_ratio_valid,
207  tau_e_ratio,
208  tau_gj_angle_diff_valid,
209  tau_gj_angle_diff,
210  tau_n_photons,
211  tau_emFraction,
212  tau_inside_ecal_crack,
213  leadChargedCand_etaAtEcalEntrance_minus_tau_eta,
214  NumberOfInputs
215  };

◆ vars [2/4]

enum vars

Definition at line 221 of file DeepTauId.cc.

221  {
222  rho = 0,
223  tau_pt,
224  tau_eta,
225  tau_inside_ecal_crack,
226  pfCand_ele_valid,
227  pfCand_ele_rel_pt,
228  pfCand_ele_deta,
229  pfCand_ele_dphi,
230  pfCand_ele_pvAssociationQuality,
231  pfCand_ele_puppiWeight,
232  pfCand_ele_charge,
233  pfCand_ele_lostInnerHits,
234  pfCand_ele_numberOfPixelHits,
235  pfCand_ele_vertex_dx,
236  pfCand_ele_vertex_dy,
237  pfCand_ele_vertex_dz,
238  pfCand_ele_vertex_dx_tauFL,
239  pfCand_ele_vertex_dy_tauFL,
240  pfCand_ele_vertex_dz_tauFL,
241  pfCand_ele_hasTrackDetails,
242  pfCand_ele_dxy,
243  pfCand_ele_dxy_sig,
244  pfCand_ele_dz,
245  pfCand_ele_dz_sig,
246  pfCand_ele_track_chi2_ndof,
247  pfCand_ele_track_ndof,
248  ele_valid,
249  ele_rel_pt,
250  ele_deta,
251  ele_dphi,
252  ele_cc_valid,
253  ele_cc_ele_rel_energy,
254  ele_cc_gamma_rel_energy,
255  ele_cc_n_gamma,
256  ele_rel_trackMomentumAtVtx,
257  ele_rel_trackMomentumAtCalo,
258  ele_rel_trackMomentumOut,
259  ele_rel_trackMomentumAtEleClus,
260  ele_rel_trackMomentumAtVtxWithConstraint,
261  ele_rel_ecalEnergy,
262  ele_ecalEnergy_sig,
263  ele_eSuperClusterOverP,
264  ele_eSeedClusterOverP,
265  ele_eSeedClusterOverPout,
266  ele_eEleClusterOverPout,
267  ele_deltaEtaSuperClusterTrackAtVtx,
268  ele_deltaEtaSeedClusterTrackAtCalo,
269  ele_deltaEtaEleClusterTrackAtCalo,
270  ele_deltaPhiEleClusterTrackAtCalo,
271  ele_deltaPhiSuperClusterTrackAtVtx,
272  ele_deltaPhiSeedClusterTrackAtCalo,
273  ele_mvaInput_earlyBrem,
274  ele_mvaInput_lateBrem,
275  ele_mvaInput_sigmaEtaEta,
276  ele_mvaInput_hadEnergy,
277  ele_mvaInput_deltaEta,
278  ele_gsfTrack_normalizedChi2,
279  ele_gsfTrack_numberOfValidHits,
280  ele_rel_gsfTrack_pt,
281  ele_gsfTrack_pt_sig,
282  ele_has_closestCtfTrack,
283  ele_closestCtfTrack_normalizedChi2,
284  ele_closestCtfTrack_numberOfValidHits,
285  pfCand_gamma_valid,
286  pfCand_gamma_rel_pt,
287  pfCand_gamma_deta,
288  pfCand_gamma_dphi,
289  pfCand_gamma_pvAssociationQuality,
290  pfCand_gamma_fromPV,
291  pfCand_gamma_puppiWeight,
292  pfCand_gamma_puppiWeightNoLep,
293  pfCand_gamma_lostInnerHits,
294  pfCand_gamma_numberOfPixelHits,
295  pfCand_gamma_vertex_dx,
296  pfCand_gamma_vertex_dy,
297  pfCand_gamma_vertex_dz,
298  pfCand_gamma_vertex_dx_tauFL,
299  pfCand_gamma_vertex_dy_tauFL,
300  pfCand_gamma_vertex_dz_tauFL,
301  pfCand_gamma_hasTrackDetails,
302  pfCand_gamma_dxy,
303  pfCand_gamma_dxy_sig,
304  pfCand_gamma_dz,
305  pfCand_gamma_dz_sig,
306  pfCand_gamma_track_chi2_ndof,
307  pfCand_gamma_track_ndof,
308  NumberOfInputs
309  };

◆ vars [3/4]

enum vars

Definition at line 313 of file DeepTauId.cc.

313  {
314  rho = 0,
315  tau_pt,
316  tau_eta,
317  tau_inside_ecal_crack,
318  pfCand_muon_valid,
319  pfCand_muon_rel_pt,
320  pfCand_muon_deta,
321  pfCand_muon_dphi,
322  pfCand_muon_pvAssociationQuality,
323  pfCand_muon_fromPV,
324  pfCand_muon_puppiWeight,
325  pfCand_muon_charge,
326  pfCand_muon_lostInnerHits,
327  pfCand_muon_numberOfPixelHits,
328  pfCand_muon_vertex_dx,
329  pfCand_muon_vertex_dy,
330  pfCand_muon_vertex_dz,
331  pfCand_muon_vertex_dx_tauFL,
332  pfCand_muon_vertex_dy_tauFL,
333  pfCand_muon_vertex_dz_tauFL,
334  pfCand_muon_hasTrackDetails,
335  pfCand_muon_dxy,
336  pfCand_muon_dxy_sig,
337  pfCand_muon_dz,
338  pfCand_muon_dz_sig,
339  pfCand_muon_track_chi2_ndof,
340  pfCand_muon_track_ndof,
341  muon_valid,
342  muon_rel_pt,
343  muon_deta,
344  muon_dphi,
345  muon_dxy,
346  muon_dxy_sig,
347  muon_normalizedChi2_valid,
348  muon_normalizedChi2,
349  muon_numberOfValidHits,
350  muon_segmentCompatibility,
351  muon_caloCompatibility,
352  muon_pfEcalEnergy_valid,
353  muon_rel_pfEcalEnergy,
354  muon_n_matches_DT_1,
355  muon_n_matches_DT_2,
356  muon_n_matches_DT_3,
357  muon_n_matches_DT_4,
358  muon_n_matches_CSC_1,
359  muon_n_matches_CSC_2,
360  muon_n_matches_CSC_3,
361  muon_n_matches_CSC_4,
362  muon_n_matches_RPC_1,
363  muon_n_matches_RPC_2,
364  muon_n_matches_RPC_3,
365  muon_n_matches_RPC_4,
366  muon_n_hits_DT_1,
367  muon_n_hits_DT_2,
368  muon_n_hits_DT_3,
369  muon_n_hits_DT_4,
370  muon_n_hits_CSC_1,
371  muon_n_hits_CSC_2,
372  muon_n_hits_CSC_3,
373  muon_n_hits_CSC_4,
374  muon_n_hits_RPC_1,
375  muon_n_hits_RPC_2,
376  muon_n_hits_RPC_3,
377  muon_n_hits_RPC_4,
378  NumberOfInputs
379  };

◆ vars [4/4]

enum vars

Definition at line 383 of file DeepTauId.cc.

383  {
384  rho = 0,
385  tau_pt,
386  tau_eta,
387  tau_inside_ecal_crack,
388  pfCand_chHad_valid,
389  pfCand_chHad_rel_pt,
390  pfCand_chHad_deta,
391  pfCand_chHad_dphi,
392  pfCand_chHad_leadChargedHadrCand,
393  pfCand_chHad_pvAssociationQuality,
394  pfCand_chHad_fromPV,
395  pfCand_chHad_puppiWeight,
396  pfCand_chHad_puppiWeightNoLep,
397  pfCand_chHad_charge,
398  pfCand_chHad_lostInnerHits,
399  pfCand_chHad_numberOfPixelHits,
400  pfCand_chHad_vertex_dx,
401  pfCand_chHad_vertex_dy,
402  pfCand_chHad_vertex_dz,
403  pfCand_chHad_vertex_dx_tauFL,
404  pfCand_chHad_vertex_dy_tauFL,
405  pfCand_chHad_vertex_dz_tauFL,
406  pfCand_chHad_hasTrackDetails,
407  pfCand_chHad_dxy,
408  pfCand_chHad_dxy_sig,
409  pfCand_chHad_dz,
410  pfCand_chHad_dz_sig,
411  pfCand_chHad_track_chi2_ndof,
412  pfCand_chHad_track_ndof,
413  pfCand_chHad_hcalFraction,
414  pfCand_chHad_rawCaloFraction,
415  pfCand_nHad_valid,
416  pfCand_nHad_rel_pt,
417  pfCand_nHad_deta,
418  pfCand_nHad_dphi,
419  pfCand_nHad_puppiWeight,
420  pfCand_nHad_puppiWeightNoLep,
421  pfCand_nHad_hcalFraction,
422  NumberOfInputs
423  };

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