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  extern const std::string StopReasonName[];
26 };
27 
28 #endif