Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4_FastSim_Reco_EIC.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4_FastSim_Reco_EIC.C
1 using namespace std;
2 
3 void FastSim_Reco_EIC(int verbosity = 0) {
4 
5  //---------------
6  // Load libraries
7  //---------------
8 
9  gSystem->Load("libfun4all.so");
10  gSystem->Load("libg4hough.so");
11 
12  //---------------
13  // Fun4All server
14  //---------------
15 
17 
18  PHG4TrackFastSim* kalman = new PHG4TrackFastSim("PHG4TrackFastSim");
19  kalman->Verbosity(0);
20 
21  kalman->set_use_vertex_in_fitting(true);
22  kalman->set_vertex_xy_resolution(50E-4);
23  kalman->set_vertex_z_resolution(50E-4);
24 
25  kalman->set_detector_type(PHG4TrackFastSim::Vertical_Plane); // Vertical_Plane, Cylinder
26  kalman->set_phi_resolution(50E-4);
27  kalman->set_r_resolution(1.);
28 
29  kalman->set_pat_rec_hit_finding_eff(1.);
30  kalman->set_pat_rec_noise_prob(0.);
31 
32  std::string phg4hits_names[] = {"G4HIT_SVTX", "G4HIT_SILICON_TRACKER", "G4HIT_MAPS", "G4HIT_FGEM_0", "G4HIT_FGEM_1", "G4HIT_FGEM_2", "G4HIT_FGEM_3", "G4HIT_FGEM_4", "G4HIT_EGEM_0", "G4HIT_EGEM_1", "G4HIT_EGEM_2"};
33  kalman->set_phg4hits_names(phg4hits_names, 11);
34  kalman->set_sub_top_node_name("SVTX");
35  kalman->set_trackmap_out_name("SvtxTrackMap_FastSim");
36 
37  // Saved track states (projections)
38  //std::string state_names[] = {"CEMC", "HCALIN", "HCALOUT", "FEMC", "FHCAL", "EEMC"};
39  std::string state_names[] = {"CEMC", "FEMC", "FHCAL", "EEMC"};
40  kalman->set_state_names(state_names, 4);
41 
42  kalman->set_fit_alg_name("KalmanFitterRefTrack");//
43  kalman->set_primary_assumption_pid(-211); // -211 = pi-
44  kalman->set_do_evt_display(false);
45 
46  se->registerSubsystem(kalman);
47 
48 }
49