CMS 3D CMS Logo

Classes | Functions | Variables

create_public_lumi_plots Namespace Reference

Classes

class  LumiDataBlock
class  LumiDataBlockCollection
class  LumiDataPoint

Functions

def AtMidnight
def AtMidWeek
def CacheFilePath
def GetEnergyPerNucleonScaleFactor
def GetUnits
def GetXLocator
def NumDaysInYear
def PlotAllYears
def TweakPlot

Variables

tuple accel_mode = cfg_parser.get("general", "accel_mode")
 add_extra_head_room = is_log)
 amodetag_bug_workaround = False
tuple arg_parser = optparse.OptionParser(description=desc_str)
tuple aspect_ratio = matplotlib.figure.figaspect(1. / 2.5)
tuple ax = fig.add_subplot(111)
 beam_energy = None
dictionary beam_energy_defaults
 beam_energy_from_cfg = None
tuple beam_energy_tmp = cfg_parser.get("general", "beam_energy")
 beam_fluctuation = None
dictionary beam_fluctuation_defaults
 beam_fluctuation_from_cfg = None
tuple beam_fluctuation_tmp = cfg_parser.get("general", "beam_fluctuation")
tuple bin_edges
tuple cache_file_dbg = cache_file_path.replace(".csv", "_dbg.csv")
tuple cache_file_dir = cfg_parser.get("general", "cache_dir")
tuple cache_file_path = CacheFilePath(cache_file_dir, day)
tuple cache_file_tmp = cache_file_path.replace(".csv", "_tmp.csv")
dictionary cfg_defaults
tuple cfg_parser = ConfigParser.SafeConfigParser(cfg_defaults)
string cmd = "%s --begin '%s' --end '%s' -o %s"
int cms_energy = 2
string cms_energy_str = "???"
list color = color_by_year[year]
 color_by_year = color_scheme.color_by_year
 color_fill_del = color_scheme.color_fill_del
 color_fill_peak = color_scheme.color_fill_peak
 color_fill_rec = color_scheme.color_fill_rec
 color_line_del = color_scheme.color_line_del
 color_line_peak = color_scheme.color_line_peak
 color_line_rec = color_scheme.color_line_rec
tuple color_scheme = ColorScheme(color_scheme_name)
list color_scheme_names = [i.strip() for i in color_scheme_names_tmp.split(",")]
tuple color_scheme_names_tmp = cfg_parser.get("general", "color_schemes")
list config_file_name = args[0]
tuple date_begin = datetime.datetime.strptime(tmp, DATE_FMT_STR_CFG)
tuple date_begin_day_str = day.strftime(DATE_FMT_STR_LUMICALC_DAY)
tuple date_begin_str = day.strftime(DATE_FMT_STR_LUMICALC)
 date_end = None
tuple date_end_str = (day + datetime.timedelta(days=1))
string DATE_FMT_STR_AXES = "%-d %b"
string DATE_FMT_STR_CFG = "%Y-%m-%d"
string DATE_FMT_STR_LUMICALC = "%m/%d/%y %H:%M:%S"
string DATE_FMT_STR_LUMICALC_DAY = "%m/%d/%y"
string DATE_FMT_STR_OUT = "%Y-%m-%d %H:%M"
tuple date_previous_str = (day - datetime.timedelta(days=1))
 day_cur = date_begin
tuple day_hi = AtMidnight(lumi_data.time_end())
tuple day_lo = AtMidnight(lumi_data.time_begin())
list days = [date_begin + datetime.timedelta(days=i) for i in xrange(num_days)]
string desc_str = "This script creates the official CMS luminosity plots "
tuple dummy_file = open(cache_file_tmp, "w")
tuple exp = math.floor(math.log10(min_val))
 facecolor = color_fill_peak,edgecolorcolor_line_peak,
tuple fig = plt.figure()
 file_suffix = color_scheme.file_suffix
 fontproperties = FONT_PROPS_SUPTITLE)
int head_room = 2
string help = "Ignore all cached lumiCalc results "
string helper_str = ""
string histtype = "stepfilled"
 ignore_cache = options.ignore_cache
tuple in_file = open(cache_file_path)
tuple is_log = (type == "log")
list KNOWN_ACCEL_MODES
string label = "Max. inst. lumi.: %.2f %s"
tuple last_day_from_cache = min(today - datetime.timedelta(days=2), date_end)
int LEAD_SCALE_FACTOR = 82
tuple leg
tuple lines = in_file.readlines()
tuple lines_ori = open(cache_file_tmp)
list lines_to_be_kept = []
string linestyle = "none"
 log = log_setting,
 log_setting = False
string log_suffix = ""
 logo_name = color_scheme.logo_name
list lumi_data = lumi_data_by_day_per_year[year]
dictionary lumi_data_by_day = {}
dictionary lumi_data_by_day_per_year = {}
dictionary lumi_data_by_week = {}
dictionary lumi_data_by_week_per_year = {}
dictionary lumi_data_by_year = {}
tuple lumi_data_day = LumiDataBlock()
string lumicalc_cmd = "%s %s"
string lumicalc_flags = "%s --without-checkforupdate "
tuple lumicalc_flags_from_cfg = cfg_parser.get("general", "lumicalc_flags")
tuple lumicalc_script = cfg_parser.get("general", "lumicalc_script")
string marker = "."
tuple max_del = max(weights_del)
tuple max_inst = max(weights_del_inst)
tuple max_rec = max(weights_rec)
tuple min_del = min(weights_del_for_cum)
tuple min_val = min(weights_del_inst)
tuple newfile = open(cache_file_path, "w")
 num_cols = None
tuple num_days = (date_end - date_begin)
tuple num_lines_0 = len(open(cache_file_tmp).readlines())
tuple num_lines_1 = len(open(cache_file_path).readlines())
tuple num_lines_2 = len(open(cache_file_path).readlines())
tuple num_lines_3 = len(open(cache_file_path).readlines())
tuple num_lines_4 = len(open(cache_file_dbg).readlines())
int NUM_SEC_IN_LS = 2
tuple num_weeks = week_hi.isocalendar()
tuple oracle_connection_string = cfg_parser.get("general", "oracle_connection")
tuple output_0 = copy.deepcopy(output)
tuple output_1 = copy.deepcopy(output)
list particle_type_str = particle_type_strings[accel_mode]
dictionary particle_type_strings
tuple path_name = CacheFilePath(cache_file_dir)
int scale_factor_2010 = 10
int sep_line = 50
 str_begin = None
tuple str_begin_ultimate = time_begin_ultimate.strftime(DATE_FMT_STR_OUT)
 str_end = None
tuple time_begin
list time_begin_ultimate = lumi_data_by_day_per_year[years[0]]
tuple time_end
list times = [matplotlib.dates.date2num(i) for i in times_tmp]
list times_tmp = [AtMidnight(i) for i in lumi_data.times()]
tuple tmp = cfg_parser.get("general", "date_begin")
tuple tmp_leg
string tmp_str = " - (no data, presumably no lumi either)"
int tmp_x = 09
int tmp_y = 97
tuple today = datetime.datetime.utcnow()
tuple tot_del = sum(weights_del_for_cum)
tuple tot_rec = sum(weights_rec_for_cum)
tuple units = GetUnits(years[-1], accel_mode, "cum_day")
tuple use_cache = (not ignore_cache)
tuple use_oracle = (len(oracle_connection_string) != 0)
tuple verbose = cfg_parser.getboolean("general", "verbose")
 For running on pre 3.6 files the current needed to determine the magnetic field is taken from Conditions DB.
tuple week = day_cur.isocalendar()
tuple week_begin = date_begin.isocalendar()
tuple week_end = date_end.isocalendar()
tuple week_hi = AtMidWeek(lumi_data.time_end())
tuple week_lo = AtMidWeek(lumi_data.time_begin())
list weeks = []
tuple weights_del = lumi_data.lum_del(units)
tuple weights_del_for_cum = lumi_data.lum_del(units)
tuple weights_del_inst = lumi_data.lum_inst_max(units)
tuple weights_inst = lumi_data.lum_inst_max(units)
tuple weights_rec = lumi_data.lum_rec(units)
tuple weights_rec_for_cum = lumi_data.lum_rec(units)
 weights_tmp = None
tuple xy = (times[-1], max(weights_tmp))
string xycoords = "data"
tuple xytext = (5., -2.)
tuple year = day_cur.isocalendar()
tuple year_begin = date_begin.isocalendar()
tuple year_end = date_end.isocalendar()
tuple years = range(year_begin, year_end + 1)
int zoom = 97

Function Documentation

def create_public_lumi_plots::AtMidnight (   datetime_in)

Definition at line 264 of file create_public_lumi_plots.py.

00265                            :
00266     res = datetime.datetime.combine(datetime_in.date(), datetime.time())
00267     # End of AtMidnight().
00268     return res

def create_public_lumi_plots::AtMidWeek (   datetime_in)

Definition at line 271 of file create_public_lumi_plots.py.

