Skip to content
Snippets Groups Projects
Commit 74849198 authored by Kazuya Mochizuki's avatar Kazuya Mochizuki Committed by Graeme Stewart
Browse files

fix initialization of MV2 taggers (JetTagTools-01-00-42-02)

parent 91738236
No related merge requests found
......@@ -76,6 +76,7 @@ namespace Analysis {
StatusCode MV2Tag::initialize() {
m_disableAlgo=false;
m_useEgammaMethodMV2=false;
m_warnCounter=0;
m_treeName = "BDT";
......@@ -102,8 +103,7 @@ namespace Analysis {
StatusCode MV2Tag::finalize() {
ATH_MSG_DEBUG("#BTAG# Finalizing MV2.");
if (m_useEgammaMethodMV2) {
std::map<std::string, egammaMVACalibNmsp::BDT*>::iterator posBDT = m_egammaBDTs.begin();
for( ; posBDT != m_egammaBDTs.end(); ++posBDT ) delete posBDT->second;
for( auto temp: m_egammaBDTs ) if(temp.second) delete temp.second;
}
else {
// delete readers:
......
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