Skip to content
Snippets Groups Projects
Commit 7932ad26 authored by Kim Albertsson's avatar Kim Albertsson Committed by Lorenzo Moneta
Browse files

[TMVA] CV modernise -- use auto when type is obvious

parent 610ef010
No related branches found
No related tags found
No related merge requests found
......@@ -131,7 +131,7 @@ void TMVA::CrossValidationResult::Print() const
//_______________________________________________________________________
TCanvas* TMVA::CrossValidationResult::Draw(const TString name) const
{
TCanvas *c=new TCanvas(name.Data());
auto *c = new TCanvas(name.Data());
fROCCurves->Draw("AL");
fROCCurves->GetXaxis()->SetTitle(" Signal Efficiency ");
fROCCurves->GetYaxis()->SetTitle(" Background Rejection ");
......@@ -531,7 +531,7 @@ void TMVA::CrossValidation::Evaluate()
// Feed EventToFold mapping used when random fold assignments are used
// (when splitExpr="").
IMethod *method_interface = fFactory->GetMethod(fDataLoader.get()->GetName(), methodTitle);
MethodCrossValidation *method = dynamic_cast<MethodCrossValidation *>(method_interface);
auto *method = dynamic_cast<MethodCrossValidation *>(method_interface);
method->fEventToFoldMapping = fSplit.get()->fEventToFoldMapping;
}
......
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