HPS-MC
 
Loading...
Searching...
No Matches
hpsmc.job_template Namespace Reference

Classes

class  JobData
 Very simple key-value object for storing data for each job. More...
 
class  JobTemplate
 Template engine for transforming input job template into JSON job store. More...
 
class  MaxJobsException
 Exception if max jobs are reached. More...
 

Functions

 basename (path)
 Filter to return a file base name stripped of dir and extension.
 
 extension (path)
 Filter to get file extension from string.
 
 dirname (path)
 Filter to get dir name from string.
 
 pad (num, npad=4)
 Filter to pad a number.
 
 uuid ()
 Function to get a uuid within a template.
 
 lcio_dumpevent_runnumber (path)
 Filter to get a run number by inspecting first event in slcio file.
 
 filenum (path)
 Filter to get the trailing number of a file.
 

Variables

 job_tmpl = JobTemplate()
 

Function Documentation

◆ basename()

basename (   path)

Filter to return a file base name stripped of dir and extension.

Definition at line 18 of file job_template.py.

◆ dirname()

dirname (   path)

Filter to get dir name from string.

Definition at line 28 of file job_template.py.

◆ extension()

extension (   path)

Filter to get file extension from string.

Definition at line 23 of file job_template.py.

◆ filenum()

filenum (   path)

Filter to get the trailing number of a file.

This will extract the number between the last underscore and the extension. For example 'file_name_is_number.root' will return 'number' if 'number' is actually a integer.

Definition at line 59 of file job_template.py.

◆ lcio_dumpevent_runnumber()

lcio_dumpevent_runnumber (   path)

Filter to get a run number by inspecting first event in slcio file.

Definition at line 43 of file job_template.py.

◆ pad()

pad (   num,
  npad = 4 
)

Filter to pad a number.

Definition at line 33 of file job_template.py.

◆ uuid()

uuid ( )

Function to get a uuid within a template.

Definition at line 38 of file job_template.py.

Variable Documentation

◆ job_tmpl

job_tmpl = JobTemplate()

Definition at line 312 of file job_template.py.