How To Install root-roofit on CentOS 8

root-roofit is ROOT extension for modeling expected distributions - toolkit

Introduction

In this tutorial we learn how to install root-roofit on CentOS 8.

What is root-roofit

The RooFit packages provide a toolkit for modeling the expected distribution of events in a physics analysis. Models can be used to perform likelihood fits, produce plots, and generate “toy Monte Carlo” samples for various studies. The RooFit tools are integrated with the object-oriented and interactive ROOT graphical environment. RooFit has been developed for the BaBar collaboration, a high energy physics experiment at the Stanford Linear Accelerator Center, and is primarily targeted to the high-energy physicists using the ROOT analysis environment, but the general nature of the package make it suitable for adoption in different disciplines as well. This package contains the RooFit toolkit classes.

We can use yum or dnf to install root-roofit on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install root-roofit.

Install root-roofit on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install root-roofit using dnf by running the following command:

sudo dnf -y install root-roofit

Install root-roofit on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install root-roofit using yum by running the following command:

sudo yum -y install root-roofit

How To Uninstall root-roofit on CentOS 8

To uninstall only the root-roofit package we can use the following command:

sudo dnf remove root-roofit

root-roofit Package Contents on CentOS 8

/usr/include/root/Roo2DKeysPdf.h
/usr/include/root/RooArgusBG.h
/usr/include/root/RooBCPEffDecay.h
/usr/include/root/RooBCPGenDecay.h
/usr/include/root/RooBDecay.h
/usr/include/root/RooBMixDecay.h
/usr/include/root/RooBernstein.h
/usr/include/root/RooBifurGauss.h
/usr/include/root/RooBlindTools.h
/usr/include/root/RooBreitWigner.h
/usr/include/root/RooBukinPdf.h
/usr/include/root/RooCBShape.h
/usr/include/root/RooCFunction1Binding.h
/usr/include/root/RooCFunction2Binding.h
/usr/include/root/RooCFunction3Binding.h
/usr/include/root/RooCFunction4Binding.h
/usr/include/root/RooChebychev.h
/usr/include/root/RooChi2MCSModule.h
/usr/include/root/RooChiSquarePdf.h
/usr/include/root/RooDecay.h
/usr/include/root/RooDstD0BG.h
/usr/include/root/RooExponential.h
/usr/include/root/RooFunctor1DBinding.h
/usr/include/root/RooFunctorBinding.h
/usr/include/root/RooGExpModel.h
/usr/include/root/RooGamma.h
/usr/include/root/RooGaussModel.h
/usr/include/root/RooGaussian.h
/usr/include/root/RooHistConstraint.h
/usr/include/root/RooIntegralMorph.h
/usr/include/root/RooJeffreysPrior.h
/usr/include/root/RooJohnson.h
/usr/include/root/RooKeysPdf.h
/usr/include/root/RooLandau.h
/usr/include/root/RooLognormal.h
/usr/include/root/RooMathCoreReg.h
/usr/include/root/RooMomentMorph.h
/usr/include/root/RooMomentMorphFunc.h
/usr/include/root/RooMomentMorphFuncND.h
/usr/include/root/RooMomentMorphND.h
/usr/include/root/RooMultiBinomial.h
/usr/include/root/RooNDKeysPdf.h
/usr/include/root/RooNonCPEigenDecay.h
/usr/include/root/RooNovosibirsk.h
/usr/include/root/RooParamHistFunc.h
/usr/include/root/RooParametricStepFunction.h
/usr/include/root/RooPoisson.h
/usr/include/root/RooPolynomial.h
/usr/include/root/RooStepFunction.h
/usr/include/root/RooTFnBinding.h
/usr/include/root/RooTFnPdfBinding.h
/usr/include/root/RooTMathReg.h
/usr/include/root/RooUnblindCPAsymVar.h
/usr/include/root/RooUnblindOffset.h
/usr/include/root/RooUnblindPrecision.h
/usr/include/root/RooUnblindUniform.h
/usr/include/root/RooUniform.h
/usr/include/root/RooVoigtian.h
/usr/lib/.build-id
/usr/lib/.build-id/03/34cc8d67b94597e84f8d96d5986c24ec6b65b8
/usr/lib64/root/libRooFit.rootmap
/usr/lib64/root/libRooFit.so
/usr/lib64/root/libRooFit.so.6.22
/usr/lib64/root/libRooFit.so.6.22.08
/usr/lib64/root/libRooFit_rdict.pcm

References

Summary

In this tutorial we learn how to install root-roofit on CentOS 8 using yum and dnf.