src
RecoTracker
MkFitCore
interface
cms_common_macros.h
Go to the documentation of this file.
1
#ifndef RecoTracker_MkFitCore_interface_cms_common_macros_h
2
#define RecoTracker_MkFitCore_interface_cms_common_macros_h
3
4
#ifdef MKFIT_STANDALONE
5
#define CMS_SA_ALLOW
6
#else
7
#include "
FWCore/Utilities/interface/thread_safety_macros.h
"
8
#include "
FWCore/Utilities/interface/isFinite.h
"
9
#endif
10
11
namespace
mkfit
{
12
13
constexpr
bool
isFinite
(
float
x) {
14
#ifdef MKFIT_STANDALONE
15
const
unsigned
int
mask
= 0x7f800000;
16
union
{
17
unsigned
int
l
;
18
float
d
;
19
}
v
= {.d =
x
};
20
return
(
v
.l &
mask
) !=
mask
;
21
#else
22
return
edm::isFinite
(
x
);
23
#endif
24
}
25
26
}
// namespace mkfit
27
28
#endif
ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::mask
constexpr uint32_t mask
Definition:
PixelClustering.h:35
isFinite.h
mkfit
Definition:
MkFitEventOfHits.h:6
thread_safety_macros.h
findQualityFiles.v
v
Definition:
findQualityFiles.py:179
ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr
if constexpr(n > 3)
Definition:
BrokenLine.h:164
edm::isFinite
constexpr bool isFinite(T x)
ztail.d
d
Definition:
ztail.py:151
x
float x
Definition:
beamSpotDipStandalone.cc:55
MainPageGenerator.l
l
Definition:
MainPageGenerator.py:429
mkfit::isFinite
constexpr bool isFinite(float x)
Definition:
cms_common_macros.h:13
Generated for CMSSW Reference Manual by
1.8.14