ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
MooRTT_makePage.MooRTT_makePage Class Reference
Collaboration diagram for MooRTT_makePage.MooRTT_makePage:

Public Member Functions

def __init__ (self, argDict={})
 
def run (self)
 

Public Attributes

 branch
 
 jobDisplayName
 
 jobGroup
 
 name
 
 package
 
 release
 
 runPath
 
 logger
 

Detailed Description

Definition at line 10 of file MooRTT_makePage.py.

Constructor & Destructor Documentation

◆ __init__()

def MooRTT_makePage.MooRTT_makePage.__init__ (   self,
  argDict = {} 
)

Definition at line 11 of file MooRTT_makePage.py.

11  def __init__(self,argDict={}):
12 
13  # access my args from the dictionary passed in, and convert any basic types
14  # self.myArg = argDict.get('MyArg') # = the Python string type '3'
15  # self.myArg = int(self.myArg) # = the Python integer type 3
16 
17  # access the RTT descriptor instance
18  rttDescriptor = argDict.get('JobDescriptor')
19 
20  # grab some stuff from it
21  self.branch = str(rttDescriptor.paths.branch)
22  self.jobDisplayName = str(rttDescriptor.jobDisplayName)
23  self.jobGroup = str(rttDescriptor.jobGroup)
24  self.name = str(rttDescriptor.name)
25  self.package = str(rttDescriptor.package)
26  self.release = str(rttDescriptor.paths.release)
27  self.runPath = str(rttDescriptor.runPath)
28 
29  self.logger = Logger()
30 

Member Function Documentation

◆ run()

def MooRTT_makePage.MooRTT_makePage.run (   self)

Definition at line 31 of file MooRTT_makePage.py.

31  def run(self):
32  logfile = open(self.runPath + "/makePage.log",'a')
33  logfile.write("Starting makePage.py run method\n")
34  jobinfolist = { "Package" : self.package ,
35  "Name" : self.name ,
36  "Branch" : self.branch ,
37  "Release" : self.release }
38  logfile.write("jobinfolist: \n")
39 
40  output = open("ALL_MooPerformanceResults.html","w")
41  output.write("<h2><TABLE BORDER=6 CELLSPACING=4 CELLPADDING=4>\n")
42  for key in jobinfolist.keys():
43  logfile.write(" " + key + ": " + jobinfolist[key] +"\n")
44  output.write(" <TR><TD><b>" + key + "</b></TD><TD>" + jobinfolist[key] + "</TD></TR>\n")
45  output.write(" <TR><TD><b>" + "Date" + "</b></TD><TD>" + os.popen("date").readline().strip() + "</TD></TR>\n")
46  output.write("</TABLE>\n\n")
47  output.write("</h2>")
48 
49  # output the relevant text files
50  txtFiles = ["trkPerformance_CombinedMuonTracks.txt",
51  "trkPerformance_ExtrapolatedMuonTracks.txt",
52  "trkSummary.txt"]
53  for fileName in txtFiles:
54  strArray = glob.glob(fileName)
55  if (len(strArray) > 0):
56  fIn = open(strArray[0])
57  lines = fIn.readlines()
58  output.write("<h3>" + str(fileName).strip() + "</h3>")
59  output.write("<pre>")
60  for i in range(len(lines)):
61  output.write(str(lines[i].strip()) + "\n")
62  output.write("</pre>")
63 
64  # add the gif plots
65  gifFiles = ["MS_Bdl", "MS_material", "match_quality", "fit_chi2",
66  "qOverP_res", "qOverP_pull", "qOverP_CB_resByRegion", "qOverP_SA_resByRegion", "qOverP_CB_pullByRegion", "qOverP_SA_pullByRegion",
67  "Pt_res", "Pt_pull", "Pt_CB_resByRegion", "Pt_SA_resByRegion", "Pt_CB_pullByRegion", "Pt_SA_pullByRegion", "Pt_MG_pullByRegion",
68  "D0_res", "D0_resLow", "D0_pull", "D0_SA_resByRegion", "D0_SA_resByRegionLow", "D0_SA_pullByRegion",
69  "Z0_res", "Z0_resLow", "Z0_pull", "Z0_SA_resByRegion", "Z0_SA_resByRegionLow", "Z0_SA_pullByRegion",
70  "Phi_res", "Phi_pull", "Phi_SA_resByRegion", "Phi_SA_pullByRegion",
71  "Theta_res", "Theta_pull", "Theta_SA_resByRegion", "Theta_SA_pullByRegion", "Theta_CB_pullByRegion",
72  "MG-CB", "CMF-CB", "ID-CB", "ID-CMF", "qOverP_ratio"]
73  gifTitle = ["MS field integral", "MS material", "ID+MS match quality", "fit chi2/DOF",
74  "qOverP resolution", "pull qOverP", "CB qOverP resolution", "SA qOverP resolution", "CB qOverP pull", "SA qOverP pull",
75  "Pt resolution", "pull Pt", "CB Pt resolution", "SA Pt resolution", "CB Pt pull", "SA pull Pt", "MG pull Pt",
76  "D0 resolution", "D0 resolution", "pull D0", "SA D0 resolution", "SA D0 resolution", "SA D0 pull",
77  "Z0 resolution", "Z0 resolution", "pull Z0", "SA Z0 resolution", "SA Z0 resolution", "SA Z0 pull",
78  "Phi resolution", "pull Phi", "SA Phi resolution", "SA Phi pull",
79  "Theta resolution", "pull Theta", "SA Theta resolution", "SA Theta pull", "CB Theta pull",
80  "MuGirl - combined", "CombinedMuonFit - combined", "Indet - combined", "Indet - CombinedMuonFit", "qOverP ratio"]
81 
82  #for i in range(len(gifFiles)):
83  # # print i
84  # path = str(gifFiles[i]).strip('\n') + ".gif"
85  # if os.path.isfile(str(path)):
86  # # print "File exists at path ",path
87  # output.write("<h3>" + str(gifTitle[i]).strip() + "</h3>")
88  # line = "<img src=\""+ path + "\">"
89  # output.write(line+'\n')
90 
91  output.close()
92  return 0
93 

Member Data Documentation

◆ branch

MooRTT_makePage.MooRTT_makePage.branch

Definition at line 21 of file MooRTT_makePage.py.

◆ jobDisplayName

MooRTT_makePage.MooRTT_makePage.jobDisplayName

Definition at line 22 of file MooRTT_makePage.py.

◆ jobGroup

MooRTT_makePage.MooRTT_makePage.jobGroup

Definition at line 23 of file MooRTT_makePage.py.

◆ logger

MooRTT_makePage.MooRTT_makePage.logger

Definition at line 29 of file MooRTT_makePage.py.

◆ name

MooRTT_makePage.MooRTT_makePage.name

Definition at line 24 of file MooRTT_makePage.py.

◆ package

MooRTT_makePage.MooRTT_makePage.package

Definition at line 25 of file MooRTT_makePage.py.

◆ release

MooRTT_makePage.MooRTT_makePage.release

Definition at line 26 of file MooRTT_makePage.py.

◆ runPath

MooRTT_makePage.MooRTT_makePage.runPath

Definition at line 27 of file MooRTT_makePage.py.


The documentation for this class was generated from the following file:
run
int run(int argc, char *argv[])
Definition: ttree2hdf5.cxx:28
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
Trk::open
@ open
Definition: BinningType.h:40
str
Definition: BTagTrackIpAccessor.cxx:11