laura is hosted by Hepforge, IPPP Durham
Laura++  v1r0
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauFitter.cc
Go to the documentation of this file.
1 
2 // Copyright University of Warwick 2005 - 2013.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5 
6 // Authors:
7 // Thomas Latham
8 // John Back
9 // Paul Harrison
10 
16 #include "LauFitter.hh"
17 
18 #include "TVirtualFitter.h"
19 
20 TVirtualFitter* LauFitter::fitter( const TString& fitterString, Int_t maxPar )
21 {
22  // Returns a pointer to a singleton TVirtualFitter object.
23  // Creates the object the first time it is called.
24 
25  static TVirtualFitter* theFitter = 0;
26  if ( theFitter == 0 ) {
27  TVirtualFitter::SetDefaultFitter( fitterString );
28  theFitter = TVirtualFitter::Fitter( 0, maxPar );
29  }
30  return theFitter;
31 }
32 
File containing LauFitter namespace.
TVirtualFitter * fitter(const TString &fitterString="Minuit", Int_t maxPar=100)
Method that provides a pointer to a TVirtualFitter object.
Definition: LauFitter.cc:20