Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 10:51:28

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   static const std::string StopReasonName[] = {
0026       "UNINITIALIZED",                 //  0
0027       "MAX_HITS",                      //  1
0028       "MAX_LOST_HITS",                 //  2
0029       "MAX_CONSECUTIVE_LOST_HITS",     //  3
0030       "LOST_HIT_FRACTION",             //  4
0031       "MIN_PT",                        //  5
0032       "CHARGE_SIGNIFICANCE",           //  6
0033       "LOOPER",                        //  7
0034       "MAX_CCC_LOST_HITS",             //  8
0035       "NO_SEGMENTS_FOR_VALID_LAYERS",  //  9
0036       "SEED_EXTENSION",                // 10
0037       "NOT_STOPPED"                    // 11 (be careful, NOT_STOPPED needs to be the last,
0038                                        //     its index differs from the enumeration value)
0039   };
0040 };
0041 
0042 #endif