Skip to content

Commit

Permalink
Merge pull request #41458 from smuzaffar/llvm16-enum-fix
Browse files Browse the repository at this point in the history
Added extra Invalid = -1 enum to avoid llvm16 build errors
  • Loading branch information
cmsbuild authored Apr 30, 2023
2 parents d008462 + 0ef2861 commit 86b6f5f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
5 changes: 3 additions & 2 deletions CondFormats/L1TObjects/interface/L1GtDefinitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "DataFormats/L1GlobalTrigger/interface/L1GtDefinitions.h"

/// board types in GT
enum L1GtBoardType { GTFE, FDL, PSB, GMT, TCS, TIM, BoardNull };
enum L1GtBoardType { GTFE, FDL, PSB, GMT, TCS, TIM, BoardNull, L1GtBoardTypeInvalid = -1 };

struct L1GtBoardTypeStringToEnum {
const char* label;
Expand Down Expand Up @@ -62,7 +62,8 @@ enum L1GtPsbQuad {
HfQ,
BptxQ,
GtExternalQ,
PsbQuadNull
PsbQuadNull,
L1GtPsbQuadInvalid = -1
};

struct L1GtPsbQuadStringToEnum {
Expand Down
6 changes: 4 additions & 2 deletions DataFormats/L1GlobalTrigger/interface/L1GtDefinitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ enum L1GtConditionType {
TypeHfRingEtSums,
TypeBptx,
TypeExternal,
Type2corWithOverlapRemoval
Type2corWithOverlapRemoval,
L1GtConditionTypeInvalid = -1
};

/// condition categories
Expand All @@ -35,7 +36,8 @@ enum L1GtConditionCategory {
CondHfRingEtSums,
CondBptx,
CondExternal,
CondCorrelationWithOverlapRemoval
CondCorrelationWithOverlapRemoval,
L1GtConditionCategoryInvalid = -1
};

#endif
6 changes: 4 additions & 2 deletions L1Trigger/L1TGlobal/interface/GlobalDefinitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

namespace l1t {
/// board types in GT
enum L1GtBoardType { MP7, BoardNull };
enum L1GtBoardType { MP7, BoardNull, L1GtBoardTypeInvalid = -1 };

struct L1GtBoardTypeStringToEnum {
const char* label;
Expand Down Expand Up @@ -78,7 +78,8 @@ namespace l1t {
TypeAsymEt,
TypeAsymHt,
TypeAsymEtHF,
TypeAsymHtHF
TypeAsymHtHF,
GtConditionTypeInvalid = -1
};

struct GtConditionTypeStringToEnum {
Expand All @@ -100,6 +101,7 @@ namespace l1t {
CondCorrelationWithOverlapRemoval,
CondCorrelationThreeBody,
CondMuonShower,
GtConditionCategoryInvalid = -1
};

struct GtConditionCategoryStringToEnum {
Expand Down

0 comments on commit 86b6f5f

Please sign in to comment.