18 process.options.wantSummary = cms.untracked.bool(
True)
20 process.hltFixedGridRhoFastjetAll = cms.EDProducer(
"FixedGridRhoProducerFastjet",
21 gridSpacing = cms.double( 0.55 ),
22 maxRapidity = cms.double( 5.0 ),
23 pfCandidatesTag = cms.InputTag(
"hltParticleFlowReg" )
26 PFTauQualityCuts.primaryVertexSrc = cms.InputTag(
"hltPixelVertices")
29 requireDecayMode = cms.PSet(
30 BooleanOperator = cms.string(
"and"),
32 Producer = cms.InputTag(
'hltHpsPFTauDiscriminationByDecayModeFindingNewDMsReg'),
38 process.hpsPFTauBasicDiscriminators = pfRecoTauDiscriminationByIsolation.clone(
39 PFTauProducer =
'hltHpsPFTauProducerReg',
40 Prediscriminants = requireDecayMode.clone(),
41 deltaBetaPUTrackPtCutOverride =
True,
42 deltaBetaPUTrackPtCutOverride_val = 0.5,
43 particleFlowSrc =
'hltParticleFlowReg',
44 vertexSrc = PFTauQualityCuts.primaryVertexSrc,
45 customOuterCone = PFRecoTauPFJetInputs.isolationConeSize,
46 isoConeSizeForDeltaBeta = 0.8,
47 deltaBetaFactor =
"%0.4f"%(ak4dBetaCorrection),
48 qualityCuts = dict(isolationQualityCuts = dict(minTrackHits = 3, minGammaEt = 1.0, minTrackPt = 0.5)),
51 IDname = cms.string(
"ChargedIsoPtSum"),
52 ApplyDiscriminationByTrackerIsolation = cms.bool(
True),
53 storeRawSumPt = cms.bool(
True)
56 IDname = cms.string(
"NeutralIsoPtSum"),
57 ApplyDiscriminationByECALIsolation = cms.bool(
True),
58 storeRawSumPt = cms.bool(
True)
61 IDname = cms.string(
"NeutralIsoPtSumWeight"),
62 ApplyDiscriminationByWeightedECALIsolation = cms.bool(
True),
63 storeRawSumPt = cms.bool(
True),
64 UseAllPFCandsForWeights = cms.bool(
True)
67 IDname = cms.string(
"TauFootprintCorrection"),
68 storeRawFootprintCorrection = cms.bool(
True)
71 IDname = cms.string(
"PhotonPtSumOutsideSignalCone"),
72 storeRawPhotonSumPt_outsideSignalCone = cms.bool(
True)
75 IDname = cms.string(
"PUcorrPtSum"),
76 applyDeltaBetaCorrection = cms.bool(
True),
77 storeRawPUsumPt = cms.bool(
True)
83 process.hpsPFTauBasicDiscriminatorsdR03 = process.hpsPFTauBasicDiscriminators.clone(
87 process.hpsPFTauPrimaryVertexProducer = PFTauPrimaryVertexProducer.clone(
88 PFTauTag =
"hltHpsPFTauProducerReg",
89 ElectronTag =
"hltEgammaCandidates",
90 MuonTag =
"hltMuonsReg",
91 PVTag =
"hltPixelVertices",
92 beamSpot =
"hltOnlineBeamSpot",
95 discriminator = cms.InputTag(
'hltHpsPFTauDiscriminationByDecayModeFindingNewDMsReg'),
96 selectionCut = cms.double(0.5)
99 cut =
"pt > 18.0 & abs(eta) < 2.4",
100 qualityCuts = PFTauQualityCuts
103 process.hpsPFTauSecondaryVertexProducer = PFTauSecondaryVertexProducer.clone(
104 PFTauTag =
"hltHpsPFTauProducerReg"
106 process.hpsPFTauTransverseImpactParameters = PFTauTransverseImpactParameters.clone(
107 PFTauTag =
"hltHpsPFTauProducerReg",
108 PFTauPVATag =
"hpsPFTauPrimaryVertexProducer",
109 PFTauSVATag =
"hpsPFTauSecondaryVertexProducer",
110 useFullCalculation =
True
114 'core:RecoTauTag/TrainingFiles/data/DeepTauId/deepTau_2017v2p6_e6_core.pb',
115 'inner:RecoTauTag/TrainingFiles/data/DeepTauId/deepTau_2017v2p6_e6_inner.pb',
116 'outer:RecoTauTag/TrainingFiles/data/DeepTauId/deepTau_2017v2p6_e6_outer.pb',
119 working_points = [
"0.",
"0.92"]
121 process.deepTauProducer = DeepTau.clone(
122 taus =
'hltHpsPFTauProducerReg',
123 pfcands =
'hltParticleFlowReg',
124 vertices =
'hltPixelVertices',
125 rho =
'hltFixedGridRhoFastjetAll',
126 graph_file = file_names,
127 disable_dxy_pca = cms.bool(
True),
128 is_online = cms.bool(
True),
129 basicTauDiscriminators =
'hpsPFTauBasicDiscriminators',
130 basicTauDiscriminatorsdR03 =
'hpsPFTauBasicDiscriminatorsdR03',
131 Prediscriminants = requireDecayMode.clone(),
132 VSeWP = working_points,
133 VSmuWP = working_points,
134 VSjetWP = working_points
138 process.HLTHPSMediumChargedIsoPFTauSequenceReg += (process.hpsPFTauPrimaryVertexProducer + process.hpsPFTauSecondaryVertexProducer + process.hpsPFTauTransverseImpactParameters + process.hltFixedGridRhoFastjetAll + process.hpsPFTauBasicDiscriminators + process.hpsPFTauBasicDiscriminatorsdR03 + process.deepTauProducer)