20 m_bdtHelper = std::make_unique<tauRecTools::BDTHelper>();
29 return StatusCode::SUCCESS;
35 std::map<TString, float*> availableVars;
40 availableVars.insert( std::make_pair(
"TauJetsAuxDyn.mu", &vars.
mu) );
41 availableVars.insert( std::make_pair(
"TauJetsAuxDyn.nVtxPU", &vars.
nVtxPU) );
42 availableVars.insert( std::make_pair(
"TauJetsAuxDyn.rho", &vars.
rho) );
43 availableVars.insert( std::make_pair(
"TauJetsAuxDyn.ClustersMeanCenterLambda", &vars.
center_lambda) );
44 availableVars.insert( std::make_pair(
"TauJetsAuxDyn.ClustersMeanFirstEngDens", &vars.
first_eng_dens) );
45 availableVars.insert( std::make_pair(
"TauJetsAuxDyn.ClustersMeanSecondLambda", &vars.
second_lambda) );
46 availableVars.insert( std::make_pair(
"TauJetsAuxDyn.ClustersMeanPresamplerFrac", &vars.
presampler_frac) );
47 availableVars.insert( std::make_pair(
"TauJetsAuxDyn.ClustersMeanEMProbability", &vars.
eprobability) );
48 availableVars.insert( std::make_pair(
"TauJetsAuxDyn.ptIntermediateAxisEM/TauJetsAuxDyn.ptIntermediateAxis", &vars.
ptEM_D_ptLC) );
49 availableVars.insert( std::make_pair(
"TauJetsAuxDyn.ptIntermediateAxis/TauJetsAuxDyn.ptCombined", &vars.
ptLC_D_ptCombined) );
50 availableVars.insert( std::make_pair(
"TauJetsAuxDyn.etaPanTauCellBased", &vars.
etaConstituent) );
52 availableVars.insert( std::make_pair(
"log(TauJetsAuxDyn.ptCombined)", &vars.
logPtCombined) );
53 availableVars.insert( std::make_pair(
"TauJetsAuxDyn.LeadClusterFrac", &vars.
lead_cluster_frac) );
54 availableVars.insert( std::make_pair(
"TauJetsAuxDyn.centFrac", &vars.
centFrac) );
55 availableVars.insert( std::make_pair(
"TauJetsAuxDyn.UpsilonCluster", &vars.
upsilon_cluster) );
56 availableVars.insert( std::make_pair(
"TauJetsAuxDyn.ptJetSeed/TauJetsAuxDyn.ptCombined", &vars.
ptSeed_D_ptCombined) );
59 availableVars.insert( std::make_pair(
"TauJetsAuxDyn.ptPanTauCellBased/TauJetsAuxDyn.ptCombined", &vars.
ptConstituent_D_ptCombined) );
60 availableVars.insert( std::make_pair(
"TauJetsAuxDyn.ptCombined", &vars.
ptCombined) );
61 availableVars.insert( std::make_pair(
"TauJetsAuxDyn.PanTau_BDTValue_1p0n_vs_1p1n", &vars.
PanTauBDT_1p0n_vs_1p1n) );
62 availableVars.insert( std::make_pair(
"TauJetsAuxDyn.PanTau_BDTValue_1p1n_vs_1pXn", &vars.
PanTauBDT_1p1n_vs_1pXn) );
63 availableVars.insert( std::make_pair(
"TauJetsAuxDyn.PanTau_BDTValue_3p0n_vs_3pXn", &vars.
PanTauBDT_3p0n_vs_3pXn) );
64 availableVars.insert( std::make_pair(
"TauJetsAuxDyn.nTracks", &vars.
nTracks) );
65 availableVars.insert( std::make_pair(
"TauJetsAuxDyn.PFOEngRelDiff", &vars.
PFOEngRelDiff) );
69 availableVars.insert( std::make_pair(
"TrigTauJetsAuxDyn.mu", &vars.
mu) );
70 availableVars.insert( std::make_pair(
"TrigTauJetsAuxDyn.ClustersMeanCenterLambda", &vars.
center_lambda) );
71 availableVars.insert( std::make_pair(
"TrigTauJetsAuxDyn.ClustersMeanFirstEngDens", &vars.
first_eng_dens) );
72 availableVars.insert( std::make_pair(
"TrigTauJetsAuxDyn.ClustersMeanSecondLambda", &vars.
second_lambda) );
73 availableVars.insert( std::make_pair(
"TrigTauJetsAuxDyn.ClustersMeanPresamplerFrac", &vars.
presampler_frac) );
74 availableVars.insert( std::make_pair(
"TrigTauJetsAuxDyn.ClustersMeanEMProbability", &vars.
eprobability) );
75 availableVars.insert( std::make_pair(
"TrigTauJetsAuxDyn.LeadClusterFrac", &vars.
lead_cluster_frac) );
76 availableVars.insert( std::make_pair(
"TrigTauJetsAuxDyn.SecondClusterFrac", &vars.
second_cluster_frac) );
77 availableVars.insert( std::make_pair(
"TrigTauJetsAuxDyn.ThirdClusterFrac", &vars.
third_cluster_frac) );
78 availableVars.insert( std::make_pair(
"TrigTauJetsAuxDyn.UpsilonCluster", &vars.
upsilon_cluster) );
79 availableVars.insert( std::make_pair(
"log(TrigTauJetsAuxDyn.ptDetectorAxis)", &vars.
logPtDetectorAxis) );
80 availableVars.insert( std::make_pair(
"TrigTauJetsAuxDyn.etaDetectorAxis", &vars.
etaDetectorAxis) );
81 availableVars.insert( std::make_pair(
"TrigTauJetsAuxDyn.ptIntermediateAxisEM/TrigTauJetsAuxDyn.ptDetectorAxis", &vars.
ptEM_D_ptLC) );
82 availableVars.insert( std::make_pair(
"TrigTauJetsAuxDyn.ptDetectorAxis/TrigTauJetsAuxDyn.ptJetSeed", &vars.
ptDetectorAxis_D_ptJetSeed) );
83 availableVars.insert( std::make_pair(
"TrigTauJetsAuxDyn.centFrac", &vars.
centFrac) );
88 vars.
mu = acc_mu(xTau);
98 float ptEM = acc_ptIntermediateAxisEM(xTau);
102 float ptCombined = acc_ptCombined(xTau);
104 if (ptCombined==0.) {
108 return StatusCode::SUCCESS;
112 vars.
nVtxPU = acc_nVtxPU(xTau);
115 vars.
rho = acc_rho(xTau);
122 vars.
ptEM_D_ptLC = (ptLC != 0.) ? ptEM / ptLC : 0.;
159 if (ptMVA<1.) ptMVA=1.;
169 return StatusCode::SUCCESS;
190 if (ptMVA<1.) ptMVA=1.;
199 return StatusCode::SUCCESS;