hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Public Member Functions | Private Attributes | List of all members
ConfigurePython Class Reference

#include <ConfigurePython.h>

Classes

struct  ProcessorInfo
 Represents the configuration of an EventProcessor in the job. More...
 

Public Member Functions

 ConfigurePython (const std::string &pythonScript, char *args[], int nargs)
 Class constructor.
 
 ~ConfigurePython ()
 
ProcessmakeProcess ()
 

Private Attributes

int run_mode_ {-1}
 
int skip_events_ {-1}
 
int event_limit_ {-1}
 
std::vector< std::string > input_files_
 
std::vector< std::string > libraries_
 
std::vector< std::string > output_files_
 
std::vector< ProcessorInfosequence_
 

Detailed Description

Definition at line 31 of file ConfigurePython.h.

Constructor & Destructor Documentation

◆ ConfigurePython()

ConfigurePython ( const std::string &  pythonScript,
char *  args[],
int  nargs 
)

Class constructor.

This method contains all the parsing and execution of the python script.

Parameters
pythonScriptFilename location of the python script.
argsCommandline arguments to be passed to the python script.
nargsNumber of commandline arguments.

Definition at line 40 of file ConfigurePython.cxx.

◆ ~ConfigurePython()

Class destructor.

Definition at line 296 of file ConfigurePython.cxx.

Member Function Documentation

◆ makeProcess()

Process * makeProcess ( )

Create a process object based on the python file information.

Definition at line 300 of file ConfigurePython.cxx.

Member Data Documentation

◆ event_limit_

int event_limit_ {-1}
private

The maximum number of events to process, if provided in python file.

Definition at line 68 of file ConfigurePython.h.

◆ input_files_

std::vector<std::string> input_files_
private

List of input files to process in the job, if provided in python file.

Definition at line 71 of file ConfigurePython.h.

◆ libraries_

std::vector<std::string> libraries_
private

List of rules for shared libraries to load, if provided in python file.

Definition at line 74 of file ConfigurePython.h.

◆ output_files_

std::vector<std::string> output_files_
private

List of rules for output ROOT file names, if provided in python file.

Definition at line 77 of file ConfigurePython.h.

◆ run_mode_

int run_mode_ {-1}
private

The run mode of the process: 0: LCIO to ROOT 1: ROOT to Histo 2: Histo Analysis

Definition at line 62 of file ConfigurePython.h.

◆ sequence_

std::vector<ProcessorInfo> sequence_
private

The sequence of EventProcessor objects to be executed in order.

Definition at line 90 of file ConfigurePython.h.

◆ skip_events_

int skip_events_ {-1}
private

The number of events to skip.

Definition at line 65 of file ConfigurePython.h.


The documentation for this class was generated from the following files: