DataFormats
Math
interface
constexpr_cmath.h
Go to the documentation of this file.
1
#ifndef DataFormats_Math_constexpr_cmath_h
2
#define DataFormats_Math_constexpr_cmath_h
3
4
#include <cstdint>
5
6
namespace
reco
{
7
constexpr int32_t
ceil
(
float
num
) {
8
return
(static_cast<float>(static_cast<int32_t>(
num
)) ==
num
) ? static_cast<int32_t>(
num
)
9
: static_cast<int32_t>(
num
) + ((
num
> 0) ? 1 : 0);
10
}
11
};
// namespace reco
12
#endif
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:46
reco::ceil
constexpr int32_t ceil(float num)
Definition:
constexpr_cmath.h:7
EgammaValidation_cff.num
num
Definition:
EgammaValidation_cff.py:33
Generated for CMSSW Reference Manual by
1.8.16