Esempio n. 1
0
lcfivertex_ov.setOutputFile("lcfivertex.slcio")#NEVER CHANGE THIS, this file is not stored in any case

#Final step. Outpufile is resolved automatically 
lcsim_postpandora_ov = LCSIM()
lcsim_postpandora_ov.getInputFromApp(lcfivertex_ov)
lcsim_postpandora_ov.setVersion('CLIC_CDR')#This will change only once
lcsim_postpandora_ov.setSteeringFile("clic_cdr_postPandoraOverlay.lcsim")#This will change only once
lcsim_postpandora_ov.setTrackingStrategy(tracking_strategy)
#lcsim_postpandora_ov.setDetectorModel(detector_model)

############################################
#What is below WILL NEVER NEED TO BE TOUCHED 
#(I'm not kidding, if you touch and break, not my problem)
#
if activesplitstdhep and meta:
  pstdhepsplit =  SIDProductionJob()
  pstdhepsplit.setLogLevel("verbose")
  pstdhepsplit.setProdType('Split')
  res = pstdhepsplit.setInputDataQuery(meta)
  if not res['OK']:
    print(res['Message'])
    exit(1)
  pstdhepsplit.setOutputSE("CERN-SRM")
  wname = process+"_"+str(energy)+"_split"
  wname += additional_name  
  pstdhepsplit.setWorkflowName(wname)
  pstdhepsplit.setProdGroup(analysis+"_"+str(energy))
  
  #Add the application
  res = pstdhepsplit.append(stdhepsplit)
  if not res['OK']:
Esempio n. 2
0
stdhepsplit.setNumberOfEventsPerFile(nEvtsPerJob)

## Simulation
slic = SLIC()
slic.setVersion(slicVersion)
slic.setSteeringFile(slicMacro)
slic.setDetectorModel(detectorModel)
slic.setNumberOfEvents(nEvtsPerJob)

############################################
#What is below WILL NEVER NEED TO BE TOUCHED
#(I'm not kidding, if you touch and break, not my problem)
#
# Define production step splitting the stdhep files
if activesplitstdhep and meta:
    pstdhepsplit = SIDProductionJob()
    pstdhepsplit.setLogLevel('verbose')
    pstdhepsplit.setProdType('Split')
    res = pstdhepsplit.setInputDataQuery(meta)
    if not res['OK']:
        print res['Message']
        exit(1)
    pstdhepsplit.setOutputSE(outputSRM)
    wname = '%s_%s_%s_split' % (process, energy, polarisation)
    if nameAppendix:
        wname += '_%s' % (nameAppendix)
    pstdhepsplit.setWorkflowName(wname)
    pstdhepsplit.setProdGroup('%s_%s_%s' % (groupPrefix, process, energy))

    #Add the application
    res = pstdhepsplit.append(stdhepsplit)
stdhepsplit.setNumberOfEventsPerFile( nEvtsPerJob )

## Simulation 
slic = SLIC()
slic.setVersion( slicVersion )
slic.setSteeringFile( slicMacro )
slic.setDetectorModel( detectorModel )
slic.setNumberOfEvents( nEvtsPerJob )

############################################
#What is below WILL NEVER NEED TO BE TOUCHED 
#(I'm not kidding, if you touch and break, not my problem)
#
# Define production step splitting the stdhep files
if activesplitstdhep and meta:
  pstdhepsplit =  SIDProductionJob()
  pstdhepsplit.setLogLevel( 'verbose' )
  pstdhepsplit.setProdType( 'Split' )
  res = pstdhepsplit.setInputDataQuery(meta)
  if not res['OK']:
    print res['Message']
    exit(1)
  pstdhepsplit.setOutputSE( outputSRM )
  wname = '%s_%s_%s_split' % (process, energy, polarisation )
  if nameAppendix:
    wname += '_%s' % ( nameAppendix )  
  pstdhepsplit.setWorkflowName(wname)
  pstdhepsplit.setProdGroup( '%s_%s_%s' % ( groupPrefix, process, energy ) )
  
  #Add the application
  res = pstdhepsplit.append(stdhepsplit)
Esempio n. 4
0
#Final step. Outpufile is resolved automatically
lcsim_postpandora_ov = LCSIM()
lcsim_postpandora_ov.getInputFromApp(lcfivertex_ov)
lcsim_postpandora_ov.setVersion('CLIC_CDR')  #This will change only once
lcsim_postpandora_ov.setSteeringFile(
    "clic_cdr_postPandoraOverlay.lcsim")  #This will change only once
lcsim_postpandora_ov.setTrackingStrategy(tracking_strategy)
#lcsim_postpandora_ov.setDetectorModel(detector_model)

############################################
#What is below WILL NEVER NEED TO BE TOUCHED
#(I'm not kidding, if you touch and break, not my problem)
#
if activesplitstdhep and meta:
    pstdhepsplit = SIDProductionJob()
    pstdhepsplit.setLogLevel("verbose")
    pstdhepsplit.setProdType('Split')
    res = pstdhepsplit.setInputDataQuery(meta)
    if not res['OK']:
        print res['Message']
        exit(1)
    pstdhepsplit.setOutputSE("CERN-SRM")
    wname = process + "_" + str(energy) + "_split"
    wname += additional_name
    pstdhepsplit.setWorkflowName(wname)
    pstdhepsplit.setProdGroup(analysis + "_" + str(energy))

    #Add the application
    res = pstdhepsplit.append(stdhepsplit)
    if not res['OK']: