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
7
namespace
pixelTrack
{
8
9
enum class
Quality
: uint8_t {
bad
= 0,
edup
,
dup
,
loose
,
strict
,
tight
,
highPurity
,
notQuality
};
10
constexpr
uint32_t
qualitySize
{uint8_t(
Quality::notQuality
)};
11
constexpr
std::string_view
qualityName
[
qualitySize
]{
"bad"
,
"edup"
,
"dup"
,
"loose"
,
"strict"
,
"tight"
,
"highPurity"
};
12
inline
Quality
qualityByName
(std::string_view
name
) {
13
auto
qp =
std::find
(
qualityName
,
qualityName
+
qualitySize
,
name
) -
qualityName
;
14
auto
ret
=
static_cast<
Quality
>
(qp);
15
16
if
(
ret
==
pixelTrack::Quality::notQuality
)
17
throw
std::invalid_argument(
std::string
(
name
) +
" is not a pixelTrack::Quality!"
);
18
19
return
ret
;
20
}
21
22
#ifdef GPU_SMALL_EVENTS
23
// kept for testing and debugging
24
constexpr
uint32_t
maxNumber
() {
return
2 * 1024; }
25
#else
26
// tested on MC events with 55-75 pileup events
27
constexpr
uint32_t
maxNumber
() {
return
32 * 1024; }
28
#endif
29
30
}
// namespace pixelTrack
31
32
#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:759
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:27
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