00272                           :
00273     # NOTE: The middle of the week is on Thursday according to our
00274     # definition
00275     tmp = datetime_in.date()
00276     date_tmp = tmp - \
00277                datetime.timedelta(days=tmp.weekday()) + \
00278                datetime.timedelta(days=3)
00279     res = datetime.datetime.combine(date_tmp, datetime.time())
00280     # End of AtMidWeek().
00281     return res

def create_public_lumi_plots::CacheFilePath (   cache_file_dir,
  day = None 
)

Definition at line 255 of file create_public_lumi_plots.py.

00256                                            :
00257     cache_file_path = os.path.abspath(cache_file_dir)
00258     if day:
00259         cache_file_name = "lumicalc_cache_%s.csv" % day.isoformat()
00260         cache_file_path = os.path.join(cache_file_path, cache_file_name)
00261     return cache_file_path

def create_public_lumi_plots::GetEnergyPerNucleonScaleFactor (   amodetag)

Definition at line 348 of file create_public_lumi_plots.py.

00349                                             :
00350     # DEBUG DEBUG DEBUG
00351     assert amodetag in ["IONPHYS", "PAPHYS"]
00352     # DEBUG DEBUG DEBUG end
00353 
00354     res = LEAD_SCALE_FACTOR
00355     if amodetag == "PAPHYS":
00356         res = math.sqrt(res)
00357 
00358     # End of GetEnergyPerNucleonScaleFactor().
00359     return res

def create_public_lumi_plots::GetUnits (   year,
  accel_mode,
  mode 
)

Definition at line 284 of file create_public_lumi_plots.py.

00285                                     :
00286 
00287     units_spec = {
00288         "PROTPHYS" : {
00289         2010 : {
00290         "cum_day" : "pb^{-1}",
00291         "cum_week" : "pb^{-1}",
00292         "cum_year" : "pb^{-1}",
00293         "max_inst" : "Hz/ub",
00294         },
00295         2011 : {
00296         "cum_day" : "pb^{-1}",
00297         "cum_week" : "pb^{-1}",
00298         "cum_year" : "fb^{-1}",
00299         "max_inst" : "Hz/nb",
00300         },
00301         2012 : {
00302         "cum_day" : "pb^{-1}",
00303         "cum_week" : "fb^{-1}",
00304         "cum_year" : "fb^{-1}",
00305         "max_inst" : "Hz/nb",
00306         }
00307         },
00308         "IONPHYS" : {
00309         2011 : {
00310         "cum_day" : "ub^{-1}",
00311         "cum_week" : "ub^{-1}",
00312         "cum_year" : "ub^{-1}",
00313         "max_inst" : "Hz/mb",
00314         }
00315         },
00316         "PAPHYS" : {
00317         2013 : {
00318         "cum_day" : "nb^{-1}",
00319         "cum_week" : "nb^{-1}",
00320         "cum_year" : "nb^{-1}",
00321         "max_inst" : "Hz/mb",
00322         }
00323         }
00324         }
00325 
00326     units = None
00327 
00328     try:
00329         units = units_spec[accel_mode][year][mode]
00330     except KeyError:
00331         if mode == "cum_day":
00332             units = "pb^{-1}"
00333         elif mode == "cum_week":
00334             units = "pb^{-1}"
00335         elif mode == "cum_year":
00336             units = "fb^{-1}"
00337         elif mode == "max_inst":
00338             units = "Hz/ub"
00339 
00340     # DEBUG DEBUG DEBUG
00341     assert not units is None
00342     # DEBUG DEBUG DEBUG end
00343 
00344     # End of GetUnits().
00345     return units

def create_public_lumi_plots::GetXLocator (   ax)
Pick a DateLocator based on the range of the x-axis.

Definition at line 374 of file create_public_lumi_plots.py.

00375                    :
00376     """Pick a DateLocator based on the range of the x-axis."""
00377     (x_lo, x_hi) = ax.get_xlim()
00378     num_days = x_hi - x_lo
00379     min_num_ticks = min(num_days, 5)
00380     locator = matplotlib.dates.AutoDateLocator(minticks=min_num_ticks,
00381                                                maxticks=None)
00382     # End of GetLocator().
00383     return locator

def create_public_lumi_plots::NumDaysInYear (   year)
Returns the number of days in the given year.

Definition at line 362 of file create_public_lumi_plots.py.

00363                        :
00364     """Returns the number of days in the given year."""
00365 
00366     date_lo = datetime.date(year, 1, 1)
00367     date_hi = datetime.date(year + 1, 1, 1)
00368     num_days = (date_hi - date_lo).days
00369 
00370     # End of NumDaysInYear().
00371     return num_days

def create_public_lumi_plots::PlotAllYears (   lumi_data_by_day_per_year,
  mode 
)
Mode 1: years side-by-side, mode 2: years overlaid.

Definition at line 1542 of file create_public_lumi_plots.py.

01543                                                          :
01544             """Mode 1: years side-by-side, mode 2: years overlaid."""
01545 
01546             units = GetUnits(years[-1], accel_mode, "cum_year")
01547 
01548             scale_factor_2010 = 100.
01549 
01550             # Loop over all color schemes and plot.
01551             for color_scheme_name in color_scheme_names:
01552 
01553                 print "      color scheme '%s'" % color_scheme_name
01554 
01555                 color_scheme = ColorScheme(color_scheme_name)
01556                 color_by_year = color_scheme.color_by_year
01557                 logo_name = color_scheme.logo_name
01558                 file_suffix = color_scheme.file_suffix
01559 
01560                 for type in ["lin", "log"]:
01561                     is_log = (type == "log")
01562 
01563                     if mode == 1:
01564                         aspect_ratio = matplotlib.figure.figaspect(1. / 2.5)
01565                         fig = plt.figure(figsize=aspect_ratio)
01566                     else:
01567                         fig = plt.figure()
01568                     ax = fig.add_subplot(111)
01569 
01570                     time_begin_ultimate = lumi_data_by_day_per_year[years[0]].time_begin()
01571                     str_begin_ultimate = time_begin_ultimate.strftime(DATE_FMT_STR_OUT)
01572                     for (year_index, year) in enumerate(years):
01573 
01574                         lumi_data = lumi_data_by_day_per_year[year]
01575                         lumi_data.sort()
01576                         times_tmp = [AtMidnight(i) for i in lumi_data.times()]
01577                         # For the plots showing all years overlaid, shift
01578                         # all but the first year forward.
01579                         # NOTE: Years list is supposed to be sorted.
01580                         if mode == 2:
01581                             if year_index > 0:
01582                                 for y in years[:year_index]:
01583                                     num_days = NumDaysInYear(y)
01584                                     time_shift = datetime.timedelta(days=num_days)
01585                                     times_tmp = [(i - time_shift) \
01586                                                  for i in times_tmp]
01587                         times = [matplotlib.dates.date2num(i) for i in times_tmp]
01588                         # DEBUG DEBUG DEBUG
01589                         for i in xrange(len(times) - 1):
01590                             assert times[i] < times[i + 1]
01591                         # DEBUG DEBUG DEBUG end
01592                         weights_del = lumi_data.lum_del(units)
01593                         weights_del_cum = [0.] * len(weights_del)
01594                         tot_del = 0.
01595                         for (i, val) in enumerate(weights_del):
01596                             tot_del += val
01597                             weights_del_cum[i] = tot_del
01598                         if not beam_energy_from_cfg:
01599                             beam_energy = beam_energy_defaults[accel_mode][year]
01600                         cms_energy = 2. * beam_energy
01601                         cms_energy_str = "???"
01602                         if accel_mode == "PROTPHYS":
01603                             cms_energy_str = "%.0f TeV" % (1.e-3 * cms_energy)
01604                         elif accel_mode in ["IONPHYS", "PAPHYS"]:
01605                             cms_energy_str = "%.2f TeV/nucleon" % \
01606                                              (1.e-3 * GetEnergyPerNucleonScaleFactor(accel_mode) * cms_energy)
01607 
01608                         # NOTE: Special case for 2010.
01609                         label = None
01610                         if year == 2010:
01611                             label = r"%d, %s, %.1f %s" % \
01612                                     (year, cms_energy_str,
01613                                      1.e3 * tot_del,
01614                                      LatexifyUnits("pb^{-1}"))
01615                         else:
01616                             label = r"%d, %s, %.1f %s" % \
01617                                     (year, cms_energy_str, tot_del,
01618                                      LatexifyUnits(units))
01619 
01620                         # NOTE: Special case for 2010
01621                         weights_tmp = None
01622                         if year == 2010:
01623                             weights_tmp = [scale_factor_2010 * i \
01624                                            for i in weights_del_cum]
01625                         else:
01626                             weights_tmp = weights_del_cum
01627                         ax.plot(times, weights_tmp,
01628                                 color=color_by_year[year],
01629                                 marker="none", linestyle="solid",
01630                                 linewidth=4,
01631                                 label=label)
01632                         if is_log:
01633                             ax.set_yscale("log")
01634 
01635                         # NOTE: Special case for 2010.
01636                         if year == 2010:
01637                             ax.annotate(r"$\times$ %.0f" % scale_factor_2010,
01638                                         xy=(times[-1], weights_tmp[-1]),
01639                                         xytext=(5., -2.),
01640                                         xycoords="data", textcoords="offset points")
01641 
01642                     # BUG BUG BUG
01643                     # Needs work...
01644                     time_begin = lumi_data.time_begin()
01645                     time_end = lumi_data.time_end()
01646                     str_begin = time_begin.strftime(DATE_FMT_STR_OUT)
01647                     str_end = time_end.strftime(DATE_FMT_STR_OUT)
01648                     if mode == 1:
01649                         time_begin = datetime.datetime(years[0], 1, 1, 0, 0, 0)
01650                         time_end = datetime.datetime(years[-1], 12, 31, 23, 59,59)
01651                     else:
01652                         time_begin = datetime.datetime(years[0], 1, 1, 0, 0, 0)
01653                         time_end = datetime.datetime(years[0], 12, 31, 23, 59,59)
01654                     # BUG BUG BUG end
01655 
01656                     num_cols = None
01657                     if mode == 1:
01658                         num_cols = len(years)
01659                         tmp_x = 0.095
01660                         tmp_y = .95
01661                     else:
01662                         num_cols = 1
01663                         tmp_x = 0.175
01664                         tmp_y = 1.01
01665                     leg = ax.legend(loc="upper left", bbox_to_anchor=(tmp_x, 0., 1., tmp_y),
01666                               frameon=False, ncol=num_cols)
01667                     for t in leg.get_texts():
01668                         t.set_font_properties(FONT_PROPS_TICK_LABEL)
01669 
01670                     # Set titles and labels.
01671                     fig.suptitle(r"CMS Integrated Luminosity, %s" % particle_type_str,
01672                                  fontproperties=FONT_PROPS_SUPTITLE)
01673                     ax.set_title("Data included from %s to %s UTC \n" % \
01674 #                                 (str_begin, str_end),
01675                                  (str_begin_ultimate, str_end),
01676                                  fontproperties=FONT_PROPS_TITLE)
01677                     ax.set_xlabel(r"Date (UTC)", fontproperties=FONT_PROPS_AX_TITLE)
01678                     ax.set_ylabel(r"Total Integrated Luminosity (%s)" % \
01679                                   LatexifyUnits(units),
01680                                   fontproperties=FONT_PROPS_AX_TITLE)
01681 
01682                     # Add the logo.
01683                     zoom = 1.7
01684                     if mode == 1:
01685                         zoom = .95
01686                     AddLogo(logo_name, ax, zoom=zoom)
01687                     extra_head_room = 0
01688                     if is_log:
01689                         if mode == 1:
01690                             extra_head_room = 1
01691                         elif mode == 2:
01692                             extra_head_room = 2
01693 #                    TweakPlot(fig, ax, (time_begin, time_end),
01694                     TweakPlot(fig, ax, (time_begin_ultimate, time_end),
01695                               add_extra_head_room=extra_head_room)
01696 
01697                     log_suffix = ""
01698                     if is_log:
01699                         log_suffix = "_log"
01700                     SavePlot(fig, "int_lumi_cumulative_%s_%d%s%s" % \
01701                              (particle_type_str.lower(), mode,
01702                               log_suffix, file_suffix))

def create_public_lumi_plots::TweakPlot (   fig,
  ax,
  time_begin,
  time_end,
  add_extra_head_room = False 
)

Definition at line 386 of file create_public_lumi_plots.py.

00388                                         :
00389 
00390     # Fiddle with axes ranges etc.
00391     ax.relim()
00392     ax.autoscale_view(False, True, True)
00393     for label in ax.get_xticklabels():
00394         label.set_ha("right")
00395         label.set_rotation(30.)
00396 
00397     # Bit of magic here: increase vertical scale by one tick to make
00398     # room for the legend.
00399     if add_extra_head_room:
00400         y_ticks = ax.get_yticks()
00401         (y_min, y_max) = ax.get_ylim()
00402         is_log = (ax.get_yscale() == "log")
00403         y_max_new = y_max
00404         if is_log:
00405             tmp = y_ticks[-1] / y_ticks[-2]
00406             y_max_new = y_max * math.pow(tmp, add_extra_head_room)
00407         else:
00408             tmp = y_ticks[-1] - y_ticks[-2]
00409             y_max_new = y_max + add_extra_head_room * tmp
00410         ax.set_ylim(y_min, y_max_new)
00411 
00412     # Add a second vertical axis on the right-hand side.
00413     ax_sec = ax.twinx()
00414     ax_sec.set_ylim(ax.get_ylim())
00415     ax_sec.set_yscale(ax.get_yscale())
00416 
00417     for ax_tmp in fig.axes:
00418         for sub_ax in [ax_tmp.xaxis, ax_tmp.yaxis]:
00419             for label in sub_ax.get_ticklabels():
00420                 label.set_font_properties(FONT_PROPS_TICK_LABEL)
00421 
00422     ax.set_xlim(time_begin, time_end)
00423 
00424     locator = GetXLocator(ax)
00425     ax.xaxis.set_major_locator(locator)
00426     formatter = matplotlib.dates.DateFormatter(DATE_FMT_STR_AXES)
00427     ax.xaxis.set_major_formatter(formatter)
00428 
00429     fig.subplots_adjust(top=.85, bottom=.14, left=.13, right=.91)
00430     # End of TweakPlot().


Variable Documentation

string create_public_lumi_plots::accel_mode = cfg_parser.get("general", "accel_mode")

Definition at line 477 of file create_public_lumi_plots.py.

Definition at line 1262 of file create_public_lumi_plots.py.

Definition at line 485 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::arg_parser = optparse.OptionParser(description=desc_str)

Definition at line 437 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::aspect_ratio = matplotlib.figure.figaspect(1. / 2.5)

Definition at line 1732 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::ax = fig.add_subplot(111)

Definition at line 494 of file create_public_lumi_plots.py.

Initial value:
00001 {
00002         "PROTPHYS" : {2010 : 3500.,
00003                       2011 : 3500.,
00004                       2012 : 4000.},
00005         "IONPHYS" : {2010 : 3500.,
00006                      2011 : 3500.},
00007         "PAPHYS" : {2013 : 4000.}
00008         }

Definition at line 557 of file create_public_lumi_plots.py.

Definition at line 495 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::beam_energy_tmp = cfg_parser.get("general", "beam_energy")

Definition at line 491 of file create_public_lumi_plots.py.

Definition at line 507 of file create_public_lumi_plots.py.

Initial value:
00001 {
00002         "PROTPHYS" : {2010 : .15,
00003                       2011 : .15,
00004                       2012 : .15},
00005         "IONPHYS" : {2010 : .15,
00006                      2011 : .15},
00007         "PAPHYS" : {2013 : .15}
00008         }

Definition at line 565 of file create_public_lumi_plots.py.

Definition at line 508 of file create_public_lumi_plots.py.

Definition at line 504 of file create_public_lumi_plots.py.

Initial value:
00001 np.linspace(matplotlib.dates.date2num(day_lo),
00002                                 matplotlib.dates.date2num(day_hi),
00003                                 (day_hi - day_lo).days + 1)

Definition at line 1036 of file create_public_lumi_plots.py.

Referenced by MuIsoValidation::InitHistos().

tuple create_public_lumi_plots::cache_file_dbg = cache_file_path.replace(".csv", "_dbg.csv")

Definition at line 826 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::cache_file_dir = cfg_parser.get("general", "cache_dir")

Definition at line 470 of file create_public_lumi_plots.py.

Definition at line 677 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::cache_file_tmp = cache_file_path.replace(".csv", "_tmp.csv")

Definition at line 678 of file create_public_lumi_plots.py.

Initial value:
00001 {
00002         "lumicalc_flags" : "",
00003         "date_end" : None,
00004         "color_schemes" : "Joe, Greg",
00005         "beam_energy" : None,
00006         "beam_fluctuation" : None,
00007         "verbose" : False,
00008         "oracle_connection" : None
00009         }

Definition at line 450 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::cfg_parser = ConfigParser.SafeConfigParser(cfg_defaults)

Definition at line 459 of file create_public_lumi_plots.py.

string create_public_lumi_plots::cmd = "%s --begin '%s' --end '%s' -o %s"

Definition at line 719 of file create_public_lumi_plots.py.

Definition at line 1015 of file create_public_lumi_plots.py.

Definition at line 1016 of file create_public_lumi_plots.py.

create_public_lumi_plots::color_by_year = color_scheme.color_by_year

Definition at line 1725 of file create_public_lumi_plots.py.

create_public_lumi_plots::color_fill_del = color_scheme.color_fill_del

Definition at line 1075 of file create_public_lumi_plots.py.

create_public_lumi_plots::color_fill_peak = color_scheme.color_fill_peak

Definition at line 1077 of file create_public_lumi_plots.py.

create_public_lumi_plots::color_fill_rec = color_scheme.color_fill_rec

Definition at line 1076 of file create_public_lumi_plots.py.

