CMS 3D CMS Logo

Public Member Functions

ProducePlots::ProducePlots Class Reference

List of all members.

Public Member Functions

def convertAndMove
def makePlots
def plotAllAndLast40Runs

Detailed Description

Definition at line 3 of file ProducePlots.py.


Member Function Documentation

def ProducePlots::ProducePlots::convertAndMove (   self,
  plotsDir,
  type 
)

Definition at line 32 of file ProducePlots.py.

00033                                             :
00034         # print "cd "+plotsDir+"; cp "+self.Dir+"/DeanConvert.pl .; ./DeanConvert.pl; rm -f DeanConvert.pl"
00035         # print "cp "+self.Dir+"/html/"+self.DetName+"HDQMInspector.html "+plotsDir+"/index.html"
00036         # print "rm -rf "+self.StorageDir+"backup/"+self.RunType+"/"+type
00037         # print "mkdir -pv "+self.StorageDir+"backup/"+self.RunType+"/"+type
00038         # print "mv "+destinationDir+"/Plots_"+self.DetName+"HistoricInfoClient "+self.StorageDir+"backup/"+self.RunType+"/"+type
00039         # print "mkdir -pv "+destinationDir
00040         # print "mv "+plotsDir+" "+destinationDir
00041         # print "cp "+self.Dir+"/index.html "+destinationDir
00042         destinationDir = self.StorageDir+"/"+self.RunType+"/"+type
00043         # Create the small images and copy the html for the expert plots
00044         os.system("cd "+plotsDir+"; cp "+self.Dir+"/DeanConvert.pl .; ./DeanConvert.pl; rm -f DeanConvert.pl")
00045         os.system("cp "+self.Dir+"/html/"+self.DetName+"HDQMInspector.html "+plotsDir+"/index.html")
00046         # Backup the old files
00047         backupDir = self.StorageDir+"backup/"+self.RunType+"/"+type
00048         os.system("rm -rf "+backupDir)
00049         os.system("mkdir -pv "+backupDir)
00050         os.system("mv "+destinationDir+"/Plots_"+self.DetName+"HistoricInfoClient "+backupDir)
00051         # Move the plots to the web area and copy the html file for the main web page
00052         os.system("mkdir -pv "+destinationDir)
00053         os.system("mv "+plotsDir+" "+destinationDir)
00054         os.system("cp "+self.Dir+"/index.html "+destinationDir)
def ProducePlots::ProducePlots::makePlots (   self)

Definition at line 4 of file ProducePlots.py.

00005                        :
00006         # print "cd "+self.CMSSW_Version+"/src; eval `scramv1 r -sh`; cd "+self.Dir+"; mkdir -pv HistoricDQMPlots/"+self.TagName+"; cd HistoricDQMPlots/"+self.TagName+"; "+self.DetName+"HDQMInspector "+self.Database+" "+self.TagName+" "+self.Password+" empty 40"
00007         # Plots without any selection
00008         plotsDir = self.Dir+"/HistoricDQMPlots/Plots_"+self.DetName+"HistoricInfoClient"
00009         self.plotAllAndLast40Runs(plotsDir, "NoSelection")
00010         # Plots with good runs selection
00011         plotsDir = self.Dir+"/HistoricDQMPlots/Plots_"+self.DetName+"HistoricInfoClient"
00012         import SelectRuns
00013         selectRuns = SelectRuns.SelectRuns()
00014         selectRuns.BaseDir = self.Dir
00015         selectRuns.Group = self.Group
00016         selectRuns.FirstRun = self.FirstRun
00017         selectRuns.FileName = self.Dir+"/SelectedGoodRuns_"+self.DetName+"_"+self.RunType+".txt"
00018         selectRuns.HLTNameFilter = ""
00019         selectRuns.QualityFlag = self.QualityFlag
00020         selectRuns.makeList()
00021         self.plotAllAndLast40Runs(plotsDir, "GoodRuns", selectRuns.FileName)

def ProducePlots::ProducePlots::plotAllAndLast40Runs (   self,
  plotsDir,
  selectionType,
  selectionFileName = "empty" 
)

Definition at line 22 of file ProducePlots.py.

00023                                                                                         :
00024         # Plot all runs
00025         os.system("mkdir -pv "+plotsDir)
00026         os.system("cd "+self.CMSSW_Version+"/src; eval `scramv1 r -sh`; cd "+plotsDir+"; "+self.DetName+"HDQMInspector "+self.Database+" "+self.TagName+" "+self.Password+" "+selectionFileName+" 1 2000000")
00027         self.convertAndMove(plotsDir, selectionType+"/AllRuns")
00028         # Plot the last 40 runs
00029         os.system("mkdir -pv "+plotsDir)
00030         os.system("cd "+self.CMSSW_Version+"/src; eval `scramv1 r -sh`; cd "+plotsDir+"; "+self.DetName+"HDQMInspector "+self.Database+" "+self.TagName+" "+self.Password+" "+selectionFileName+" 40")
00031         self.convertAndMove(plotsDir, selectionType+"/Last40Runs")