Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:05:18

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