parameters: (self, jobDir, value )
docstring: Prepare one job. This function is called by the base class.
docstring_summary: Prepare one job. This function is called by the base class.
docstring_tokens: Prepare one job . This function is called by the base class .
function: def PrepareJobUser(self, jobDir, value ):
          '''Prepare one job. This function is called by the base class.'''
          print(value)
          print(components[value])
  
          #prepare the batch script
          scriptFileName = jobDir+'/batchScript.sh'
          scriptFile = open(scriptFileName,'w')
          storeDir = self.remoteOutputDir_.replace('/castor/cern.ch/cms','')
          mode = self.RunningMode(options.batch)
          if mode == 'LXPLUS':
              scriptFile.write( batchScriptCERN( jobDir, storeDir ) ) 
          elif mode == 'PSI':
              scriptFile.write( batchScriptPSI ( value, jobDir, storeDir ) ) # storeDir not implemented at the moment
          elif mode == 'LOCAL':
              scriptFile.write( batchScriptLocal( storeDir, value) )  # watch out arguments are swapped (although not used)
          elif mode == 'PISA' :
              scriptFile.write( batchScriptPISA( storeDir, value) ) 	
          elif mode == 'PADOVA' :
              scriptFile.write( batchScriptPADOVA( value, jobDir) )        
          elif mode == 'IC':
              scriptFile.write( batchScriptIC(jobDir) )
          scriptFile.close()
          os.system('chmod +x %s' % scriptFileName)
  
          shutil.copyfile(cfgFileName, jobDir+'/pycfg.py')
  #      jobConfig = copy.deepcopy(config)
  #      jobConfig.components = [ components[value] ]
          cfgFile = open(jobDir+'/config.pck','w')
          pickle.dump(  components[value] , cfgFile )
          # pickle.dump( cfo, cfgFile )
          cfgFile.close()
          if hasattr(self,"heppyOptions_"):
              optjsonfile = open(jobDir+'/options.json','w')
              optjsonfile.write(json.dumps(self.heppyOptions_))
              optjsonfile.close()
function_tokens: def PrepareJobUser ( self , jobDir , value ) : print ( value ) print ( components [ value ] ) #prepare the batch script scriptFileName = jobDir + '/batchScript.sh' scriptFile = open ( scriptFileName , 'w' ) storeDir = self . remoteOutputDir_ . replace ( '/castor/cern.ch/cms' , '' ) mode = self . RunningMode ( options . batch ) if mode == 'LXPLUS' : scriptFile . write ( batchScriptCERN ( jobDir , storeDir ) ) elif mode == 'PSI' : scriptFile . write ( batchScriptPSI ( value , jobDir , storeDir ) ) # storeDir not implemented at the moment elif mode == 'LOCAL' : scriptFile . write ( batchScriptLocal ( storeDir , value ) ) # watch out arguments are swapped (although not used) elif mode == 'PISA' : scriptFile . write ( batchScriptPISA ( storeDir , value ) ) elif mode == 'PADOVA' : scriptFile . write ( batchScriptPADOVA ( value , jobDir ) ) elif mode == 'IC' : scriptFile . write ( batchScriptIC ( jobDir ) ) scriptFile . close ( ) os . system ( 'chmod +x %s' % scriptFileName ) shutil . copyfile ( cfgFileName , jobDir + '/pycfg.py' ) #      jobConfig = copy.deepcopy(config) #      jobConfig.components = [ components[value] ] cfgFile = open ( jobDir + '/config.pck' , 'w' ) pickle . dump ( components [ value ] , cfgFile ) # pickle.dump( cfo, cfgFile ) cfgFile . close ( ) if hasattr ( self , "heppyOptions_" ) : optjsonfile = open ( jobDir + '/options.json' , 'w' ) optjsonfile . write ( json . dumps ( self . heppyOptions_ ) ) optjsonfile . close ( )