Skip to content

Commit

Permalink
Avoid freeing memory owned by TMVA::Reader
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Jun 13, 2017
1 parent 282ee27 commit 6b0e61e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ createSingleReader(const int iCategory, const edm::FileInPath &weightFile){
//
// Book the method and set up the weights file
//
std::unique_ptr<TMVA::IMethod> temp( tmpTMVAReader.BookMVA(MethodName_ , weightFile.fullPath() ) );
tmpTMVAReader.BookMVA(MethodName_ , weightFile.fullPath() );

return std::unique_ptr<const GBRForest>( new GBRForest( dynamic_cast<TMVA::MethodBDT*>( tmpTMVAReader.FindMVA(MethodName_) ) ) );

Expand Down

0 comments on commit 6b0e61e

Please sign in to comment.