create_public_lumi_plots::color_line_del = color_scheme.color_line_del

Definition at line 1078 of file create_public_lumi_plots.py.

create_public_lumi_plots::color_line_peak = color_scheme.color_line_peak

Definition at line 1080 of file create_public_lumi_plots.py.

create_public_lumi_plots::color_line_rec = color_scheme.color_line_rec

Definition at line 1079 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::color_scheme = ColorScheme(color_scheme_name)

Definition at line 1074 of file create_public_lumi_plots.py.

list create_public_lumi_plots::color_scheme_names = [i.strip() for i in color_scheme_names_tmp.split(",")]

Definition at line 468 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::color_scheme_names_tmp = cfg_parser.get("general", "color_schemes")

Definition at line 467 of file create_public_lumi_plots.py.

Definition at line 447 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::date_begin = datetime.datetime.strptime(tmp, DATE_FMT_STR_CFG)

Definition at line 519 of file create_public_lumi_plots.py.

Definition at line 681 of file create_public_lumi_plots.py.

Definition at line 680 of file create_public_lumi_plots.py.

Definition at line 521 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::date_end_str = (day + datetime.timedelta(days=1))

Definition at line 682 of file create_public_lumi_plots.py.

Definition at line 58 of file create_public_lumi_plots.py.

Definition at line 59 of file create_public_lumi_plots.py.

Definition at line 55 of file create_public_lumi_plots.py.

Definition at line 56 of file create_public_lumi_plots.py.

Definition at line 57 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::date_previous_str = (day - datetime.timedelta(days=1))

Definition at line 683 of file create_public_lumi_plots.py.

Definition at line 648 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::day_hi = AtMidnight(lumi_data.time_end())

Definition at line 1030 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::day_lo = AtMidnight(lumi_data.time_begin())

Definition at line 1028 of file create_public_lumi_plots.py.

list create_public_lumi_plots::days = [date_begin + datetime.timedelta(days=i) for i in xrange(num_days)]

Definition at line 645 of file create_public_lumi_plots.py.

string create_public_lumi_plots::desc_str = "This script creates the official CMS luminosity plots "

Definition at line 435 of file create_public_lumi_plots.py.

Definition at line 740 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::exp = math.floor(math.log10(min_val))

Definition at line 1093 of file create_public_lumi_plots.py.

