ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/RateMonShiftTool_dev/loopRateMon.py
Revision: 1.2
Committed: Wed Oct 31 16:54:13 2012 UTC (12 years, 6 months ago) by awoodard
Content type: text/x-python
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
State: FILE REMOVED
Log Message:
depreciated

File Contents

# User Rev Content
1 grchrist 1.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)