ATLAS Offline Software
Loading...
Searching...
No Matches
SmallRJetPileupLabel Namespace Reference

Enumerations

enum  TypeEnum : int {
  HS = 0 , MixHS , HSPU , ITPU ,
  MixPU , OOTPU , Unknown
}

Functions

int enumToInt (const TypeEnum type)
TypeEnum stringToEnum (const TString &name)

Enumeration Type Documentation

◆ TypeEnum

Enumerator
HS 
MixHS 
HSPU 
ITPU 
MixPU 
OOTPU 
Unknown 

Definition at line 13 of file SmallRJetPileupLabelEnum.h.

14 {
15 HS = 0, // HS match
16 MixHS, // multiple HS matches
17 HSPU, // HS and PU matches
18 ITPU, // In time PU match
19 MixPU, // Multiple PU matches
20 OOTPU, // Out of time PU match
21 Unknown, // Other
22 };

Function Documentation

◆ enumToInt()

int SmallRJetPileupLabel::enumToInt ( const TypeEnum type)
inline

Definition at line 24 of file SmallRJetPileupLabelEnum.h.

25 {
26 return static_cast<std::underlying_type_t< TypeEnum >>(type);
27 }

◆ stringToEnum()

TypeEnum SmallRJetPileupLabel::stringToEnum ( const TString & name)
inline

Definition at line 29 of file SmallRJetPileupLabelEnum.h.

30 {
31#define TRY(STRING) if (name.EqualTo(#STRING, TString::kIgnoreCase)) return STRING
32 TRY(HS);
33 TRY(MixHS);
34 TRY(HSPU);
35 TRY(ITPU);
36 TRY(MixPU);
37 TRY(OOTPU);
38 TRY(Unknown);
39#undef TRY
40 return Unknown;
41 }
#define TRY(STRING)