7 plot_type, output_label=
None):
9 if output_label
is None:
10 output_label = numer_label
11 if denom_label ==
"All" and numer_label !=
"L1":
12 output_description =
"Full Path"
14 output_description = numer_label
15 if denom_label ==
"All":
16 denom_description =
"# Gen #mu"
18 denom_description =
"# Gen #mu Matched to %s" % (denom_label)
19 numer_description =
"# Gen #mu Matched to %s" % (numer_label)
21 if plot_type ==
"TurnOn1":
23 xAxis =
"p_{T} of Leading Generated Muon (GeV)"
24 input_type =
"PassMaxPt1"
25 if plot_type ==
"TurnOn2":
26 title =
"Next-to-Leading pT Turn-On"
27 xAxis =
"p_{T} of Next-to-Leading Generated Muon (GeV)"
28 input_type =
"PassMaxPt2"
29 if plot_type ==
"EffEta":
30 title =
"#eta Efficiency"
31 xAxis =
"#eta of Generated Muon (GeV)"
32 input_type =
"PassEta"
33 if plot_type ==
"EffPhi":
34 title =
"#phi Efficiency"
35 xAxis =
"#phi of Generated Muon (GeV)"
36 input_type =
"PassPhi"
38 yAxis =
"%s / %s" % (numer_description, denom_description)
39 all_titles =
"%s for %s; %s; %s" % (title, output_description,
41 return "gen%s_%s '%s' gen%s_%s gen%s_%s" % (plot_type, output_label,
42 all_titles, input_type,
43 numer_label, input_type,