39 """internal auxiliary function to switch to **any** PFTau collection"""
40 print(
' switching PAT Tau input to: ', tauSource)
42 applyPostfix(process,
"tauMatch" + patTauLabel, postfix).src = tauSource
43 applyPostfix(process,
"tauGenJetMatch" + patTauLabel, postfix).src = tauSource
45 applyPostfix(process,
"tauIsoDepositPFCandidates" + patTauLabel, postfix).src = tauSource
46 applyPostfix(process,
"tauIsoDepositPFCandidates" + patTauLabel, postfix).ExtractorPSet.tauSource = tauSource
47 applyPostfix(process,
"tauIsoDepositPFChargedHadrons" + patTauLabel, postfix).src = tauSource
48 applyPostfix(process,
"tauIsoDepositPFChargedHadrons" + patTauLabel, postfix).ExtractorPSet.tauSource = tauSource
49 applyPostfix(process,
"tauIsoDepositPFNeutralHadrons" + patTauLabel, postfix).src = tauSource
50 applyPostfix(process,
"tauIsoDepositPFNeutralHadrons" + patTauLabel, postfix).ExtractorPSet.tauSource = tauSource
51 applyPostfix(process,
"tauIsoDepositPFGammas" + patTauLabel, postfix).src = tauSource
52 applyPostfix(process,
"tauIsoDepositPFGammas" + patTauLabel, postfix).ExtractorPSet.tauSource = tauSource
54 applyPostfix(process,
"patTaus" + patTauLabel, postfix).tauSource = tauSource
56 applyPostfix(process,
"patTaus" + patTauLabel, postfix).tauTransverseImpactParameterSource =
""
59 if hasattr(process,
"cleanPatTaus" + patTauLabel + postfix):
60 getattr(process,
"cleanPatTaus" + patTauLabel + postfix).preselection = preselection