13 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
20 R__LOAD_LIBRARY(libinterface_main)
21 R__LOAD_LIBRARY(libfun4all)
22 R__LOAD_LIBRARY(libdecoder_maindaq)
23 R__LOAD_LIBRARY(libg4testbench)
24 R__LOAD_LIBRARY(libg4detectors)
25 R__LOAD_LIBRARY(libg4eval)
26 R__LOAD_LIBRARY(libevt_filter)
27 R__LOAD_LIBRARY(libktracker)
28 R__LOAD_LIBRARY(libonlmonserver)
33 const int run = 28692,
37 gSystem->Load(
"libinterface_main.so");
38 gSystem->Load(
"libfun4all");
39 gSystem->Load(
"libdecoder_maindaq");
40 gSystem->Load(
"libg4testbench");
41 gSystem->Load(
"libg4detectors");
42 gSystem->Load(
"libg4eval");
43 gSystem->Load(
"libktracker.so");
44 gSystem->Load(
"libonlmonserver.so");
49 const char* coda_dir =
"./";
50 const char* para_dir =
"./";
52 const char* out_dir =
"./";
56 << coda_dir <<
"/run_" << setw(6) <<
run <<
".dat";
57 string coda_file = oss.str();
59 oss << out_dir <<
"/run_" << setw(6) << run <<
".root";
60 string out_dst = oss.str();
65 const double FMAGSTR = -1.044;
66 const double KMAGSTR = -1.025;
73 JobOptsSvc *jobopt_svc = JobOptsSvc::instance();
74 jobopt_svc->init(
"run7_data.opts");
84 jobopt_svc->m_fMagFile+
" "+
85 jobopt_svc->m_kMagFile+
" "+
86 Form(
"%f",FMAGSTR) +
" " +
87 Form(
"%f",KMAGSTR) +
" " +
102 PHG4E1039InsensSubsystem* insens =
new PHG4E1039InsensSubsystem(
"Insens");
106 gROOT->LoadMacro(
"G4_Target.C");
110 gROOT->LoadMacro(
"G4_SensitiveDetectors.C");
128 KalmanFastTrackingWrapper *ktracker =
new KalmanFastTrackingWrapper();
130 ktracker->set_enable_event_reducer(
true);
131 ktracker->set_DS_level(0);
132 ktracker->set_pattern_db_name(gSystem->ExpandPathName(
"$E1039_RESOURCE/dsearch/v1/pattern.root"));
157 std::cout <<
"All done" << std::endl;
int registerInputManager(Fun4AllInputManager *InManager)
virtual void set_DoubleFlag(const std::string &name, const double flag)
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 Print() const
print all the parameters
void SetWorldShape(const std::string &s)
static Fun4AllServer * instance()
void PrintTimer(const std::string &name="")
static void ExportGeomtry(PHCompositeNode *topNode, const std::string &geometry_file)
DST node -> TGeoManager -> export files, like gdml, .root or .C formats.
int run(const int nEvents=1)
static recoConsts * instance()
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)
int registerOutputManager(Fun4AllOutputManager *manager)
void set_field_map(const std::string &fmap, const PHFieldConfig::FieldConfigTypes dim)
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)
void SetPhysicsList(const std::string &s)
virtual void Verbosity(const int ival)
Sets the verbosity of this module (0 by default=quiet).
static GeomSvc * instance()
singlton instance
void registerSubsystem(PHG4Subsystem *subsystem)
register subsystem
int Fun4CODA(const int nevent=0, const int run=28692, const int skip=0)
void SetWorldSizeZ(const double sz)
void SetWorldSizeY(const double sy)