Skip to content

Commit 0ca4f8a

Browse files
committed
Prepare mlp for implicit memory management off.
1 parent 2e866e7 commit 0ca4f8a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

math/mlp/src/TMLPAnalyzer.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ void TMLPAnalyzer::GatherInformations()
197197
index[i] = val.Atoi();
198198
}
199199
TH1D tmp("tmpb", "tmpb", 1, -FLT_MAX, FLT_MAX);
200+
tmp.SetDirectory(gDirectory);
200201
data->Draw(Form("%s>>tmpb",formula.Data()),"","goff");
201202
rms[i] = tmp.GetRMS();
202203
}

math/mlp/src/TNeuron.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,7 @@ TTreeFormula* TNeuron::UseBranch(TTree* input, const char* formula)
893893
}
894894
// Computes the default normalization
895895
TH1D tmp("tmpb", "tmpb", 1, -FLT_MAX, FLT_MAX);
896+
tmp.SetDirectory(gDirectory);
896897
input->Draw(Form("%s>>tmpb",(const char*)f),"","goff");
897898
fNorm[0] = tmp.GetRMS();
898899
if(fNorm[0]<1e-15) fNorm[0]=1.;

0 commit comments

Comments
 (0)