8 const int use_g4steps = 1;
10 gSystem->Load(
"libfun4all");
11 gSystem->Load(
"libg4detectors");
12 gSystem->Load(
"libg4testbench");
13 gSystem->Load(
"libg4eval");
14 gSystem->Load(
"libtruth_eval.so");
27 TF2 *beam_profile =
new TF2(
"beam_profile",
28 "(((x**2+y**2)<=0.81)*exp(-(x**2+y**2)/0.18))+(((x**2+y**2)>0.81&&(x**2+y**2)<=25&&abs(y)<1.)*0.9*exp(-4.5)/(sqrt(x**2+y**2)))",-5,5,-5,5);
109 string(
"DSTReader.root"));
134 std::cout <<
"All done" << std::endl;
int registerInputManager(Fun4AllInputManager *InManager)
void set_int_param(const std::string &name, const int ival)
void set_load_all_particle(bool b)
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()
static void ExportGeomtry(PHCompositeNode *topNode, const std::string &geometry_file)
DST node -> TGeoManager -> export files, like gdml, .root or .C formats.
void SuperDetector(const std::string &name)
void set_double_param(const std::string &name, const double dval)
int registerSubsystem(SubsysReco *subsystem, const std::string &topnodename="TOP")
void set_field(const float tesla)
set default magnetic field strength with a constant magnetic field. Only valid if set_field_map() is ...
int run(const int nevnts=0, const bool require_nevents=false)
run n events (0 means up to end of file)
int Fun4All_G4_E1039_R1(const int nEvents=1)
int registerOutputManager(Fun4AllOutputManager *manager)
void set_save_vertex(bool b)
Switch for vertex.
void AddNode(const std::string &name)
PHCompositeNode * topNode() const
void set_save_particle(bool b)
Switch for saving any particles at all.
void set_string_param(const std::string &name, const std::string &sval)
void SetWorldSizeX(const double sx)
void set_beam_profile(TF2 *beamProfile)
void SetPhysicsList(const std::string &s)
virtual void set_vtx(const double x, const double y, const double z)
SubsysReco * getSubsysReco(const std::string &name)
virtual void Verbosity(const int ival)
Sets the verbosity of this module (0 by default=quiet).
void set_load_active_particle(bool b)
load all particle that produced a saved hit
void SetActive(const int i=1)
virtual void set_name(const std::string &particle="proton")
virtual void set_mom(const double x, const double y, const double z)
PHG4ParticleGun * get_gun(const char *name="PGUN")
void registerSubsystem(PHG4Subsystem *subsystem)
register subsystem
void SetWorldSizeZ(const double sz)
void SetWorldSizeY(const double sy)