CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
PopulateDB.PopulateDB Class Reference

Public Member Functions

def run
 

Detailed Description

Definition at line 3 of file PopulateDB.py.

Member Function Documentation

def PopulateDB.PopulateDB.run (   self)

Definition at line 4 of file PopulateDB.py.

References HDQMDatabaseProducerConfiguration.HDQMDatabaseProducerConfiguration.AuthenticationPath, HDQMDatabaseProducerConfiguration.HDQMDatabaseProducerConfiguration.CMSSW_Version, ora::Database.Database(), HDQMDatabaseProducerConfiguration.HDQMDatabaseProducerConfiguration.Database, SelectRuns.SelectRuns.FileName, runinfo_test::RunNumber.RunNumber(), SiStripLAProfileBooker.RunNumber, HcalRaddamMuon.RunNumber, HcalHBHEMuonAnalyzer.RunNumber, hcaldqm::quantity::RunNumber.RunNumber(), TagName.TagName(), HDQMDatabaseProducerConfiguration.HDQMDatabaseProducerConfiguration.TagName, and HDQMDatabaseProducerConfiguration.HDQMDatabaseProducerConfiguration.TemplatesDir.

Referenced by Types.EventID.cppID(), and Types.LuminosityBlockID.cppID().

4 
5  def run(self):
6  os.system("cat "+self.TemplatesDir+"/template_"+self.DetName+"HistoryDQMService_cfg.py | sed -e \"s@RUNNUMBER@"+self.RunNumber+"@g\" -e \"s@FILENAME@"+self.FileName+"@\" -e \"s@TAGNAME@"+self.TagName+"@g\" -e \"s@DATABASE@"+self.Database+"@\" -e \"s@AUTHENTICATIONPATH@"+self.AuthenticationPath+"@\" > "+self.Dir+"Run_"+self.DetName+"_"+self.RunNumber+".py")
7  print "cd "+self.CMSSW_Version+"; eval `scramv1 r -sh`; cd "+self.Dir+"; cmsRun "+self.Dir+"Run_"+self.DetName+"_"+self.RunNumber+".py > "+self.Dir+"Run_"+self.DetName+"_"+self.RunNumber+".log"
8  os.system("cd "+self.CMSSW_Version+"; eval `scramv1 r -sh`; cd "+self.Dir+"; cmsRun "+self.Dir+"Run_"+self.DetName+"_"+self.RunNumber+".py > "+self.Dir+"Run_"+self.DetName+"_"+self.RunNumber+".log")