CMS 3D CMS Logo

TrajectoryStopReasons.h
Go to the documentation of this file.
1 #ifndef TRAJECTORYSTOPREASONS_H
2 #define TRAJECTORYSTOPREASONS_H
3 
4 #include <cstdint>
5 #include <string>
6 
7 enum class StopReason : uint8_t {
8  UNINITIALIZED = 0,
9  MAX_HITS = 1,
10  MAX_LOST_HITS = 2,
13  MIN_PT = 5,
15  LOOPER = 7,
18  SEED_EXTENSION = 10,
19  SIZE =
20  12, // This gives the number of the stopping reasons. The cound needs to be manually maintained, and should be 2 + the last value above .
21  NOT_STOPPED = 255 // this is the max allowed since it will be streamed as type uint8_t
22 };
23 
24 // to be kept in synch w/ the above enum ;)
25 namespace StopReasonName {
26  extern const std::string StopReasonName[];
27 };
28 
29 #endif