SQLamarr
The stand-alone ultra-fast simulation option for the LHCb experiment
SQLamarr.HepMC2DataLoader.HepMC2DataLoader Class Reference

Data loader for HepMC2-format ASCII files. More...

Public Member Functions

def __init__ (self, SQLite3DB db)
 Acquires the reference to an open connection to the DB. More...
 
def load (self, str filename, int runNumber, int evtNumber)
 Loads an ASCII file with HepMC3::ReaderAsciiHepMC2. More...
 

Detailed Description

Data loader for HepMC2-format ASCII files.

Example.

# Create the database connection
db = SQLamarr.SQLite3DB()
# Create the data loader
data_loader = HepMCDataLoader(db)
# Create the pipeline with a CleanEventStore algorithm
clean_all = SQLamarr.Pipeline([
SQLamarr.CleanEventStore(db)
])
# For each file in an input file list,
for file in my_list_of_files:
# load the file
data_loader.load(file)
# ...do something...
# clean the database
clean_all.execute()

Definition at line 28 of file HepMC2DataLoader.py.

Constructor & Destructor Documentation

◆ __init__()

def SQLamarr.HepMC2DataLoader.HepMC2DataLoader.__init__ (   self,
SQLite3DB  db 
)

Acquires the reference to an open connection to the DB.

Definition at line 55 of file HepMC2DataLoader.py.

Member Function Documentation

◆ load()

def SQLamarr.HepMC2DataLoader.HepMC2DataLoader.load (   self,
str  filename,
int  runNumber,
int  evtNumber 
)

Loads an ASCII file with HepMC3::ReaderAsciiHepMC2.

Definition at line 59 of file HepMC2DataLoader.py.


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