CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrajectoryStopReasons.h
Go to the documentation of this file.
1 #ifndef TRAJECTORYSTOPREASONS_H
2 #define TRAJECTORYSTOPREASONS_H
3 
4 enum class StopReason {
5  UNINITIALIZED = 0,
6  MAX_HITS = 1,
7  MAX_LOST_HITS = 2,
10  MIN_PT = 5,
12  LOOPER = 7,
15  SEED_EXTENSION = 10,
16  SIZE = 12, // This gives the number of the stopping reasons. The cound needs to be manually maintained, and should be 2 + the last value above .
17  NOT_STOPPED = 255 // this is the max allowed since it will be streamed as type uint8_t
18 };
19 
20 
21 // to be kept in synch w/ the above enum ;)
22 namespace StopReasonName {
23  static const std::string StopReasonName[] = {
24  "UNINITIALIZED", // 0
25  "MAX_HITS", // 1
26  "MAX_LOST_HITS", // 2
27  "MAX_CONSECUTIVE_LOST_HITS", // 3
28  "LOST_HIT_FRACTION", // 4
29  "MIN_PT", // 5
30  "CHARGE_SIGNIFICANCE", // 6
31  "LOOPER", // 7
32  "MAX_CCC_LOST_HITS", // 8
33  "NO_SEGMENTS_FOR_VALID_LAYERS", // 9
34  "SEED_EXTENSION", // 10
35  "NOT_STOPPED" // 11 (be careful ...)
36  };
37 };
38 
39 #endif
static const std::string StopReasonName[]