CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes
submitPVValidationJobs.Job Class Reference

aux generator function to split lists based on http://sandrotosi.blogspot.com/2011/04/python-group-list-in-sub-lists-of-n.html about generators see also http://stackoverflow.com/questions/231767/the-python-yield-keyword-explained More...

Public Member Functions

def __del__ (self)
 
def __init__ (self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)
 
def createTheBashFile (self)
 
def createTheCfgFile (self, lfn)
 
def createTheLSFFile (self)
 
def getBatchjobId (self)
 
def getOutputBaseName (self)
 
def getOutputBaseNameWithData (self)
 
def getOutputFileName (self)
 
def setEOSout (self, theEOSdir)
 
def submit (self)
 

Static Public Attributes

 alignmentDB
 
 alignmentTAG
 
 allFromGT
 
 apeDB
 
 apeTAG
 
 applyBOWS
 
 applyEXTRACOND
 
 applyruncontrol
 
 BASH_dir
 
 batch_job_id
 
 bowDB
 
 bowTAG
 
 cfg_dir
 
 child1 = os.system(submitcommand1)
 
 CMSSW_dir
 
string config_txt = '\n\n' + CopyRights + '\n\n'
 
 data
 
 extraCondVect
 
 fin = open(template_cfg_file)
 
 fout = open(os.path.join(self.cfg_dir,self.outputCfgName),'w')
 
 gt
 
 intlumi
 
 isDA
 
 isMC
 
 job_id
 
 job_name = self.output_full_name
 
 job_number
 
 lfn_list
 
 lfn_with_quotes = map(lambda x: "\'"+x+"\'",lfn)
 
 log_dir = os.path.join(self.the_dir,"log")
 
 LSF_dir
 
 lumilist
 
 maxevents
 
 OUTDIR
 
 output_BASH_name
 
 output_full_name
 
 output_LSF_name
 
 output_number_name
 
 outputCfgName
 
 params = self.extraCondVect[element].split(',')
 
 ptcut
 
 refittertype
 
 runboundary
 
string submitcommand1 = "chmod u+x " + os.path.join(self.LSF_dir,self.output_LSF_name)
 
 template_cfg_file = os.path.join(self.the_dir,"PVValidation_T_cfg.py")
 
 the_dir
 
string theDataSet = dataset.split("/")[1]+"_"+(dataset.split("/")[2]).split("-")[0]
 
 tracktype
 
 ttrhtype
 
 vertextype
 

Detailed Description

aux generator function to split lists based on http://sandrotosi.blogspot.com/2011/04/python-group-list-in-sub-lists-of-n.html about generators see also http://stackoverflow.com/questions/231767/the-python-yield-keyword-explained

Definition at line 362 of file submitPVValidationJobs.py.

Constructor & Destructor Documentation

◆ __init__()

def submitPVValidationJobs.Job.__init__ (   self,
  dataset,
  job_number,
  job_id,
  job_name,
  isDA,
  isMC,
  applyBOWS,
  applyEXTRACOND,
  extraconditions,
  runboundary,
  lumilist,
  intlumi,
  maxevents,
  gt,
  allFromGT,
  alignmentDB,
  alignmentTAG,
  apeDB,
  apeTAG,
  bowDB,
  bowTAG,
  vertextype,
  tracktype,
  refittertype,
  ttrhtype,
  applyruncontrol,
  ptcut,
  CMSSW_dir,
  the_dir 
)

Definition at line 364 of file submitPVValidationJobs.py.

364 

◆ __del__()

def submitPVValidationJobs.Job.__del__ (   self)

Definition at line 416 of file submitPVValidationJobs.py.

416 

References submitPVValidationJobs.Job.lfn_list.

Member Function Documentation

◆ createTheBashFile()

def submitPVValidationJobs.Job.createTheBashFile (   self)

◆ createTheCfgFile()

def submitPVValidationJobs.Job.createTheCfgFile (   self,
  lfn 
)

