CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
static const std::string StopReasonName[]