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