Skip to content
Snippets Groups Projects
Commit 5a5921fd authored by Walter Lampl's avatar Walter Lampl
Browse files

Merge branch 'R22_RNNtauptfix' into 'master'

tauRecTools: fix RNN tau ID variable, deploy R22 eVeto

See merge request atlas/athena!45548
parents 35eacbab 9e12752e
No related branches found
No related tags found
No related merge requests found
......@@ -149,7 +149,7 @@ class tauRecTauJetRNNConfig(JobProperty):
"""
statusOn=True
allowedTypes=[['string']]
StoredValue=[ 'tauid_rnn_1p_R22_v0.json', 'tauid_rnn_2p_R22_v0.json', 'tauid_rnn_3p_R22_v0.json' ]
StoredValue=[ 'tauid_rnn_1p_R22_v1.json', 'tauid_rnn_2p_R22_v1.json', 'tauid_rnn_3p_R22_v1.json' ]
class tauRecTauJetRNNWPConfig(JobProperty):
"""Config files for TauWPDecorator for RNN jet ID
......@@ -163,14 +163,14 @@ class tauRecTauEleRNNConfig(JobProperty):
"""
statusOn=True
allowedTypes=[['string']]
StoredValue=[ 'rnneveto_mc16d_config_1p.json', 'rnneveto_mc16d_config_3p.json' ]
StoredValue=[ 'taueveto_rnn_config_1P_r22.json', 'taueveto_rnn_config_3P_r22.json' ]
class tauRecTauEleRNNWPConfig(JobProperty):
"""Config files for TauWPDecorator for RNN eVeto
"""
statusOn=True
allowedTypes=[['string']]
StoredValue=[ 'rnneveto_mc16d_flat_1p.root', 'rnneveto_mc16d_flat_3p.root' ]
StoredValue=[ 'taueveto_rnn_flat_1P_r22.root', 'taueveto_rnn_flat_3P_r22.root' ]
class tauRecPi0ScoreConfig(JobProperty):
"""Config file for TauPi0ScoreCalculator
......
......@@ -114,6 +114,7 @@ std::unique_ptr<VarCalc> get_default_calculator() {
calc->insert("trFlightPathSig", Variables::trFlightPathSig);
calc->insert("massTrkSys", Variables::massTrkSys);
calc->insert("pt", Variables::pt);
calc->insert("pt_tau_log", Variables::pt_tau_log);
calc->insert("ptDetectorAxis", Variables::ptDetectorAxis);
calc->insert("ptIntermediateAxis", Variables::ptIntermediateAxis);
//---added for the eVeto
......@@ -254,6 +255,11 @@ bool pt(const xAOD::TauJet &tau, double &out) {
return true;
}
bool pt_tau_log(const xAOD::TauJet &tau, double &out) {
out = std::log10(std::max(tau.pt() / GeV, 1e-6));
return true;
}
bool ptDetectorAxis(const xAOD::TauJet &tau, double &out) {
out = std::log10(std::min(tau.ptDetectorAxis() / GeV, 100.0));
return true;
......
......@@ -102,6 +102,8 @@ bool massTrkSys(const xAOD::TauJet &tau, double &out);
bool pt(const xAOD::TauJet &tau, double &out);
bool pt_tau_log(const xAOD::TauJet &tau, double &out);
bool ptDetectorAxis(const xAOD::TauJet &tau, double &out);
bool ptIntermediateAxis(const xAOD::TauJet &tau, double &out);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment