Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-05-23 03:13:04

0001 #ifndef TRAJECTORYSTOPREASONS_H
0002 #define TRAJECTORYSTOPREASONS_H
0003 
0004 #include <cstdint>
0005 #include <string>
0006 
0007 enum class StopReason : uint8_t {
0008   UNINITIALIZED = 0,
0009   MAX_HITS = 1,
0010   MAX_LOST_HITS = 2,
0011   MAX_CONSECUTIVE_LOST_HITS = 3,
0012   LOST_HIT_FRACTION = 4,
0013   MIN_PT = 5,
0014   CHARGE_SIGNIFICANCE = 6,
0015   LOOPER = 7,
0016   MAX_CCC_LOST_HITS = 8,
0017   NO_SEGMENTS_FOR_VALID_LAYERS = 9,
0018   SEED_EXTENSION = 10,
0019   SIZE =
0020       12,  // This gives the number of the stopping reasons. The cound needs to be manually maintained, and should be 2 + the last value above .
0021   NOT_STOPPED = 255  // this is the max allowed since it will be streamed as type uint8_t
0022 };
0023 
0024 // to be kept in synch w/ the above enum ;)
0025 namespace StopReasonName {
0026   extern const std::string StopReasonName[];
0027 };
0028 
0029 #endif