ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/RateMonHeavyIon/loopRateMon.py
Revision: 1.1
Committed: Tue Nov 1 16:37:55 2011 UTC (13 years, 5 months ago) by grchrist
Content type: text/x-python
Branch: MAIN
CVS Tags: HEAD
Error occurred while calculating annotation data.
Log Message:
Heavy Ion version of 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)