15 #include "HepMC3/GenParticle.h"
16 #include "HepMC3/GenEvent.h"
17 #include "HepMC3/ReaderAsciiHepMC2.h"
19 #include "SQLamarr/db_functions.h"
20 #include "SQLamarr/BaseSqlInterface.h"
63 const std::string& data_source,
102 int production_vertex,
Abstract Interface for loading data to the internal database.
int insert_collision(int datasource_id, int collision, float t, float x, float y, float z)
Insert a collision in the GenEvent table.
int insert_particle(int genevent_id, int hepmc_id, int production_vertex, int end_vertex, int pid, int status, float pe, float px, float py, float pz, float m)
Insert a particle in the GenParticles table.
int insert_vertex(int genevent_id, int hepmc_id, int status, float t, float x, float y, float z, bool is_primary)
Insert a vertex in the GenVertices
int insert_event(const std::string &data_source, uint64_t run_number, uint64_t evt_number)
Insert data source reference in the DataSources table.
Abstract interface with helper functions to access an SQLite DB.
BaseSqlInterface(SQLite3DB &db)
Constructor, acquiring the database without ownership.