quietHistFit.h
Go to the documentation of this file.
1 // quietHistFit.h
2 //
3 // David Adams
4 // May 2018
5 //
6 // Call TF1::Fit after suppressing Root logging.
7 // ph - histogram to be fit
8 // fopt - Root fitting options
9 // Return value is fit status. Include "S" in fopt to get IsValid
10 // from the fit result pointer.
11 
12 #ifndef quietHistFit_H
13 #define quietHistFit_H
14 
15 #include <string>
16 
17 class TH1;
18 class TF1;
19 
20 // Return ph->Fit(fname, fopt)
21 int quietHistFit(TH1* ph, std::string fname, std::string fopt);
22 
23 // Return ph->Fit(pf, fopt)
24 int quietHistFit(TH1* ph, TF1* pf, std::string fopt);
25 
26 #endif
std::string string
Definition: nybbler.cc:12
int quietHistFit(TH1 *ph, std::string fname, std::string fopt)