ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/OSUT3Analysis/Configuration/scripts/makeCutFlows.py
(Generate patch)

Comparing UserCode/OSUT3Analysis/Configuration/scripts/makeCutFlows.py (file contents):
Revision 1.10 by ahart, Tue Mar 5 23:30:59 2013 UTC vs.
Revision 1.11 by lantonel, Tue Mar 12 13:57:08 2013 UTC

# Line 27 | Line 27 | texfile = condor_dir + "/cutFlow.tex"
27   replacements = {
28      ">":"$>$",
29      "<":"$<$",
30 <    "eta ":"$\\eta$ ",
30 >    " eta ":" $\\eta$ ",
31 >    " abs(eta) ":" $|\\eta|$ ",
32      "#":"Num",
33  
34      "\\rightarrow":"{\\rightarrow}",
# Line 36 | Line 37 | replacements = {
37      "BCtoE QCD":"BCtoE$ $QCD",
38  
39  
40 <    "Pt ":"pt ",
41 <    "PT ":"pt ",
41 <    "pT ":"pt ",
42 <    "pt ":"$p_{T}$ ",
43 <
44 <    "Ht ":"HT ",
45 <    "ht ":"HT ",
46 <    "hT ":"HT ",
47 <    "HT ":"$H_{T}$ ",
48 <    "tig$H_{T}$ ":"tight ",
40 >    " pt ":" $p_{T}$ ",
41 >    " ht ":"$H_{T}$ ",
42  
50    "D0":"d0",
43      "d0":"$d_{0}$",
44  
45 <    "MET ":"Met ",
46 <    "MEt ":"Met ",
47 <    "met ":"Met ",
48 <    "Met ":"$\\not\\!\\!{E}_{T}$ ",
49 <
50 <    "MHT ":"Mht ",
51 <    "MHt ":"Mht ",
52 <    "mht ":"Mht ",
53 <    "Mht ":"$\\not\\!\\!{H}_{T}$ ",
45 >    " MET ":" Met ",
46 >    " MEt ":" Met ",
47 >    " met ":" Met ",
48 >    " Met ":"$\\not\\!\\!{E}_{T}$ ",
49 >
50 >    " MHT ":" Mht ",
51 >    " MHt ":" Mht ",
52 >    " mht ":" Mht ",
53 >    " Mht ":"$\\not\\!\\!{H}_{T}$ ",
54  
55      "M_Z" : "$M_{Z}$",
56      "M_mumu" : "$M_{\\mu\\mu}$",
57      "M_ee" : "$M_{ee}$",
58      "M_ll" : "$M_{ll}$",
59  
68    "|" : "$|$"
60   }
61  
62   secondary_replacements = {
63      "$$<$":"$<"
64 +
65   }
66  
67  
# Line 118 | Line 110 | for dataset in processed_datasets:
110          os.system("mergeTFileServiceHistograms -i %s -o %s -w %g" % (dataset_file, dataset_file + "_tmp", 1.0))
111  
112   for channel in channels: # loop over final states, which each have their own directory
113 +    formatted_channel = channel.replace("_"," ")
114      cutFlowArgs = ""
115      selectionArgs = ""
116      minusOneArgs = ""
# Line 146 | Line 139 | for channel in channels: # loop over fin
139      if not firstChannel:
140          fout.write ("\\pagebreak\n\n")
141      firstChannel = False
142 <    fout.write ("\\section*{" + channel + " channel}\n\n")
142 >    fout.write ("\\section*{" + formatted_channel + " channel}\n\n")
143      fout.write ("\\subsection*{Cut flow}\n\n")
144      fout.close ()
145      os.system("cutFlowTable -l %g -m %s >> %s" % (intLumi,cutFlowArgs,texfile))
146      fout = open (texfile, "a")
147      fout.write ("\\pagebreak\n\n")
148 <    fout.write ("\\section*{" + channel + " channel}\n\n")
148 >    fout.write ("\\section*{" + formatted_channel + " channel}\n\n")
149      fout.write ("\\subsection*{Individual selection}\n\n")
150      fout.close ()
151      os.system("cutFlowTable -l %g %s >> %s" % (intLumi,selectionArgs,texfile))
152      fout = open (texfile, "a")
153      fout.write ("\\pagebreak\n\n")
154 <    fout.write ("\\section*{" + channel + " channel}\n\n")
154 >    fout.write ("\\section*{" + formatted_channel + " channel}\n\n")
155      fout.write ("\\subsection*{Minus one}\n\n")
156      fout.close ()
157      os.system("cutFlowTable -l %g %s >> %s" % (intLumi,minusOneArgs,texfile))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines