8 R__LOAD_LIBRARY(libfun4all)
9 R__LOAD_LIBRARY(libgeom_svc)
10 R__LOAD_LIBRARY(libg4detectors)
11 R__LOAD_LIBRARY(libg4dst)
18 const bool do_collimator =
true;
19 const bool do_target =
true;
20 const bool do_shielding =
true;
21 const bool do_fmag =
true;
22 const bool do_kmag =
true;
23 const bool do_absorber =
true;
24 const bool do_st1DC =
false;
25 const bool do_dphodo =
true;
27 const double collimator_pos_z = -602.36;
28 const double target_coil_pos_z = -300.;
29 const double target_l = 7.9;
30 const double target_z = (7.9-target_l)/2.;
32 const string chamberGas =
"SQ_ArCO2";
33 const string hodoMat =
"SQ_Scintillator";
54 SetupTarget(g4Reco, target_coil_pos_z, target_l, target_z, 1, 0);
70 if(!display)
return 0;
71 gGeoManager = TGeoManager::Import(
"geom.root");
72 gGeoManager->GetCurrentNode()->GetVolume()->Draw(
"ogl");
int registerInputManager(Fun4AllInputManager *InManager)
void SetupSensitiveDetectors(PHG4Reco *g4Reco, bool toggle_dphodo=true, bool toggle_dc1=false, std::string chamberGas="SQ_ArCO2", std::string hodoMat="SQ_Scintillator", const int verbosity=0)
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.
int registerSubsystem(SubsysReco *subsystem, const std::string &topnodename="TOP")
int run(const int nevnts=0, const bool require_nevents=false)
run n events (0 means up to end of file)
void SetupInsensitiveVolumes(PHG4Reco *g4Reco, const bool toggle_shielding=true, const bool toggle_fmag=true, const bool toggle_kmag=true, const bool toggle_absorber=true, const int enable_fmag_filter=0, const double filter_max_slope=0.25, const double filter_min_energy=5.)
void SetupTarget(PHG4Reco *g4Reco, const double target_coil_pos_z=-300, const double target_l=7.9, const double target_z=0., const int use_g4steps=1, const int register_hits=0)
PHCompositeNode * topNode() const
void SetWorldSizeX(const double sx)
virtual void Verbosity(const int ival)
Sets the verbosity of this module (0 by default=quiet).
static GeomSvc * instance()
singlton instance
void SetupBeamline(PHG4Reco *g4Reco, const bool toggle_collimator=true, const double collimator_pos_z=-300, const int register_hits=0)
int Fun4DumpGeom(const bool display=true)
void SetWorldSizeZ(const double sz)
void SetWorldSizeY(const double sy)