Referenced by res::HelperJet::a(), res::HelperMuon::a(), res::HelperElectron::a(), res::HelperMET::a(), EgammaHLTHcalIsolation::acceptHit_(), reco::JetSignalVertexCompatibilityAlgo::activation(), EndcapPiZeroDiscriminatorAlgo::Activation_fun(), gen::Pythia6Gun::addAntiParticle(), FastL1GlobalAlgo::addJet(), HCALRecHitAnalyzer::analyze(), HLTAlCaMonPi0::analyze(), EERecoSummary::analyze(), ESTimingTask::analyze(), edm::FlatEGunASCIIWriter::analyze(), EBRecoSummary::analyze(), ElectronSeedAnalyzer::analyze(), JetTagMVATreeTrainer::analyze(), HLTAlCa::analyze(), ResolutionAnalyzer::analyze(), HLTEgamma::analyze(), DQMSourcePi0::analyze(), res::HelperJet::b(), res::HelperMuon::b(), res::HelperElectron::b(), res::HelperMET::b(), magfieldparam::TkBfield::Bcyl(), GsfBetheHeitlerUpdator::BetheHeitlerMean(), GsfBetheHeitlerUpdator::BetheHeitlerVariance(), BremsstrahlungSimulator::brem(), PFClusterAlgo::buildPFClusters(), res::HelperJet::c(), res::HelperMuon::c(), res::HelperElectron::c(), res::HelperMET::c(), HIPAlignmentAlgorithm::calcAPE(), HLTEcalResonanceFilter::calcPaircluster(), GsfVertexWeightCalculator::calculate(), CSCWireElectronicsSim::calculateAmpResponse(), CSCStripAmpResponse::calculateAmpResponse(), CutBasedElectronID::cicSelection(), NuclearInteractionSimulator::compute(), EcalUncalibRecHitRatioMethodAlgo< C >::computeAmplitude(), CastorPulseShapes::computeCastorShape(), TMarkov::computeChain(), DeDxDiscriminatorProducer::ComputeDiscriminator(), EnergyLossUpdator::computeElectrons(), VolumeEnergyLossEstimator::computeElectrons(), HcalPulseShapes::computeHFShape(), HcalPulseShapes::computeHPDShape(), HFCherenkov::computeNPE(), HFCherenkov::computeQEff(), TBPositionCalc::computeRotation(), CastorShape::computeShapeCastor(), ZDCShape::computeShapeZDC(), EcalUncalibRecHitRatioMethodAlgo< C >::computeTime(), ZeeKinematicTools::cosThetaElectrons_SC(), ZeeKinematicTools::cosThetaElectrons_TK(), crystalball(), CSCDriftSim::CSCDriftSim(), res::HelperMuon::d(), res::HelperElectron::d(), res::HelperMET::d(), res::HelperJet::d(), Dcxprobab(), ChargeDividerFP420::DeconvolutionShape(), egammaisolation::EgammaRecHitExtractor::deposit(), egammaisolation::EgammaHcalExtractor::deposit(), egammaisolation::EgammaTowerExtractor::deposit(), egammaisolation::EgammaEcalExtractor::deposit(), DetIdAssociator::DetIdAssociator(), Exhume::CrossSection::Differential(), HLTEcalResonanceFilter::doSelection(), DthetaDeta(), UncatchedException::dump(), ProcessNormalization::dump(), Pi0FixedMassWindowCalibration::duringLoop(), ZeeCalibration::duringLoop(), EcalTBMCInfoProducer::EcalTBMCInfoProducer(), eCorr(), SingleParticleEvent::Eloss(), EMShower::EMShower(), GammaNumericalGenerator::ersatzt(), LandauFluctuationGenerator::ersatzt(), res::HelperJet::eta(), res::HelperElectron::eta(), res::HelperMuon::eta(), BeamProfileVtxGenerator::eta(), hitfit::eta_to_theta(), L1GctConfigProducers::etToEnergyConversion(), VariablePower::eval(), metsig::SignAlgoResolutions::eval(), ESRecHitAnalyticAlgo::EvalAmplitude(), ESRecHitSimAlgo::EvalAmplitude(), RooLevelledExp::evaluate(), RooCMSShape::evaluate(), Roo4lMasses2D_Bkg::evaluate(), RooTwoETwoMuMassRes::evaluate(), RooCBExGaussShape::evaluate(), RooDoubleCB::evaluate(), RooFermi::evaluate(), RooqqZZPdf_v2::evaluate(), RooggZZPdf::evaluate(), RooCB::evaluate(), RooggZZPdf_v2::evaluate(), RooBetaFunc_v2::evaluate(), Roo4lMasses2D::evaluate(), AsymPow::evaluate(), RooqqZZPdf::evaluate(), ProcessNormalization::evaluate(), Roo4lMasses2D_BkgGGZZ::evaluate(), RooFourMuMassRes::evaluate(), RooFourEMassRes::evaluate(), FastTemplate::Exp(), PhotonFix::expCorrection(), VVIObjDetails::expint(), VVIObjDetails::f2(), EcalClusterEnergyCorrectionObjectSpecific::fBremEta(), EcalClusterEnergyCorrectionObjectSpecific::fEnergy(), ElectronEnergyCorrector::fEnergy(), ElectronEnergyCorrector::fEt(), EcalClusterEnergyCorrectionObjectSpecific::fEt(), MuonSimHitsValidAnalyzer::fillDT(), FastL1GlobalAlgo::FillMET(), Histograms::fillRecHistograms(), MuonSimHitsValidAnalyzer::fillRPC(), EBShape::fillShape(), EEShape::fillShape(), APDShape::fillShape(), GaussianZBeamSpotFilter::filter(), FWGeometryTableView::filterListCallback(), FWGeometryTableView::filterTextEntryCallback(), spr::findDetIdECAL(), spr::findDetIdHCAL(), reco::PositiveSideGhostTrackFitter::fit(), CSCFindPeakTime::fivePoleFitCharge(), CSCFindPeakTime::fivePoleFitTime(), fromPtEtaPhiToPxPyPz(), MuScleFitUtils::fromPtEtaPhiToPxPyPz(), cms::HICFTSfromL1orL2::FTSfromL1(), FWExpressionValidator::FWExpressionValidator(), EMShower::gam(), HDShower::gam(), HFShower::gam(), GammaFunctionGenerator::gammaFrac(), GflashHadronShowerProfile::gammaProfile(), PhotonFix::gausCorrection(), GSUtilities::gauss(), Gaussian(), EcalTestDevDB::generateEcalLaserAPDPNRatios(), CSCGasCollisions::generateEnergyLoss(), gen::Pythia6PartonEGun::generateEvent(), gen::Pythia6PtYDistGun::generateEvent(), gen::Pythia6EGun::generateEvent(), gen::Pythia6PtGun::generateEvent(), evf::BU::generateEvent(), gen::Pythia6JetGun::generateEvent(), gen::Pythia6PartonPtGun::generateEvent(), BaseNumericalRandomGenerator::generateExp(), Generator::Generator(), calib::CalibElectron::getCalibModulesWeights(), GBRForest::GetClassifier(), IsolatedPixelTrackCandidateProducer::getDistInCM(), ValidationHcalIsoTrackAlCaReco::getDistInCM(), EopTreeWriter::getDistInCM(), getDistInCM(), EgammaEcalIsolation::getEcalEtSum(), IsolatedPixelTrackCandidateProducer::GetEtaPhiAtEcal(), PythiaFilterIsolatedTrack::GetEtaPhiAtEcal(), HCALResponse::getHCALEnergyResponse(), HFShowerLibrary::getHits(), HFShowerParam::getHits(), HFShower::getHits(), GsfBetheHeitlerUpdator::getMixtureParameters(), CaloCellId::getThetaCell(), HFGflash::gfParameterization(), HcalTB04Analysis::HcalTB04Analysis(), HcalTB06Analysis::HcalTB06Analysis(), HcalHFStatusBitFromDigis::hfSetFlagFromDigi(), HcalSiPM::hitCells(), HLTEgammaGenericQuadraticFilter::hltFilter(), HLTEgammaGenericQuadraticEtaFilter::hltFilter(), HLTEgammaGenericFilter::hltFilter(), GflashHadronShowerProfile::hoProfile(), DDHCalTestBeamAlgo::initialize(), DDHCalEndcapAlgo::initialize(), DDHCalTBZposAlgo::initialize(), OAE85lParametrizedMagneticField::inTeslaUnchecked(), TopologyWorker::iPow(), FastL1GlobalAlgo::isEMCand(), EgammaHLTHcalIsolationDoubleCone::isolPtSum(), EgammaHLTEcalIsolation::isolPtSum(), JetBProbabilityComputer::jetProbability(), reco::TrackProbabilityTagInfo::jetProbability(), JetProbabilityComputer::jetProbability(), KineParticleFilter::KineParticleFilter(), TFParams::lastShape(), TFParams::lastShape2(), FWCompactVerticalLayout::Layout(), RooFit::Lgg_7(), CSCTFPtMethods::Likelihood(), CSCTFPtMethods::Likelihood2011(), IncompleteGammaComplement::ln(), GflashAntiProtonShowerProfile::loadParameters(), GflashProtonShowerProfile::loadParameters(), GflashKaonPlusShowerProfile::loadParameters(), GflashPiKShowerProfile::loadParameters(), GflashKaonMinusShowerProfile::loadParameters(), GsfBetheHeitlerUpdator::logisticFunction(), FWRPZViewGeometry::makeCaloOutlineRhoZ(), HcalDDDGeometryLoader::makeCell(), PiZeroAnalyzer::makePizero(), MuScleFitUtils::massResolution(), ErrorsPropagationAnalyzer::massResolution(), EMECALShowerParametrization::meanLnAlphaSam(), EMECALShowerParametrization::meanLnTSam(), GflashHadronShowerProfile::medianLateralArm(), res::HelperMET::met(), TFParams::mixShape(), JetPartonNamespace::UserPartonMixture::mixt(), MLP_Sigmoide(), MLP_vSigmoide(), MLP_vSigmoideDeriv(), MultiTrajectoryStateMode::momentumFromModePPhiEta(), MuonResidualsFitter_compute_log_convolution(), MuonResidualsFitter_GaussPowerTails_TF1(), MuonResidualsFitter_integrate_pureGaussian(), MuonResidualsFitter_logGaussPowerTails(), MuonResidualsFitter_powerLawTails_TF1(), MuonResidualsFitter_pureGaussian_TF1(), SimG4HcalHitCluster::my_cosh(), SimG4HcalHitCluster::my_sinh(), ElectronTaggerMLP::neuron0x9e6c030(), ElectronTaggerMLP::neuron0x9e6c1e0(), ElectronTaggerMLP::neuron0x9e6c478(), ElectronTaggerMLP::neuron0x9e6c710(), ElectronTaggerMLP::neuron0x9e6c9a8(), ElectronTaggerMLP::neuron0x9e6ccc8(), ElectronTaggerMLP::neuron0x9e6cf18(), ElectronTaggerMLP::neuron0x9e6d1b0(), ElectronIdMLP::neuron0x9f44320(), ElectronIdMLP::neuron0x9f445f0(), ElectronIdMLP::neuron0x9f449b8(), ElectronIdMLP::neuron0x9f44cb0(), ElectronIdMLP::neuron0x9f44f78(), ElectronIdMLP::neuron0x9f45080(), ElectronIdMLP::neuron0x9f453c0(), ElectronIdMLP::neuron0x9f45720(), ElectronIdMLP::neuron0x9f45a80(), ElectronIdMLP::neuron0x9f46098(), ElectronIdMLP::neuron0x9f463d8(), ElectronIdMLP::neuron0x9f46740(), MuonTaggerNoIPMLP::neuron0xb50d328(), MuonTaggerNoIPMLP::neuron0xb50d550(), MuonTaggerNoIPMLP::neuron0xb50d810(), MuonTaggerNoIPMLP::neuron0xb50dad0(), MuonTaggerNoIPMLP::neuron0xb50de18(), MuonTaggerNoIPMLP::neuron0xb50e090(), MuonTaggerNoIPMLP::neuron0xb50e350(), MuonTaggerNoIPMLP::neuron0xb50e5c0(), MuonTaggerNoIPMLP::neuron0xb50e6c8(), MuonTaggerNoIPMLP::neuron0xb50e968(), MuonTaggerNoIPMLP::neuron0xb50ec28(), MuonTaggerNoIPMLP::neuron0xb50eee8(), MuonTaggerNoIPMLP::neuron0xb50f1a8(), MuonTaggerNoIPMLP::neuron0xb50f4f0(), MuonTaggerNoIPMLP::neuron0xb50fae8(), MuonTaggerNoIPMLP::neuron0xb50fda8(), MuonTaggerNoIPMLP::neuron0xb510310(), MuonTaggerNoIPMLP::neuron0xb510650(), MuonTaggerNoIPMLP::neuron0xb510a58(), MuonTaggerNoIPMLP::neuron0xb510f10(), MuonTaggerMLP::neuron0xc447638(), MuonTaggerMLP::neuron0xc4478b0(), MuonTaggerMLP::neuron0xc447b98(), MuonTaggerMLP::neuron0xc447f08(), MuonTaggerMLP::neuron0xc4481a8(), MuonTaggerMLP::neuron0xc448490(), MuonTaggerMLP::neuron0xc448700(), MuonTaggerMLP::neuron0xc448808(), MuonTaggerMLP::neuron0xc448af0(), MuonTaggerMLP::neuron0xc448dd8(), MuonTaggerMLP::neuron0xc4490c0(), MuonTaggerMLP::neuron0xc4493a8(), MuonTaggerMLP::neuron0xc449a98(), MuonTaggerMLP::neuron0xc449d80(), MuonTaggerMLP::neuron0xc44a068(), MuonTaggerMLP::neuron0xc44a350(), MuonTaggerMLP::neuron0xc44a968(), MuonTaggerMLP::neuron0xc44aca8(), MuonTaggerMLP::neuron0xc44b0b0(), MuonTaggerMLP::neuron0xc44b720(), PFAlgo::nSigmaHCAL(), ESShape::operator()(), backgroundFunctionType2::operator()(), reco::parser::exp_f::operator()(), backgroundFunctionType4::operator()(), backgroundFunctionType10::operator()(), fftjetcms::EtaAndPtLookupPeakSelector::operator()(), function::SmoothStepFunction::operator()(), backgroundFunctionType6::operator()(), fftjetcms::EtaAndPtDependentPeakSelector::operator()(), backgroundFunctionType7::operator()(), backgroundFunctionType8::operator()(), backgroundFunctionType9::operator()(), GflashEMShowerProfile::parameterization(), BSpdfsFcn::PDFGauss_d(), BSpdfsFcn::PDFGauss_d_resolution(), BSpdfsFcn::PDFGauss_z(), ChargeDividerFP420::PeakShape(), EcalUncalibRecHitFixedAlphaBetaAlgo< C >::PerformAnalyticFit(), L1GctJetFinderParams::pfCorrect(), res::HelperJet::phi(), DeterministicAnnealing::phi(), res::HelperElectron::phi(), GeometricAnnealing::phi(), res::HelperMET::phi(), res::HelperMuon::phi(), EMECALShowerParametrization::pHom(), TopologyWorker::planes_sphe(), TopologyWorker::planes_sphe_wei(), MuonBremsstrahlungSimulator::poisson(), BremsstrahlungSimulator::poisson(), reweight::PoissonMeanShifter::PoissonMeanShifter(), edm::ExpoRandomPtGunProducer::produce(), L2MuonSeedGenerator::produce(), EcalDigiSelector::produce(), edm::FlatRandomEGunSource::produce(), edm::ExpoRandomPtGunSource::produce(), edm::FlatRandomOneOverPtGunProducer::produce(), PreshowerClusterShapeProducer::produce(), edm::FlatRandomPtGunProducer::produce(), TtSemiLepHitFitProducer< LeptonCollection >::produce(), edm::FlatRandomPtGunSource::produce(), edm::FlatRandomEGunProducer::produce(), ElectronSqPtTkIsolationProducer::produce(), MuonSimHitProducer::produce(), EgammaHLTEcalRecIsolationProducer::produce(), edm::MultiParticleInConeGunProducer::produce(), EgammaEcalRecHitIsolationProducer::produce(), edm::MultiParticleInConeGunSource::produce(), PiZeroDiscriminatorProducer::produce(), DebugProposal::Propose(), EMECALShowerParametrization::pSam(), EcalUncalibRecHitFixedAlphaBetaAlgo< C >::pulseShapeFunction(), EcalUncalibRecHitRecAnalFitAlgo< EBDataFrame >::pulseShapeFunction(), TFParams::pulseShapepj(), TFParams::pulseShapepj2(), stor::DQMEventStore< DQMEventMsg, EventRetriever< RegInfo, QueueCollectionPtr >, StateMachine >::purge(), RPCpg::rate(), EMECALShowerParametrization::rCSam(), HcalSimpleRecAlgo::reconstruct(), HITRegionalPixelSeedGenerator::regions(), PFCandConnector::rescaleFactor(), PFJetFilter::response(), RooFit::rho(), CutBasedElectronID::robustSelection(), EMECALShowerParametrization::rTHom(), EMECALShowerParametrization::rTSam(), scaleFunctionType9< T >::scale(), scaleToEt(), BSFitter::scanPDF(), HDRShower::setFuncParam(), HcalQie::shape(), CSCGasCollisions::simulate(), smearFunctionType3::smear(), smearFunctionType4::smear(), smearFunctionType5::smear(), smearFunctionType1::smear(), smearFunctionType2::smear(), pat::ObjectSpatialResolution< T >::smearAngles(), SingleParticleEvent::subtractEloss(), PrimaryVertexAnalyzer4PU::supf(), VerticalInterpHistPdf::syncTotal(), kinem::theta(), res::HelperJet::theta(), res::HelperMuon::theta(), res::HelperElectron::theta(), theta_from_eta(), fireworks::thetaBins(), HDRShower::thetaFunction(), PreshowerLayer2Properties::thickness(), PreshowerLayer1Properties::thickness(), HcalNumberingFromDDD::tileHB(), HcalNumberingFromDDD::tileHE(), HcalTB04Analysis::timeOfFlight(), HcalTestAnalysis::timeOfFlight(), spr::timeOfFlight(), GflashHadronShowerProfile::twoGammaProfile(), HcalNumberingFromDDD::unitID(), IncompleteGammaComplement::value(), Utils::VectorEPRtoXYZ(), pftools::Utils::VectorEPRtoXYZ(), reco::isodeposit::AbsThresholdVetoFromTransverse::veto(), reco::isodeposit::ThresholdVetoFromTransverse::veto(), VVIObj::VVIObj(), RPCConst::vxMuRate(), edm::Lumi3DReWeighting::weight3D_init(), reweight::LumiReWeighting::weight3D_init(), and ECALRecHitAnalyzer::WriteECALRecHits().

