Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
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
>
12
#include <
tpc/TpcLoadDistortionCorrection.h
>
13
14
void
TrackingInit
()
15
{
16
G4MAGNET::magfield
=
string
(getenv(
"CALIBRATIONROOT"
)) +
string
(
"/Field/Map/sphenix3dtrackingmapxyz_gap_rebuild.root"
);
17
G4MAGNET::magfield_rescale
= 1.;
18
19
ACTSGEOM::ActsGeomInit
();
20
// space charge correction
21
/* corrections are applied in the track finding, and via TpcClusterMover before the final track fit
22
*/
23
24
if
(
G4TPC::ENABLE_CORRECTIONS
)
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
macros
blob
master
common
Trkr_RecoInit.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:27
using
1.8.2 with
sPHENIX GitHub integration