CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
relmon_rootfiles_spy Namespace Reference

Functions

def extract_list
 
def get_page
 

Variables

string action = "store_true"
 
tuple bcontent = basename(content)
 
tuple contents = extract_list(get_page(directory),server,options.show_url)
 
 default = False,
 
string dest = "development"
 
string directory = "%s/dqm/%s/data/browse/%s"
 
string dirtolist = ""
 
string help = "Select the development GUI instance."
 
tuple lenargs = len(args)
 
string mode = "relval"
 
tuple parser = OptionParser(usage="usage: %prog [options] dirtolist")
 

Function Documentation

def relmon_rootfiles_spy.extract_list (   page_html,
  the_server,
  display_url 
)

Definition at line 34 of file relmon_rootfiles_spy.py.

34 
35 def extract_list(page_html,the_server,display_url):
36  contents=[]
37  for line in page_html.split("<tr><td>")[1:]:
38  name=""
39  #link
40  link_start=line.find("href='")+6
41  link_end=line.find("'>")
42  #name
43  name_start=link_end+2
44  name_end=line.find("</a>")
45  if display_url:
46  contents.append(the_server+line[link_start:link_end])
47  else:
48  contents.append(line[name_start:name_end])
49  return contents
def relmon_rootfiles_spy.get_page (   url)
Get the web page listing the rootfiles. Use the X509 auth.

Definition at line 50 of file relmon_rootfiles_spy.py.

References SiPixelLorentzAngle_cfi.read.

50 
51 def get_page(url):
52  """ Get the web page listing the rootfiles. Use the X509 auth.
53  """
54  opener=build_opener(X509CertOpen())
55  datareq = Request(url)
56  datareq.add_header('authenticated_wget', "The ultimate wgetter")
57  filename=basename(url)
58  return opener.open(datareq).read()

Variable Documentation

string relmon_rootfiles_spy.action = "store_true"

Definition at line 64 of file relmon_rootfiles_spy.py.

tuple relmon_rootfiles_spy.bcontent = basename(content)

Definition at line 140 of file relmon_rootfiles_spy.py.

tuple relmon_rootfiles_spy.contents = extract_list(get_page(directory),server,options.show_url)

Definition at line 129 of file relmon_rootfiles_spy.py.

Referenced by FastLineRecognition::Cluster.add(), FastFedCablingAlgorithm.analyse(), SiStripCommissioningOfflineClient.beginRun(), SiPixelActionExecutor.fillFEDErrorSummary(), SiPixelDataQuality.fillGlobalQualityPlot(), SiPixelActionExecutor.fillGrandBarrelSummaryHistos(), SiPixelActionExecutor.fillGrandEndcapSummaryHistos(), SiStripSummaryCreator.fillGrandSummaryHistos(), SiPixelActionExecutor.fillSummary(), SiStripSummaryCreator.fillSummaryHistos(), SiPixelActionExecutor.getFEDSummaryME(), SiPixelActionExecutor.getGrandSummaryME(), FastLineRecognition.getOneLine(), SiStripSummaryCreator.getSummaryME(), SiPixelActionExecutor.getSummaryME(), L1GctGlobalHfSumAlgos.hfSumsOutput(), ContentsXRange.runTest(), ContentsYRange.runTest(), DeadChannel.runTest(), NoisyChannel.runTest(), CheckVariance.runTest(), and CalibrationHistograms.save().

string relmon_rootfiles_spy.default = False,

Definition at line 66 of file relmon_rootfiles_spy.py.

string relmon_rootfiles_spy.dest = "development"

Definition at line 65 of file relmon_rootfiles_spy.py.

string relmon_rootfiles_spy.directory = "%s/dqm/%s/data/browse/%s"

Definition at line 127 of file relmon_rootfiles_spy.py.

list relmon_rootfiles_spy.dirtolist = ""

Definition at line 116 of file relmon_rootfiles_spy.py.

string relmon_rootfiles_spy.help = "Select the development GUI instance."

Definition at line 67 of file relmon_rootfiles_spy.py.

tuple relmon_rootfiles_spy.lenargs = len(args)

Definition at line 111 of file relmon_rootfiles_spy.py.

string relmon_rootfiles_spy.mode = "relval"

Definition at line 120 of file relmon_rootfiles_spy.py.

tuple relmon_rootfiles_spy.parser = OptionParser(usage="usage: %prog [options] dirtolist")

Definition at line 61 of file relmon_rootfiles_spy.py.