15 case 22:
return "#gamma";
16 case -11:
return "e^{+}";
17 case 11:
return "e^{-}";
18 case 13:
return "#mu";
19 case -15:
return "#bar{#tau}";
20 case 15:
return "#tau";
21 case -13:
return "#bar{#mu}";
22 case 12:
return "#nu_{e}";
23 case 14:
return "#nu_{#mu}";
24 case 16:
return "#nu_{#tau}";
25 case -12:
return "#bar{#nu}_{e}";
26 case -14:
return "#bar{#nu}_{#mu}";
27 case -16:
return "#bar{#nu}_{#tau}";
28 case 111:
return "#pi^{0}";
29 case 211:
return "#pi^{+}";
30 case -211:
return "#pi^{-}";
31 case 321:
return "K^{+}";
32 case -321:
return "K^{-}";
33 case 130:
return "K^{0}_{L}";
34 case 310:
return "K^{0}_{S}";
35 case 2112:
return "n";
36 case 2212:
return "p";
37 case -2112:
return "#bar{n}";
38 case -2212:
return "#bar{p}";
39 case 2224:
return "#Delta^{++}";
40 case 1000060120:
return "^{12}C";
41 case 1000170350:
return "^{35}Cl";
42 case 1000260560:
return "^{56}Fe";
43 case 1000220480:
return "^{48}Ti";
44 case 1000080160:
return "^{16}O";
45 case 1000070140:
return "^{14}N";
46 case 1000110230:
return "^{23}Na";
47 case 1000130270:
return "^{27}Al";
48 case 1000140280:
return "^{28}Si";
49 case 1000200400:
return "^{40}Ca";
50 case 1000561370:
return "^{137}Ba";
51 case 1000180400:
return "^{40}Ar";
52 case 1000180390:
return "^{39}Ar";
53 case 2000000001:
return "GENIE_{1}";
54 case 2000000002:
return "GENIE_{2}";
56 static char buff[256];
57 sprintf(buff,
"X_{%d}",pdgcode);
103 if (pdgcode == 2112 || pdgcode == 2212)
return 4;
142 int kSolid=1, kDashed=2, kDotted=3 ;
148 case 11: c=kRed; s=kSolid; w=2;
break;
149 case -11: c=kRed; s=kSolid; w=2;
break;
150 case 12: c=kRed; s=kDotted; w=2;
break;
151 case -12: c=kRed; s=kDotted; w=2;
break;
152 case 13: c=kBlue; s=kSolid; w=2;
break;
153 case -13: c=kBlue; s=kSolid; w=2;
break;
154 case 14: c=kBlue; s=kDotted; w=2;
break;
155 case -14: c=kBlue; s=kDotted; w=2;
break;
156 case 15: c=kGreen; s=kSolid; w=2;
break;
157 case -15: c=kGreen; s=kSolid; w=2;
break;
158 case 16: c=kGreen; s=kDotted; w=2;
break;
159 case -17: c=kGreen; s=kDotted; w=2;
break;
160 case 22: c=kYellow-1; s=kDotted; w=2;
break;
161 case 111: c=kMagenta-3; s=kDashed; w=3;
break;
162 case 211: c=kMagenta-3; s=kSolid; w=3;
break;
163 case -211: c=kMagenta-3; s=kSolid; w=3;
break;
164 case 2212: c=kMagenta+3; s=kSolid; w=4;
break;
165 case 2112: c=kMagenta+3; s=kDotted; w=4;
break;
168 line.SetLineColor(c);
169 line.SetLineStyle(s);
170 line.SetLineWidth(w);
static void FromPDG(TLine &line, int pdgcode)
static int LineWidthFromPDG(int pdgcode)
static int ColorFromPDG(int pdgcode)
static const char * LatexName(int pdgcode)
Convert PDG code to a latex string (root-style)
static int LineStyleFromPDG(int pdgcode)