Definition at line 1109 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::fig = plt.figure()

Definition at line 1084 of file create_public_lumi_plots.py.

create_public_lumi_plots::file_suffix = color_scheme.file_suffix

Definition at line 1082 of file create_public_lumi_plots.py.

Definition at line 1124 of file create_public_lumi_plots.py.

Definition at line 1831 of file create_public_lumi_plots.py.

string create_public_lumi_plots::help = "Ignore all cached lumiCalc results "

Definition at line 439 of file create_public_lumi_plots.py.

Definition at line 953 of file create_public_lumi_plots.py.

string create_public_lumi_plots::histtype = "stepfilled"

Definition at line 1107 of file create_public_lumi_plots.py.

Referenced by getAnyHisto(), getAnyIMG(), and htmlAnyHisto().

Definition at line 448 of file create_public_lumi_plots.py.

Definition at line 1089 of file create_public_lumi_plots.py.

Initial value:
00001 ["PROTPHYS", "IONPHYS", "PAPHYS",
00002                      "2013_amode_bug_workaround"]

Definition at line 62 of file create_public_lumi_plots.py.

string create_public_lumi_plots::label = "Max. inst. lumi.: %.2f %s"

Definition at line 1110 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::last_day_from_cache = min(today - datetime.timedelta(days=2), date_end)

Definition at line 665 of file create_public_lumi_plots.py.

Definition at line 64 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::lines = in_file.readlines()

Definition at line 879 of file create_public_lumi_plots.py.

Definition at line 762 of file create_public_lumi_plots.py.

Definition at line 761 of file create_public_lumi_plots.py.

Definition at line 1108 of file create_public_lumi_plots.py.

