CMS 3D CMS Logo

TrajectoryStopReasons.h
Go to the documentation of this file.
1 #ifndef TRAJECTORYSTOPREASONS_H
2 #define TRAJECTORYSTOPREASONS_H
3 
4 #include <string>
5 
6 enum class StopReason {
7  UNINITIALIZED = 0,
8  MAX_HITS = 1,
9  MAX_LOST_HITS = 2,
12  MIN_PT = 5,
14  LOOPER = 7,
17  SEED_EXTENSION = 10,
18  SIZE =
19  12, // This gives the number of the stopping reasons. The cound needs to be manually maintained, and should be 2 + the last value above .
20  NOT_STOPPED = 255 // this is the max allowed since it will be streamed as type uint8_t
21 };
22 
23 // to be kept in synch w/ the above enum ;)
24 namespace StopReasonName {
25  static const std::string StopReasonName[] = {
26  "UNINITIALIZED", // 0
27  "MAX_HITS", // 1
28  "MAX_LOST_HITS", // 2
29  "MAX_CONSECUTIVE_LOST_HITS", // 3
30  "LOST_HIT_FRACTION", // 4
31  "MIN_PT", // 5
32  "CHARGE_SIGNIFICANCE", // 6
33  "LOOPER", // 7
34  "MAX_CCC_LOST_HITS", // 8
35  "NO_SEGMENTS_FOR_VALID_LAYERS", // 9
36  "SEED_EXTENSION", // 10
37  "NOT_STOPPED" // 11 (be careful, NOT_STOPPED needs to be the last,
38  // its index differs from the enumeration value)
39  };
40 };
41 
42 #endif
StopReason::MAX_CCC_LOST_HITS
StopReasonName
Definition: TrajectoryStopReasons.h:24
StopReason::CHARGE_SIGNIFICANCE
StopReason::LOST_HIT_FRACTION
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
StopReason::MAX_CONSECUTIVE_LOST_HITS
StopReason::MIN_PT
StopReason::MAX_HITS
StopReason::SIZE
StopReason::NOT_STOPPED
StopReason::UNINITIALIZED
StopReason::SEED_EXTENSION
StopReason
StopReason
Definition: TrajectoryStopReasons.h:6
StopReason::MAX_LOST_HITS
StopReason::NO_SEGMENTS_FOR_VALID_LAYERS
StopReason::LOOPER