EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
reconstruction.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file reconstruction.C
1
2
void
reconstruction
()
3
{
4
// Load basic libraries;
5
gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C"
);
6
7
// Create generic analysis run manager; configure it for track reconstruction;
8
EicRunAna
*fRun =
new
EicRunAna
();
9
fRun->
SetInputFile
(
"simulation.root"
);
10
fRun->
AddFriend
(
"digitization.root"
);
11
fRun->
SetOutputFile
(
"reconstruction.root"
);
12
13
// Invoke and configure "ideal" PandaRoot tracking code wrapper;
14
EicIdealTrackingCode
* idealTracker =
new
EicIdealTrackingCode
();
15
idealTracker->
AddDetectorGroup
(
"VTX"
);
16
idealTracker->
AddDetectorGroup
(
"TPC"
);
17
idealTracker->
SetRelativeMomentumSmearing
(0.1);
18
idealTracker->
SetVertexSmearing
(0.01, 0.01, 0.01);
19
fRun->
AddTask
(idealTracker);
20
21
// Invoke and configure PandaRoot Kalman filter code wrapper;
22
fRun->
AddTask
(
new
EicRecoKalmanTask
(idealTracker));
23
24
// This call here just performs track backward propagation to the beam line;
25
fRun->
AddTask
(
new
PndPidCorrelator
());
26
27
// Initialize and run the reconstruction; exit at the end;
28
fRun->
Run
();
29
}
// reconstruction()
EicRoot
blob
master
examples
tracking
config.2
reconstruction.C
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:35
using
1.8.2 with
EIC GitHub integration