src
DataFormats
TrackSoA
interface
TrackDefinitions.h
Go to the documentation of this file.
1
#ifndef DataFormats_Track_interface_TrackDefinitions_h
2
#define DataFormats_Track_interface_TrackDefinitions_h
3
#include <string>
4
#include <algorithm>
5
#include <stdexcept>
6
#include <cstdint>
7
8
namespace
pixelTrack
{
9
10
enum class
Quality
: uint8_t {
bad
= 0,
edup
,
dup
,
loose
,
strict
,
tight
,
highPurity
,
notQuality
};
11
constexpr
uint32_t
qualitySize
{uint8_t(
Quality::notQuality
)};
12
constexpr
std::string_view
qualityName
[
qualitySize
]{
"bad"
,
"edup"
,
"dup"
,
"loose"
,
"strict"
,
"tight"
,
"highPurity"
};
13
inline
Quality
qualityByName
(std::string_view
name
) {
14
auto
qp =
std::find
(
qualityName
,
qualityName
+
qualitySize
,
name
) -
qualityName
;
15
auto
ret
=
static_cast<
Quality
>
(qp);
16
17
if
(
ret
==
pixelTrack::Quality::notQuality
)
18
throw
std::invalid_argument(
std::string
(
name
) +
" is not a pixelTrack::Quality!"
);
19
20
return
ret
;
21
}
22
23
#ifdef GPU_SMALL_EVENTS
24
// kept for testing and debugging
25
constexpr
uint32_t
maxNumber
() {
return
2 * 1024; }
26
#else
27
// tested on MC events with 55-75 pileup events
28
constexpr
uint32_t
maxNumber
() {
return
32 * 1024; }
29
#endif
30
31
}
// namespace pixelTrack
32
33
#endif
pixelTrack::Quality::notQuality
pixelTrack::Quality::strict
pixelTrack::Quality
Quality
Definition:
PixelTrackUtilities.h:12
pixelTrack::qualityByName
Quality qualityByName(std::string const &name)
Definition:
PixelTrackUtilities.h:15
runTheMatrix.ret
ret
prodAgent to be discontinued
Definition:
runTheMatrix.py:755
pixelTrack
Definition:
PixelTrackUtilities.h:10
pixelTrack::Quality::edup
pixelTrack::qualityName
const std::string qualityName[qualitySize]
Definition:
PixelTrackUtilities.h:14
pixelTrack::maxNumber
constexpr uint32_t maxNumber()
Definition:
TrackDefinitions.h:28
ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr
if constexpr(n > 3)
Definition:
BrokenLine.h:164
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition:
FindCaloHit.cc:19
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
pixelTrack::Quality::dup
pixelTrack::qualitySize
constexpr uint32_t qualitySize
Definition:
PixelTrackUtilities.h:13
pixelTrack::Quality::tight
pixelTrack::Quality::highPurity
pixelTrack::Quality::loose
pixelTrack::Quality::bad
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
Generated for CMSSW Reference Manual by
1.8.14