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

Enumerations

enum  TypeEnum {
  UNKNOWN =0 , tqqb , Wqq , Zbb ,
  Zcc , Zqq , Wqq_From_t , other_From_t ,
  other_From_V , notruth , qcd , Hbb ,
  Hcc , other_From_H , HtautauEl , HtautauMu ,
  HtautauHad , ZtautauEl , ZtautauMu , ZtautauHad
}

Functions

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

Enumeration Type Documentation

◆ TypeEnum

Enumerator
UNKNOWN 
tqqb 
Wqq 
Zbb 
Zcc 
Zqq 
Wqq_From_t 
other_From_t 
other_From_V 
notruth 
qcd 
Hbb 
Hcc 
other_From_H 
HtautauEl 
HtautauMu 
HtautauHad 
ZtautauEl 
ZtautauMu 
ZtautauHad 

Definition at line 13 of file LargeRJetLabelEnum.h.

14 {
15 UNKNOWN=0, // Not tagged yet
16 tqqb, // fully-contained top->qqb
17 Wqq, // fully-contained W->qq
18 Zbb, // fully-contained Z->bb
19 Zcc, // fully-contained Z->cc
20 Zqq, // fully-contained Z->qq
21 Wqq_From_t, // fully-contained W->qq (also matched to top)
22 other_From_t, // matched to top
23 other_From_V, // matched to W/Z
24 notruth, // failed to truth-jet matching (pileup)
25 qcd, // not matched to top or W/Z (background jet)
26 Hbb, // fully-contained H->bb
27 Hcc, // fully-contained H->cc
28 other_From_H, // matched to H
29 HtautauEl, // fully-contained H->tautau, el
30 HtautauMu, // fully-contained H->tautau, mu
31 HtautauHad, // fully-contained H->tautau, had
32 ZtautauEl, // fully-contained Z->tautau, el
33 ZtautauMu, // fully-contained Z->tautau, mu
34 ZtautauHad, // fully-contained Z->tautau, had
35 };

Function Documentation

◆ enumToInt()

int LargeRJetTruthLabel::enumToInt ( const TypeEnum type)
inline

Definition at line 37 of file LargeRJetLabelEnum.h.

38 {
39 switch (type) {
40 case tqqb: return 1;
41 case Wqq: return 2;
42 case Zbb: return 3;
43 case Zcc: return 4;
44 case Zqq: return 5;
45 case Wqq_From_t: return 6;
46 case other_From_t: return 7;
47 case other_From_V: return 8;
48 case notruth: return 9;
49 case qcd: return 10;
50 case Hbb: return 11;
51 case Hcc: return 12;
52 case other_From_H: return 13;
53 case HtautauEl: return 14;
54 case HtautauMu: return 15;
55 case HtautauHad: return 16;
56 case ZtautauEl: return 17;
57 case ZtautauMu: return 18;
58 case ZtautauHad: return 19;
59 default: return 0;
60 }
61 }

◆ intToEnum()

TypeEnum LargeRJetTruthLabel::intToEnum ( const int type)
inline

Definition at line 63 of file LargeRJetLabelEnum.h.

64 {
65 switch (type) {
66 case 1: return tqqb;
67 case 2: return Wqq;
68 case 3: return Zbb;
69 case 4: return Zcc;
70 case 5: return Zqq;
71 case 6: return Wqq_From_t;
72 case 7: return other_From_t;
73 case 8: return other_From_V;
74 case 9: return notruth;
75 case 10: return qcd;
76 case 11: return Hbb;
77 case 12: return Hcc;
78 case 13: return other_From_H;
79 case 14: return HtautauEl;
80 case 15: return HtautauMu;
81 case 16: return HtautauHad;
82 case 17: return ZtautauEl;
83 case 18: return ZtautauMu;
84 case 19: return ZtautauHad;
85 default: return UNKNOWN;
86 }
87
88 }

◆ stringToEnum()

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

Definition at line 90 of file LargeRJetLabelEnum.h.

91 {
92#define TRY(STRING) if (name.EqualTo(#STRING, TString::kIgnoreCase)) return STRING
93 TRY(tqqb);
94 TRY(Wqq);
95 TRY(Zbb);
96 TRY(Zcc);
97 TRY(Zqq);
101 TRY(notruth);
102 TRY(qcd);
103 TRY(Hbb);
104 TRY(Hcc);
106 TRY(HtautauEl);
107 TRY(HtautauMu);
109 TRY(ZtautauEl);
110 TRY(ZtautauMu);
112#undef TRY
113 return UNKNOWN;
114 }
#define TRY(STRING)