Referenced by ProcessNormalization::addAsymmLogNormal(), ProcessNormalization::addLogNormal(), WeakEffectsWeightProducer::alphaQED(), FSRWeightProducer::alphaRatio(), RooPower::analyticalIntegral(), MCPhotonAnalyzer::analyze(), ValidationMisalignedTracker::analyze(), Rivet::CMS_EWK_11_021::analyze(), L1O2OTestAnalyzer::analyze(), evf::ExceptionGenerator::analyze(), ESTimingTask::analyze(), ZMuMuEfficiency::analyze(), EcalRecHitsValidation::analyze(), EcalDigisValidation::analyze(), DQMHOAlCaRecoStream::analyze(), HcalNoiseMonitor::analyze(), L1CondDBIOVWriter::analyze(), EcalSimHitsValidation::analyze(), TrackerHitAnalyzer::analyze(), DQMSourceExample::analyze(), EcalPreshowerSimHitsValidation::analyze(), PrimaryVertexAnalyzer4PU::analyzeVertexCollection(), PrimaryVertexAnalyzer4PU::analyzeVertexCollectionTP(), PhotonFix::asinh(), TopDiLeptonDQM::beginJob(), TopHLTDiMuonDQM::beginJob(), EnergyLossProducer::beginRun(), DAClusterizerInZ::beta0(), GsfBetheHeitlerUpdator::BetheHeitlerVariance(), BremsstrahlungSimulator::brem(), evf::BU::BU(), FWPFEcalRecHitLegoProxyBuilder::build(), CSCSectorReceiverMiniLUT::calcGlobalEtaMEMini(), LRHelpFunctions::calcLRval(), ClusterShapeAlgo::Calculate_Covariances(), ClusterShapeAlgo::Calculate_EnergyDepTopology(), PositionCalc::Calculate_Location(), PFClusterAlgo::calculateClusterPosition(), TBPositionCalc::CalculateCMSPos(), DirectTrackerNavigation::calculateEta(), calculateEta(), MuonTkNavigationSchool::calculateEta(), RoadSearchCircleSeed::calculateEta(), MuonNavigationSchool::calculateEta(), ConversionLikelihoodCalculator::calculateLikelihood(), EcalClusterTools::cluster2ndMoments(), EnergyLossSimulator::compute(), MultipleScatteringUpdator::compute(), NuclearInteractionSimulator::compute(), BremsstrahlungSimulator::compute(), PairProductionSimulator::compute(), GsfMultipleScatteringUpdator::compute(), MultipleScatteringSimulator::compute(), EcalUncalibRecHitRatioMethodAlgo< C >::computeAmplitude(), EnergyLossUpdator::computeBetheBloch(), VolumeEnergyLossEstimator::computeBetheBloch(), TMarkov::computeChain(), DeDxDiscriminatorProducer::ComputeDiscriminator(), EnergyLossUpdator::computeElectrons(), VolumeEnergyLossEstimator::computeElectrons(), HDRShower::computeShower(), EcalUncalibRecHitRatioMethodAlgo< C >::computeTime(), EESelectiveReadoutTask::configFirWeights(), EcalSelectiveReadoutValidation::configFirWeights(), EBSelectiveReadoutTask::configFirWeights(), DDHCalBarrelAlgo::constructMidLayer(), DDHCalBarrelAlgo::constructSideLayer(), EGEnergyCorrector::CorrectedEnergyWithError(), MuonMETAlgo::correctMETforMuon(), VVIObjDetails::cosint(), PFClusterShapeAlgo::covariances(), EcalClusterTools::covariances(), DisplayManager::createGRecHit(), cond::RelationalAuthenticationService::RelationalAuthenticationService::credentials(), gen::TauolaInterface::decay(), Histograms::declareHistograms(), CastorTimeSlew::delay(), HcalTimeSlew::delay(), JetBProbabilityComputer::discriminator(), SimpleSecondaryVertexComputer::discriminator(), PF_PU_AssoMapAlgos::dR(), SiLinearChargeCollectionDrifter::drift(), ChargeDrifterFP420::drift(), MuScleFit::duringFastLoop(), Pi0FixedMassWindowCalibration::duringLoop(), EgammaObjects::ecalEta(), HICaloUtil::EcalEta(), EgammaSuperClusters::ecalEta(), ECALPositionCalculator::ecalEta(), ContainmentCorrectionAnalyzer::ecalEta(), EcalUncalibRecHitRecChi2Algo< C >::EcalUncalibRecHitRecChi2Algo(), Conv::elec(), EMShower::EMShower(), CalorimetryManager::EMShowerSimulation(), CaloTowersCreationAlgo::emShwrLogWeightPos(), TtSemiLepJetCombMVATrainer::endJob(), GsfElectronDataAnalyzer::endJob(), GsfElectronMCAnalyzer::endJob(), GsfElectronMCFakeAnalyzer::endJob(), GsfElectronFakeAnalyzer::endJob(), VolumeMultipleScatteringEstimator::estimate(), cscdqm::Detector::Eta(), reco::GhostTrackPrediction::eta(), RawParticle::eta(), kinem::eta(), Geom::OnePiRange< T >::eta(), fastmath::etaphi(), etaRel(), MCPizeroAnalyzer::etaTransformation(), PhotonsWithConversionsAnalyzer::etaTransformation(), MCPhotonAnalyzer::etaTransformation(), ConversionProducer::etaTransformation(), MCElectronAnalyzer::etaTransformation(), SimpleConvertedPhotonAnalyzer::etaTransformation(), SimplePhotonAnalyzer::etaTransformation(), PhotonValidator::etaTransformation(), TkConvValidator::etaTransformation(), VariablePower::eval(), ESRecHitAnalyticAlgo::EvalAmplitude(), ESRecHitSimAlgo::EvalAmplitude(), ProfiledLikelihoodRatioTestStat::Evaluate(), cacheutils::CachingAddNLL::evaluate(), SimplerLikelihoodRatioTestStat::Evaluate(), cacheutils::CachingSimNLL::evaluate(), PFPhotonAlgo::EvaluateLCorrMVA(), DDHCalFibreBundle::execute(), EnergyLossPlain::expected(), VVIObjDetails::expint(), VVIObjDetails::f1(), VVIObjDetails::f2(), fcnbg(), fcnsg(), SimG4HcalValidation::fill(), HcalTestAnalysis::fill(), HcalTB06Analysis::fillBuffer(), HcalTB04Analysis::fillBuffer(), TrackerHitProducer::fillG4MC(), PrimaryVertexAnalyzer4PU::fillTrackHistos(), EnergyScaleAnalyzer::fillTree(), ZeePlots::fillZMCInfo(), PythiaFilter::filter(), DJpsiFilter::filter(), ElectronMcSignalPostValidator::finalize(), ElectronMcFakePostValidator::finalize(), TFParams::fitpj(), GflashHadronShowerProfile::fLnE1(), GflashHadronShowerProfile::fTanh(), FWExpressionValidator::FWExpressionValidator(), FWLegoCandidate::FWLegoCandidate(), GammaFunctionGenerator::gammaFrac(), GammaFunctionGenerator::gammaInt(), GammaLn(), Gauss3DFunc(), PairProductionSimulator::gbteth(), MuonBremsstrahlungSimulator::gbteth(), BremsstrahlungSimulator::gbteth(), GaussianTailNoiseGenerator::generate_gaussian_tail(), EcalTestDevDB::generateEcalLaserAPDPNRatios(), CSCGasCollisions::generateEnergyLoss(), BaseNumericalRandomGenerator::generateExp(), ECalSD::getBirkL3(), SteppingHelixPropagator::getDeDx(), reco::PFCluster::getDepthCorrection(), DetIdAssociator::getDetIdsCloseToAPoint(), CastorSD::getEnergyDeposit(), ZdcSD::getEnergyDeposit(), EcalClusterTools::getEnergyDepTopology(), HcalNumberingFromDDD::getEta(), TopologyWorker::getetaphi(), IsolatedPixelTrackCandidateProducer::GetEtaPhiAtEcal(), PythiaFilterIsolatedTrack::GetEtaPhiAtEcal(), HCALResponse::getHCALEnergyResponse(), CastorShowerLibraryMaker::GetKinematics(), HcalTB06BeamSD::getNames(), MaterialBudgetHcalHistos::getNames(), HCalSD::getNames(), GflashHadronShowerProfile::getNumberOfSpots(), CastorShowerLibrary::getShowerHits(), HcalTB02HcalNumberingScheme::getUnitID(), EcalClusterCrackCorrection::getValue(), EcalClusterLocalContCorrection::getValue(), EcalBasicClusterLocalContCorrection::getValue(), JetCharge::getWeight(), HFGflash::gfParameterization(), GflashHadronShowerProfile::hadronicParameterization(), HCalSD::HCalSD(), HcalTB06BeamSD::HcalTB06BeamSD(), HDShower::HDShower(), HcalHF_S9S1algorithm::HFSetFlagFromS9S1(), HFShower::HFShower(), gen::Pythia6Hadronizer::imposeProperTime(), gen::Cascade2Hadronizer::imposeProperTime(), cond::XMLAuthenticationService::XMLAuthenticationService::initialize(), ParticlePropagator::initProperDecayTime(), JetBProbabilityComputer::jetProbability(), reco::TrackProbabilityTagInfo::jetProbability(), JetProbabilityComputer::jetProbability(), EMECALShowerParametrization::k4(), LandauFP420::LandauFP420(), RooFit::Lgg_7(), CSCTFPtMethods::Likelihood(), likelihood(), CSCTFPtMethods::Likelihood2(), CSCTFPtMethods::Likelihood2011(), CSCTFPtMethods::Likelihood2_2011(), IncompleteGammaComplement::ln(), GaussianSumUtilities1D::lnPdf(), CaloTPGTranscoderULUT::loadHCALCompress(), GflashAntiProtonShowerProfile::loadParameters(), GflashProtonShowerProfile::loadParameters(), GflashKaonPlusShowerProfile::loadParameters(), GflashPiKShowerProfile::loadParameters(), GflashKaonMinusShowerProfile::loadParameters(), EcalClusterLocal::localCoordsEB(), EcalClusterLocal::localCoordsEE(), EcalClusterTools::localCovariances(), FastTemplate::Log(), CSCCrossGap::logGamma(), AsymPow::logKappaForX(), SteppingHelixPropagator::makeAtomStep(), HFClusterAlgo::makeCluster(), EMECALShowerParametrization::meanLnAlphaHom(), EMECALShowerParametrization::meanLnAlphaSam(), EMECALShowerParametrization::meanLnTHom(), EMECALShowerParametrization::meanLnTSam(), GflashHadronShowerProfile::medianLateralArm(), MuonResidualsFitter_compute_log_convolution(), MuonResidualsFitter_logGaussPowerTails(), MuonResidualsFitter_logPowerLawTails(), MuonResidualsFitter_logPureGaussian(), MuonResidualsFitter_logPureGaussian2D(), MuonResidualsFitter_logROOTVoigt(), L1CaloHcalScaleConfigOnlineProd::newObject(), EMECALShowerParametrization::nSpotsHom(), oldMUcompute(), BSpdfsFcn::operator()(), TtSemiLRSignalSelObservables::operator()(), TtDecayChannelSelector::operator()(), FcnBeamSpotFitPV::operator()(), TtHadLRSignalSelObservables::operator()(), fftjetcms::EtaAndPtLookupPeakSelector::operator()(), fit::HistoPoissonLikelihoodRatio< T >::operator()(), fftjetcms::EtaAndPtDependentPeakSelector::operator()(), reco::parser::log_f::operator()(), Fit::operator()(), SimG4HcalHitCluster::operator+=(), EnergyLossPlain::optimal(), EMECALShowerParametrization::p3(), SiPixelRecHitQuality::Packing::Packing(), GflashEMShowerProfile::parameterization(), Generator::particlePassesPrimaryCuts(), reco::PFCandidateElectronExtra::PFCandidateElectronExtra(), PFPhotonClusters::PFCrystalCoor(), PFSCEnergyCalibration::PFSCEnergyCalibration(), SiPixelTemplateSplit::PixelTempSplit(), TtFullHadronicEvent::print(), TtSemiLeptonicEvent::print(), TKinFitter::print(), TopGenEvent::print(), TtFullLeptonicEvent::print(), JetPartonMatching::print(), EcalSelectiveReadoutValidation::printAvailableHists(), TKinFitter::printMatrix(), PixelCPEBase::probabilityXY(), HcalBeamMonitor::processEvent(), cond::XMLAuthenticationService::XMLAuthenticationService::processFile(), CastorFastTowerProducer::produce(), edm::FlatRandomOneOverPtGunProducer::produce(), MuonSimHitProducer::produce(), CastorFastClusterProducer::produce(), EnergyLossProducer::produce(), RPCpg::rate(), evf::BUFUInterface::registerBU(), evf::BUFUInterface::registerFU(), SoftLepton::relativeEta(), cond::SQLMonitoringService::report(), cond::SQLMonitoringService::reportToOutputStream(), ElectronLikelihood::resultLog(), EcalClusterTools::roundnessSelectedBarrelRecHits(), RoadSearchSeedFinderAlgorithm::run(), HybridNew::runLimit(), Asymptotic::runLimit(), ecaldqm::ClusterTask::runOnBasicClusters(), TPtoRecoTrack::s_eta(), RecoTracktoTP::s_eta(), SiG4UniversalFluctuation::SampleFluctuations(), LandauFP420::SampleFluctuations(), BSFitter::scanPDF(), EcalClusterTools::scLocalCovariances(), evf::BUProxy::sendAllocate(), evf::BUProxy::sendDiscard(), HDRShower::setFuncParam(), PFElectronAlgo::SetIDOutputs(), SiPixelRecHitQuality::Packing::setProbabilityQ(), SiPixelRecHitQuality::Packing::setProbabilityXY(), HBHEPulseShapeFlagSetter::SetPulseShapeFlags(), cacheutils::CachingSimNLL::setZeroPoint(), GaussianTail::shoot(), SiG4UniversalFluctuation::SiG4UniversalFluctuation(), WeakEffectsWeightProducer::sigma0_qqbarll(), cscdqm::Utility::SignificanceLevelHigh(), cscdqm::Utility::SignificanceLevelLow(), RPCSimParam::simulate(), GflashShowino::simulateFirstInteractionPoint(), VVIObjDetails::sincosint(), pat::ObjectSpatialResolution< T >::smearAngles(), smearFunctionBase::smearEta(), HepMCValidationHelper::sortByRapidity(), MSLayersAtAngle::sum2RmRn(), PrimaryVertexAnalyzer4PU::supf(), VerticalInterpHistPdf::syncComponent(), TBposition(), hitfit::theta_to_eta(), MuonNavigableLayer::trackingRange(), muon::trackProbability(), TtFullHadSignalSel::TtFullHadSignalSel(), HcalNumberingFromDDD::unitID(), ZdcTestAnalysis::update(), PrintGeomInfoAction::update(), CastorTestAnalysis::update(), HcalTB02Analysis::update(), DoCastorAnalysis::update(), FP420Test::update(), EcalSimHitsValidProducer::update(), HcalTestAnalysis::update(), TrackingVerboseAction::update(), BscTest::update(), FWPFLegoRecHit::updateScale(), IncompleteGammaComplement::value(), cond::XMLAuthenticationService::XMLAuthenticationService::verifyFileName(), VVIObj::VVIObj(), kinem::y(), and EMECALShowerParametrization::z1().

