Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Trkr_RecoInit.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Trkr_RecoInit.C
1 #ifndef MACRO_TRKRRECOINIT_C
2 #define MACRO_TRKRRECOINIT_C
3 
4 R__LOAD_LIBRARY(libtrack_reco.so)
5 R__LOAD_LIBRARY(libtpccalib.so)
6 
7 #include <GlobalVariables.C>
8 
9 #include <G4_ActsGeom.C>
10 #include <G4_TrkrVariables.C>
11 #include <fun4all/Fun4AllServer.h>
13 
15 {
16  G4MAGNET::magfield = string(getenv("CALIBRATIONROOT")) + string("/Field/Map/sphenix3dtrackingmapxyz_gap_rebuild.root");
18 
20  // space charge correction
21  /* corrections are applied in the track finding, and via TpcClusterMover before the final track fit
22  */
23 
25  {
26  auto se = Fun4AllServer::instance();
27  auto tpcLoadDistortionCorrection = new TpcLoadDistortionCorrection;
28  tpcLoadDistortionCorrection->set_distortion_filename( G4TPC::correction_filename );
29  se->registerSubsystem(tpcLoadDistortionCorrection);
30  }
31 
32 }
33 
34 
35 #endif