ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/RateMonShiftTool_dev/loopRateMon.py
Revision: 1.1
Committed: Tue Nov 1 16:28:07 2011 UTC (13 years, 6 months ago) by grchrist
Content type: text/x-python
Branch: MAIN
CVS Tags: V00-02-04, V00-02-03, V00-02-01, V00-01-10, V-00-01-10, V00-01-09, V00-01-08, V00-01-07, V00-01-06, V00-01-05, V00-01-04, V00-01-03, V00-01-02, V00-01-01, V00-00-34, V00-00-33, MenuAnalyzer_V00-00-02, MenuAnalyzer_V00-00-01, MenuAnalyzer_V1, V00-00-32, V00-00-31, V00-00-30, V00-00-29, V00-00-28, V00-00-27, V00-00-26, V00-00-24, V00-00-23, V00-00-22, V00-00-21, V00-00-20, V00-00-19, V00-00-18, V00-00-17, V00-00-16, V00-00-15, V00-00-14, V00-00-13, V00-00-12, V00-00-11, V00-00-10, V00-00-09, V00-00-08, V00-00-07, V00-00-05, V00-00-04, V00-00-03, V00-00-02, V00-00-01
Branch point for: V00-00-06
Log Message:
development code for rate monitoring script

File Contents

# Content
1 from RateMonitorShifterFunction import RateMon
2
3 from Page1Parser import Page1Parser
4 from GetRun import GetRun
5 import sys
6 import os
7 import cPickle as pickle
8 import getopt
9 import time
10 from ReadConfig import RateMonConfig
11 from colors import *
12
13 WBMPageTemplate = "http://cmswbm/cmsdb/servlet/RunSummary?RUN=%s&DB=cms_omds_lb"
14 WBMRunInfoPage = "https://cmswbm/cmsdb/runSummary/RunSummary_1.html"
15
16 RefRunNameTemplate = "RefRuns/Run_%s.pk"
17
18 selected_runs = []
19 runs_file = 'run_list.csv'
20 input_file = open(runs_file)
21 file_content = input_file.read()
22 for line in file_content.splitlines():
23 if line.strip():
24 [run, min_ls, max_ls] = [int(item) for item in line.split(',')]
25 selected_runs.append(run)
26 BeginningLS = 10
27 for run in selected_runs:
28 RateMon(run,BeginningLS)