Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[skip-ci] Fix a few typos in roofit #8508

Merged
merged 1 commit into from
Jun 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion roofit/roofit/src/Roo2DKeysPdf.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ Int_t Roo2DKeysPdf::loadDataSet(RooDataSet& data, TString options)
}
if(bad)
{
cout << "Roo2DKeysPdf::Roo2DKeysPdf Unable to initilize object; incompatible RooDataSet doesn't contain"<<endl;
cout << "Roo2DKeysPdf::Roo2DKeysPdf Unable to initialize object; incompatible RooDataSet doesn't contain"<<endl;
cout << " all of the RooAbsReal arguments"<<endl;
return 1;
}
Expand Down
4 changes: 2 additions & 2 deletions roofit/roofit/src/RooBukinPdf.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ClassImp(RooBukinPdf);

////////////////////////////////////////////////////////////////////////////////
/// Construct a Bukin PDF.
/// \param name The name of the PDF for RooFit's bookeeping.
/// \param name The name of the PDF for RooFit's bookkeeping.
/// \param title The title for e.g. plotting it.
/// \param _x The variable.
/// \param _Xp The peak position.
Expand Down Expand Up @@ -141,7 +141,7 @@ Double_t RooBukinPdf::evaluate() const
}

////////////////////////////////////////////////////////////////////////////////
/// Compute multiple values of Bukin distribution.
/// Compute multiple values of Bukin distribution.
RooSpan<double> RooBukinPdf::evaluateSpan(RooBatchCompute::RunContext& evalData, const RooArgSet* normSet) const {
return RooBatchCompute::dispatch->computeBukin(this, evalData, x->getValues(evalData, normSet), Xp->getValues(evalData, normSet), sigp->getValues(evalData, normSet), xi->getValues(evalData, normSet), rho1->getValues(evalData, normSet), rho2->getValues(evalData, normSet));
}
3 changes: 1 addition & 2 deletions roofit/roofit/src/RooExponential.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ RooExponential::RooExponential(const RooExponential& other, const char* name) :
}

////////////////////////////////////////////////////////////////////////////////
///cout << "exp(x=" << x << ",c=" << c << ")=" << exp(c*x) << endl ;

Double_t RooExponential::evaluate() const{
return exp(c*x);
Expand Down Expand Up @@ -88,7 +87,7 @@ Double_t RooExponential::analyticalIntegral(Int_t code, const char* rangeName) c
}

