EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
eicpy.build Namespace Reference

Classes

class  File
 

Functions

def processor
 
def build_list
 
def parse
 

Variables

dictionary ZIP {'.gz': 'gzip', '.bz2': 'bzip2'}
 
dictionary UNZIP {'.gz': 'gunzip', '.bz2': 'bunzip2'}
 
tuple options parse()
 
tuple files file.read()
 

Function Documentation

def eicpy.build.build_list (   filelist,
  outdir = '.',
  nevents = -1,
  nthreads = 1,
  rezip = True 
)
Build ROOT tree files from all the listed files.

Arguments:
filelist -- a list of file names
outdir -- the directory to which to write ROOT files [current directory]
nevents -- the maximum number of events per file to process [all]
nthreads -- the maximum number of threads permitted to run [1]

Zipped files (either gzip or bzip2) are unzipped then rezipped
after the ROOT file has been made.

Definition at line 103 of file build.py.

View newest version in sPHENIX GitHub at line 103 of file build.py

def eicpy.build.parse ( )
Process command line arguments and return argparse Namespace.

Definition at line 128 of file build.py.

View newest version in sPHENIX GitHub at line 128 of file build.py

def eicpy.build.processor ( )
Function run by each thread.

Pops Files from the queue and processes them until there are no files
remaining.

Definition at line 91 of file build.py.

View newest version in sPHENIX GitHub at line 91 of file build.py

Variable Documentation

list eicpy.build.files file.read()
dictionary eicpy.build.UNZIP {'.gz': 'gunzip', '.bz2': 'bunzip2'}

Definition at line 26 of file build.py.

View newest version in sPHENIX GitHub at line 26 of file build.py

dictionary eicpy.build.ZIP {'.gz': 'gzip', '.bz2': 'bzip2'}

Definition at line 25 of file build.py.

View newest version in sPHENIX GitHub at line 25 of file build.py