Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RF] Move RooFit headers not starting with
Roo
in RooFit directory
In the v6.26 development cycle cycle, some RooFit helper header files whose names don't start with the `Roo` prefix sneaked into the RooFitCore library. These headers have the overly generic names `Floats.h` and `UniqueId.h`, which calls for trouble in environments where the ROOT headers are directly installed in the main system include path (most Linux distributions). To prevent any possible issues, this commit proposes and follows new conventions for RooFit headers: * Installed RooFit headers must start with `Roo*` or must be located in a subdirectory starting with `Roo*` (e.g. RooFit or RooStats). * Similarly, if the class name doesn't start with Roo, it has to go in a `Roo*` namespace (usually `RooFit`) * Free functions always need to go in this namespace * For implmentation details that we can't avoid installing, we can use a `Roo*::Detail` namespace like we have with `ROOT::Detail` (same with `Experimental`) We should also keep in mind what we established in PR #9078: * `inc/` is for installed headers * `res/` is for headers that are only used at compile time of other ROOT components * Headers only used within a library go to `src/` This means that there is no need in specifiying the headers to install manually in `roofit/rofitcore/CMakeLists.txt`. We can glob for all the headers fulfilling the criteria above.
- Loading branch information
1 parent
6f74191
commit c9aa695
Showing
44 changed files
with
230 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Project: RooFit | ||
* Authors: | ||
* Lydia Brenner (lbrenner@cern.ch), Carsten Burgard (cburgard@cern.ch) | ||
* Katharina Ecker (kecker@cern.ch), Adam Kaluza (akaluza@cern.ch) | ||
* | ||
* Copyright (c) 2021, CERN | ||
* | ||
* Redistribution and use in source and binary forms, | ||
* with or without modification, are permitted according to the terms | ||
* listed in LICENSE (http://roofit.sourceforge.net/license.txt) | ||
*/ | ||
|
||
#ifndef roofit_roofitcore_RooFit_Floats_h | ||
#define roofit_roofitcore_RooFit_Floats_h | ||
|
||
#ifdef USE_UBLAS | ||
#include <boost/multiprecision/cpp_dec_float.hpp> | ||
#endif | ||
|
||
#include <limits> | ||
|
||
namespace RooFit { | ||
|
||
#ifdef USE_UBLAS | ||
typedef boost::multiprecision::number<boost::multiprecision::cpp_dec_float<100>> SuperFloat; | ||
typedef std::numeric_limits<SuperFloat> SuperFloatPrecision; | ||
#else | ||
typedef double SuperFloat; | ||
typedef std::numeric_limits<double> SuperFloatPrecision; | ||
#endif | ||
|
||
} // namespace RooFit | ||
|
||
#endif |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.