////////////////////////////////////////////////////////////////////////////////
/// Compute multiple values of Exponential distribution.
/// Compute multiple values of Exponential distribution.
RooSpan<double> RooExponential::evaluateSpan(RooBatchCompute::RunContext& evalData, const RooArgSet* normSet) const {
return RooBatchCompute::dispatch->computeExponential(this, evalData, x->getValues(evalData, normSet), c->getValues(evalData, normSet));
}
Expand Down
22 changes: 11 additions & 11 deletions roofit/roofit/src/RooLagrangianMorphFunc.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/** \class RooLagrangianMorphFunc
\ingroup Roofit
Class RooLagrangianMorphing is a implementation of the method of Effective
Lagrangian Morphing, descibed in ATL-PHYS-PUB-2015-047.
Lagrangian Morphing, described in ATL-PHYS-PUB-2015-047.
Effective Lagrangian Morphing is a method to construct a continuous signal
model in the coupling parameter space. Basic assumption is that shape and
cross section of a physical distribution is proportional to it's
Expand Down Expand Up @@ -233,7 +233,7 @@ inline SuperFloat invertMatrix(const Matrix &matrix, Matrix &inverse) {
::writeMatrixToStreamT(matrix, ss);
cxcoutP(Eval) << ss.str << std::endl;
}
// backsubstitute to get the inverse
// back-substitute to get the inverse
lu_substitute(lu, pm, inverse);
} catch (boost::numeric::ublas::internal_logic &error) {
// coutE(Eval) << "boost::numberic::ublas error: matrix is not invertible!"
Expand Down Expand Up @@ -461,7 +461,7 @@ void readValues(std::map<const std::string, T> & myMap,
///////////////////////////////////////////////////////////////////////////////
/// retrieve the param_hists file and return a map of the parameter values
/// by providing a list of names, only the param_hists of those subfolders are
/// read leaving the list empty is interpreted as meaning 'read everyting'
/// read leaving the list empty is interpreted as meaning 'read everything'

template <class T>
void readValues(std::map<const std::string, std::map<const std::string, T>> & inputParameters,
Expand Down Expand Up @@ -2050,7 +2050,7 @@ void RooLagrangianMorphFunc::Config::setVertices(
//}

////////////////////////////////////////////////////////////////////////////////
/// set values to paramerter set (-?-)
/// set values to parameter set (-?-)

void RooLagrangianMorphFunc::Config::append(
RooLagrangianMorphFunc::ParamSet &set, const char *str, double val) {
Expand Down Expand Up @@ -2121,7 +2121,7 @@ void RooLagrangianMorphFunc::printSamples() const {
}

////////////////////////////////////////////////////////////////////////////////
/// print the current phyiscs values
/// print the current physics values

void RooLagrangianMorphFunc::printPhysics() const {
for (const auto &sample : this->_sampleMap) {
Expand Down Expand Up @@ -3042,7 +3042,7 @@ int RooLagrangianMorphFunc::nPolynomials() const {
}

////////////////////////////////////////////////////////////////////////////////
/// print the contributing smaples and their respective weights
/// print the contributing samples and their respective weights

void RooLagrangianMorphFunc::printEvaluation() const {
auto mf = std::make_unique<RooRealSumFunc>(*(this->getFunc()));
Expand Down Expand Up @@ -3194,7 +3194,7 @@ Double_t RooLagrangianMorphFunc::expectedEvents(const RooArgSet &nset) const {
return createPdf()->expectedEvents(&nset);
}
////////////////////////////////////////////////////////////////////////////////
/// return the expected uncertainity for the current parameter set
/// return the expected uncertainty for the current parameter set

double RooLagrangianMorphFunc::expectedUncertainty() const {
RooRealVar *observable = this->getObservable();
Expand Down Expand Up @@ -3266,7 +3266,7 @@ void RooLagrangianMorphFunc::printCouplings() const {
}

////////////////////////////////////////////////////////////////////////////////
/// retrive the lsit of bin boundaries
/// retrieve the list of bin boundaries

std::list<Double_t> *
RooLagrangianMorphFunc::binBoundaries(RooAbsRealLValue &obs, Double_t xlo,
Expand All @@ -3275,7 +3275,7 @@ RooLagrangianMorphFunc::binBoundaries(RooAbsRealLValue &obs, Double_t xlo,
}

////////////////////////////////////////////////////////////////////////////////
/// retrive the sample Hint
/// retrieve the sample Hint

std::list<Double_t> *
RooLagrangianMorphFunc::plotSamplingHint(RooAbsRealLValue &obs, Double_t xlo,
Expand All @@ -3302,7 +3302,7 @@ Double_t RooLagrangianMorphFunc::evaluate() const {
if (pdf)
return this->_scale * pdf->getVal(_curNormSet);
else
std::cerr << "unable to aquire in-built function!" << std::endl;
std::cerr << "unable to acquire in-built function!" << std::endl;
return 0.;
}

Expand Down Expand Up @@ -3388,7 +3388,7 @@ TMatrixD RooLagrangianMorphFunc::getInvertedMatrix() const {
}

////////////////////////////////////////////////////////////////////////////////
/// Reterieve the condition of the coefficient matrix. If the condition number
/// Retrieve the condition of the coefficient matrix. If the condition number
/// is very large, then the matrix is ill-conditioned and is almost singular.
/// The computation of the inverse is prone to large numerical errors

Expand Down
2 changes: 1 addition & 1 deletion roofit/roofit/src/RooParamHistFunc.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* \f]
*
* The \f$ \gamma_i \f$ can therefore be used to parametrise statistical uncertainties of the histogram
* template. In conjuction with a constraint term, this can be used to implement the Barlow-Beeston method.
* template. In conjunction with a constraint term, this can be used to implement the Barlow-Beeston method.
* The constraint can be implemented using RooHistConstraint.
*
* See also the tutorial rf709_BarlowBeeston.C
Expand Down