Definition at line 1090 of file create_public_lumi_plots.py.

Definition at line 1137 of file create_public_lumi_plots.py.

create_public_lumi_plots::logo_name = color_scheme.logo_name

Definition at line 1081 of file create_public_lumi_plots.py.

Definition at line 1023 of file create_public_lumi_plots.py.

Definition at line 872 of file create_public_lumi_plots.py.

Definition at line 933 of file create_public_lumi_plots.py.

Definition at line 903 of file create_public_lumi_plots.py.

Definition at line 915 of file create_public_lumi_plots.py.

Definition at line 925 of file create_public_lumi_plots.py.

Definition at line 876 of file create_public_lumi_plots.py.

Definition at line 716 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::lumicalc_flags = "%s --without-checkforupdate "

Definition at line 697 of file create_public_lumi_plots.py.

Definition at line 476 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::lumicalc_script = cfg_parser.get("general", "lumicalc_script")

Definition at line 475 of file create_public_lumi_plots.py.

Definition at line 1161 of file create_public_lumi_plots.py.

Definition at line 1102 of file create_public_lumi_plots.py.

Definition at line 1162 of file create_public_lumi_plots.py.

Definition at line 1212 of file create_public_lumi_plots.py.

Definition at line 1092 of file create_public_lumi_plots.py.

Definition at line 766 of file create_public_lumi_plots.py.

Definition at line 1804 of file create_public_lumi_plots.py.

Definition at line 644 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::num_lines_0 = len(open(cache_file_tmp).readlines())

Definition at line 751 of file create_public_lumi_plots.py.

Definition at line 774 of file create_public_lumi_plots.py.

Definition at line 789 of file create_public_lumi_plots.py.

Definition at line 847 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::num_lines_4 = len(open(cache_file_dbg).readlines())

Definition at line 848 of file create_public_lumi_plots.py.

Definition at line 60 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::num_weeks = week_hi.isocalendar()

Definition at line 1302 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::oracle_connection_string = cfg_parser.get("general", "oracle_connection")

Definition at line 543 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::output_0 = copy.deepcopy(output)

Definition at line 726 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::output_1 = copy.deepcopy(output)

Definition at line 835 of file create_public_lumi_plots.py.

Definition at line 555 of file create_public_lumi_plots.py.

Initial value:
00001 {
00002         "PROTPHYS" : "pp",
00003         "IONPHYS" : "PbPb",
00004         "PAPHYS" : "pPb"
00005         }

Definition at line 550 of file create_public_lumi_plots.py.

Definition at line 1717 of file create_public_lumi_plots.py.

Definition at line 944 of file create_public_lumi_plots.py.

Definition at line 1061 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::str_begin_ultimate = time_begin_ultimate.strftime(DATE_FMT_STR_OUT)

Definition at line 1737 of file create_public_lumi_plots.py.

Definition at line 1062 of file create_public_lumi_plots.py.

Referenced by SiStripMonitorQuality::analyze().

Initial value:
00001 datetime.datetime.combine(lumi_data.time_begin(),
00002                                                datetime.time())

Definition at line 1055 of file create_public_lumi_plots.py.

Definition at line 1736 of file create_public_lumi_plots.py.

Initial value:
00001 datetime.datetime.combine(lumi_data.time_end(),
00002                                              datetime.time())

Definition at line 1058 of file create_public_lumi_plots.py.

list create_public_lumi_plots::times = [matplotlib.dates.date2num(i) for i in times_tmp]
list create_public_lumi_plots::times_tmp = [AtMidnight(i) for i in lumi_data.times()]

Definition at line 1039 of file create_public_lumi_plots.py.

list create_public_lumi_plots::tmp = cfg_parser.get("general", "date_begin")

Definition at line 518 of file create_public_lumi_plots.py.

Initial value:
00001 ax.legend(loc="upper left",
00002                                         bbox_to_anchor=(0.025, 0., 1., .97),
00003                                         frameon=False)

Definition at line 1113 of file create_public_lumi_plots.py.

string create_public_lumi_plots::tmp_str = " - (no data, presumably no lumi either)"

Definition at line 950 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::today = datetime.datetime.utcnow()

Definition at line 525 of file create_public_lumi_plots.py.

Definition at line 1213 of file create_public_lumi_plots.py.

Definition at line 1214 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::units = GetUnits(years[-1], accel_mode, "cum_day")

Definition at line 676 of file create_public_lumi_plots.py.

Definition at line 544 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::verbose = cfg_parser.getboolean("general", "verbose")

For running on pre 3.6 files the current needed to determine the magnetic field is taken from Conditions DB.

process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") specify tag: process.GlobalTag.globaltag = 'START36_V10::All' or use auto-cond: from Configuration.AlCa.autoCond import autoCond process.GlobalTag.globaltag = autoCond['mc'] Request EveService Extractor of geometry needed to display it in Eve. Required for "DummyEvelyser".

For running on pre 3.6 files the current needed to determine the magnetic field is taken from Conditions DB.

Required for "DummyEvelyser".

Definition at line 472 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::week = day_cur.isocalendar()

Definition at line 651 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::week_begin = date_begin.isocalendar()

Definition at line 632 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::week_end = date_end.isocalendar()

Definition at line 633 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::week_hi = AtMidWeek(lumi_data.time_end())

Definition at line 1296 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::week_lo = AtMidWeek(lumi_data.time_begin())

Definition at line 1294 of file create_public_lumi_plots.py.

Definition at line 647 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::weights_del = lumi_data.lum_del(units)

Definition at line 1043 of file create_public_lumi_plots.py.

Definition at line 1047 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::weights_del_inst = lumi_data.lum_inst_max(units)

Definition at line 1051 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::weights_inst = lumi_data.lum_inst_max(units)

Definition at line 1748 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::weights_rec = lumi_data.lum_rec(units)

Definition at line 1044 of file create_public_lumi_plots.py.

Definition at line 1048 of file create_public_lumi_plots.py.

Definition at line 1773 of file create_public_lumi_plots.py.

Definition at line 1792 of file create_public_lumi_plots.py.

Definition at line 1791 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::year = day_cur.isocalendar()
tuple create_public_lumi_plots::year_begin = date_begin.isocalendar()

Definition at line 634 of file create_public_lumi_plots.py.

tuple create_public_lumi_plots::year_end = date_end.isocalendar()

Definition at line 635 of file create_public_lumi_plots.py.

Definition at line 646 of file create_public_lumi_plots.py.

Definition at line 1829 of file create_public_lumi_plots.py.