◆ createTheLSFFile()

def submitPVValidationJobs.Job.createTheLSFFile (   self)

◆ getBatchjobId()

def submitPVValidationJobs.Job.getBatchjobId (   self)

◆ getOutputBaseName()

def submitPVValidationJobs.Job.getOutputBaseName (   self)

Definition at line 424 of file submitPVValidationJobs.py.

424 

References submitPVValidationJobs.Job.job_name.

◆ getOutputBaseNameWithData()

def submitPVValidationJobs.Job.getOutputBaseNameWithData (   self)

◆ getOutputFileName()

def submitPVValidationJobs.Job.getOutputFileName (   self)

◆ setEOSout()

def submitPVValidationJobs.Job.setEOSout (   self,
  theEOSdir 
)

Definition at line 420 of file submitPVValidationJobs.py.

420 

◆ submit()

def submitPVValidationJobs.Job.submit (   self)

Definition at line 584 of file submitPVValidationJobs.py.

584 

References submitPVValidationJobs.Job.job_id, and print().

Member Data Documentation

◆ alignmentDB

submitPVValidationJobs.Job.alignmentDB
static

Definition at line 386 of file submitPVValidationJobs.py.

◆ alignmentTAG

submitPVValidationJobs.Job.alignmentTAG
static

Definition at line 387 of file submitPVValidationJobs.py.

◆ allFromGT

submitPVValidationJobs.Job.allFromGT
static

Definition at line 385 of file submitPVValidationJobs.py.

◆ apeDB

submitPVValidationJobs.Job.apeDB
static

Definition at line 388 of file submitPVValidationJobs.py.

◆ apeTAG

submitPVValidationJobs.Job.apeTAG
static

Definition at line 389 of file submitPVValidationJobs.py.

◆ applyBOWS

submitPVValidationJobs.Job.applyBOWS
static

Definition at line 377 of file submitPVValidationJobs.py.

◆ applyEXTRACOND

submitPVValidationJobs.Job.applyEXTRACOND
static

Definition at line 378 of file submitPVValidationJobs.py.

◆ applyruncontrol

submitPVValidationJobs.Job.applyruncontrol
static

Definition at line 396 of file submitPVValidationJobs.py.

◆ BASH_dir

submitPVValidationJobs.Job.BASH_dir
static

◆ batch_job_id

submitPVValidationJobs.Job.batch_job_id
static

Definition at line 372 of file submitPVValidationJobs.py.

Referenced by submitPVValidationJobs.Job.getBatchjobId().

◆ bowDB

submitPVValidationJobs.Job.bowDB
static

Definition at line 390 of file submitPVValidationJobs.py.

◆ bowTAG

submitPVValidationJobs.Job.bowTAG
static

Definition at line 391 of file submitPVValidationJobs.py.

◆ cfg_dir

submitPVValidationJobs.Job.cfg_dir
static

◆ child1

submitPVValidationJobs.Job.child1 = os.system(submitcommand1)
static

Definition at line 589 of file submitPVValidationJobs.py.

◆ CMSSW_dir

submitPVValidationJobs.Job.CMSSW_dir
static

◆ config_txt

string submitPVValidationJobs.Job.config_txt = '\n\n' + CopyRights + '\n\n'
static

Definition at line 449 of file submitPVValidationJobs.py.

◆ data

submitPVValidationJobs.Job.data
static

◆ extraCondVect

submitPVValidationJobs.Job.extraCondVect
static

Definition at line 379 of file submitPVValidationJobs.py.

◆ fin

submitPVValidationJobs.Job.fin = open(template_cfg_file)
static

Definition at line 447 of file submitPVValidationJobs.py.

◆ fout

submitPVValidationJobs.Job.fout = open(os.path.join(self.cfg_dir,self.outputCfgName),'w')
static

Definition at line 443 of file submitPVValidationJobs.py.

◆ gt

submitPVValidationJobs.Job.gt
static

Definition at line 384 of file submitPVValidationJobs.py.

◆ intlumi

submitPVValidationJobs.Job.intlumi
static

Definition at line 382 of file submitPVValidationJobs.py.

◆ isDA

submitPVValidationJobs.Job.isDA
static

Definition at line 375 of file submitPVValidationJobs.py.

◆ isMC

submitPVValidationJobs.Job.isMC
static

◆ job_id

submitPVValidationJobs.Job.job_id
static

Definition at line 371 of file submitPVValidationJobs.py.

Referenced by submitPVValidationJobs.Job.submit().

◆ job_name

submitPVValidationJobs.Job.job_name = self.output_full_name
static

◆ job_number

submitPVValidationJobs.Job.job_number
static

Definition at line 370 of file submitPVValidationJobs.py.

◆ lfn_list

submitPVValidationJobs.Job.lfn_list
static

Definition at line 414 of file submitPVValidationJobs.py.

Referenced by submitPVValidationJobs.Job.__del__().

◆ lfn_with_quotes

submitPVValidationJobs.Job.lfn_with_quotes = map(lambda x: "\'"+x+"\'",lfn)
static

Definition at line 475 of file submitPVValidationJobs.py.

◆ log_dir

submitPVValidationJobs.Job.log_dir = os.path.join(self.the_dir,"log")
static

Definition at line 515 of file submitPVValidationJobs.py.

◆ LSF_dir

submitPVValidationJobs.Job.LSF_dir
static

◆ lumilist

submitPVValidationJobs.Job.lumilist
static

Definition at line 381 of file submitPVValidationJobs.py.

◆ maxevents

submitPVValidationJobs.Job.maxevents
static

Definition at line 383 of file submitPVValidationJobs.py.

◆ OUTDIR

submitPVValidationJobs.Job.OUTDIR
static

◆ output_BASH_name

submitPVValidationJobs.Job.output_BASH_name
static

◆ output_full_name

submitPVValidationJobs.Job.output_full_name
static

◆ output_LSF_name

submitPVValidationJobs.Job.output_LSF_name
static

◆ output_number_name

submitPVValidationJobs.Job.output_number_name
static

◆ outputCfgName

submitPVValidationJobs.Job.outputCfgName
static

◆ params

submitPVValidationJobs.Job.params = self.extraCondVect[element].split(',')
static

Definition at line 486 of file submitPVValidationJobs.py.

◆ ptcut

submitPVValidationJobs.Job.ptcut
static

Definition at line 397 of file submitPVValidationJobs.py.

◆ refittertype

submitPVValidationJobs.Job.refittertype
static

Definition at line 394 of file submitPVValidationJobs.py.

◆ runboundary

submitPVValidationJobs.Job.runboundary
static

Definition at line 380 of file submitPVValidationJobs.py.

◆ submitcommand1

string submitPVValidationJobs.Job.submitcommand1 = "chmod u+x " + os.path.join(self.LSF_dir,self.output_LSF_name)
static

Definition at line 588 of file submitPVValidationJobs.py.

◆ template_cfg_file

submitPVValidationJobs.Job.template_cfg_file = os.path.join(self.the_dir,"PVValidation_T_cfg.py")
static

Definition at line 445 of file submitPVValidationJobs.py.

◆ the_dir

submitPVValidationJobs.Job.the_dir
static

◆ theDataSet

string submitPVValidationJobs.Job.theDataSet = dataset.split("/")[1]+"_"+(dataset.split("/")[2]).split("-")[0]
static

Definition at line 367 of file submitPVValidationJobs.py.

◆ tracktype

submitPVValidationJobs.Job.tracktype
static

Definition at line 393 of file submitPVValidationJobs.py.

◆ ttrhtype

submitPVValidationJobs.Job.ttrhtype
static

Definition at line 395 of file submitPVValidationJobs.py.

◆ vertextype

submitPVValidationJobs.Job.vertextype
static

Definition at line 392 of file submitPVValidationJobs.py.