8 const bool use_pythia8 =
true;
9 const bool use_gun =
false;
14 gSystem->Load(
"libPHPythia8.so");
44 gSystem->Load(
"libg4testbench");
68 gSystem->Load(
"libg4eval");
88 std::cout <<
"All done" << std::endl;
int registerInputManager(Fun4AllInputManager *InManager)
void set_load_all_particle(bool b)
void AddParticles(std::string particles)
PHG4DSTReader save information from DST to an evaluator, which could include hit. particle...
void SetWorldMaterial(const std::string &s)
void SetWorldShape(const std::string &s)
static Fun4AllServer * instance()
int Fun4Pythia8Demo(const int nEvents=1)
int registerSubsystem(SubsysReco *subsystem, const std::string &topnodename="TOP")
void set_config_file(const char *cfg_file)
int run(const int nevnts=0, const bool require_nevents=false)
run n events (0 means up to end of file)
int registerOutputManager(Fun4AllOutputManager *manager)
void set_save_vertex(bool b)
Switch for vertex.
void set_save_particle(bool b)
Switch for saving any particles at all.
void SetWorldSizeX(const double sx)
void SetPhysicsList(const std::string &s)
virtual void set_vtx(const double x, const double y, const double z)
void set_load_active_particle(bool b)
load all particle that produced a saved hit
void register_trigger(PHPy8GenTrigger *theTrigger)
set event selection criteria
virtual void set_name(const std::string &particle="proton")
virtual void set_mom(const double x, const double y, const double z)
void registerSubsystem(PHG4Subsystem *subsystem)
register subsystem
void SetWorldSizeZ(const double sz)
void SetWorldSizeY(const double sy)