4 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
8 R__LOAD_LIBRARY(libinterface_main)
9 R__LOAD_LIBRARY(libfun4all)
10 R__LOAD_LIBRARY(libdecoder_maindaq)
11 R__LOAD_LIBRARY(libg4testbench)
12 R__LOAD_LIBRARY(libg4detectors)
13 R__LOAD_LIBRARY(libg4eval)
14 R__LOAD_LIBRARY(libevt_filter)
15 R__LOAD_LIBRARY(libktracker)
16 R__LOAD_LIBRARY(libonlmonserver)
21 const char* fn_in =
"/data3/analysis/production/R009/02/86/digit_028692_009.root";
22 const char* fn_out =
"./SRawEvent-DST.root";
24 gSystem->Load(
"libfun4all");
25 gSystem->Load(
"libg4detectors");
26 gSystem->Load(
"libg4testbench");
27 gSystem->Load(
"libg4eval");
28 gSystem->Load(
"libktracker.so");
30 const double FMAGSTR = -1.054;
31 const double KMAGSTR = -0.951;
42 JobOptsSvc *jobopt_svc = JobOptsSvc::instance();
43 jobopt_svc->init(
"run7_data.opts");
53 jobopt_svc->m_fMagFile+
" "+
54 jobopt_svc->m_kMagFile+
" "+
55 Form(
"%f",FMAGSTR) +
" " +
56 Form(
"%f",KMAGSTR) +
" " +
71 PHG4E1039InsensSubsystem* insens =
new PHG4E1039InsensSubsystem(
"Insens");
75 gROOT->LoadMacro(
"G4_Target.C");
79 gROOT->LoadMacro(
"G4_SensitiveDetectors.C");
85 gSystem->Load(
"libktracker.so");
86 KalmanFastTrackingWrapper *ktracker =
new KalmanFastTrackingWrapper();
87 ktracker->Verbosity(0);
88 ktracker->set_enable_event_reducer(
true);
89 ktracker->set_DS_level(2);
90 ktracker->set_pattern_db_name(gSystem->ExpandPathName(
"$E1039_RESOURCE/dsearch/v1/pattern.root"));
107 std::cout << KMAGSTR << std::endl;
110 cout <<
"Fun4SRawEvent Done!" << 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)
int Fun4SRawEvent(const int nevent=0, const int run=28700)
void Print() const
print all the parameters
void SetWorldShape(const std::string &s)
static Fun4AllServer * instance()
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)
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
void SetWorldSizeZ(const double sz)
void SetWorldSizeY(const double sy)