Skip to content
Snippets Groups Projects
Commit 26b85e56 authored by Lorenzo Moneta's avatar Lorenzo Moneta
Browse files

Fix interpreted calls to Proof from RooFit for Cling.

gProof is not a member of TProof !!!!
parent 327b8565
Branches
Tags
No related merge requests found
...@@ -141,15 +141,15 @@ void RooStudyManager::closeProof(Option_t *option) ...@@ -141,15 +141,15 @@ void RooStudyManager::closeProof(Option_t *option)
// where it is essential to properly close all connections and delete // where it is essential to properly close all connections and delete
// the TProof instance (frees ports). // the TProof instance (frees ports).
if (gROOT->GetListOfProofs()->LastIndex() != -1 && gROOT->ProcessLineFast("TProof::gProof;")) if (gROOT->GetListOfProofs()->LastIndex() != -1 && gROOT->ProcessLineFast("gProof;"))
{ {
gROOT->ProcessLineFast(Form("TProof::gProof->Close(\"%s\") ;",option)) ; gROOT->ProcessLineFast(Form("gProof->Close(\"%s\") ;",option)) ;
gROOT->ProcessLineFast("TProof::gProof->CloseProgressDialog() ;") ; gROOT->ProcessLineFast("gProof->CloseProgressDialog() ;") ;
// CloseProgressDialog does not do anything when run without GUI. This detects // CloseProgressDialog does not do anything when run without GUI. This detects
// whether the proof instance is still there and deletes it if that is the case. // whether the proof instance is still there and deletes it if that is the case.
if (gROOT->GetListOfProofs()->LastIndex() != -1 && gROOT->ProcessLineFast("TProof::gProof;")) { if (gROOT->GetListOfProofs()->LastIndex() != -1 && gROOT->ProcessLineFast("gProof;")) {
gROOT->ProcessLineFast("delete TProof::gProof ;") ; gROOT->ProcessLineFast("delete gProof ;") ;
} }
} else { } else {
ooccoutI((TObject*)NULL,Generation) << "RooStudyManager: No global Proof objects. No connections closed." << endl ; ooccoutI((TObject*)NULL,Generation) << "RooStudyManager: No global Proof objects. No connections closed." << endl ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment