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
//
3
// Simplistic scheme: perform ideal hit-to-track association (this is Monte-Carlo,
4
// so it is perfectly known which hit belogned to which track) and Kalman filter
5
// tracking fit on digitized hits;
6
//
7
8
void
reconstruction
()
9
{
10
// Load basic libraries;
11
gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C"
);
12
13
// Create generic analysis run manager; configure it for track reconstruction;
14
EicRunAna
*fRun =
new
EicRunAna
();
15
fRun->
SetInputFile
(
"simulation.root"
);
16
fRun->
AddFriend
(
"digitization.root"
);
17
fRun->
SetOutputFile
(
"reconstruction.root"
);
18
19
// Call "ideal" hit-to-track associator routine;
20
EicIdealTrackingCode
* idealTracker =
new
EicIdealTrackingCode
();
21
// Default in this example is to use "FWDST" detector hits; more than
22
// one custom detector may be added here via AddDetectorGroup() call(s);
23
idealTracker->
AddDetectorGroup
(
"FWDST"
);
24
// Add a bit of fairness to the reconstruction procedure; smear "ideal"
25
// momenta by 10% relative before giving hit collection over to KF fitter;
26
idealTracker->
SetRelativeMomentumSmearing
(0.1);
27
// Also smear a bit "ideal" vertex;
28
idealTracker->
SetVertexSmearing
(100 *
eic::um
, 100 *
eic::um
, 100 *
eic::um
);
29
// Assume 100% hit association efficiency;
30
idealTracker->
SetTrackingEfficiency
(1.);
31
fRun->
AddTask
(idealTracker);
32
33
// Invoke and configure PandaRoot Kalman filter code wrapper;
34
//fRun->AddTask(new EicRecoKalmanTask(idealTracker));
35
EicRecoKalmanTask
*kftask =
new
EicRecoKalmanTask
(idealTracker);
36
kftask->
StoreTrackParameterization
();
37
fRun->
AddTask
(kftask);
38
39
// This call here just performs track backward propagation to the beam line;
40
fRun->
AddTask
(
new
PndPidCorrelator
());
41
42
// Initialize and run the reconstruction; exit at the end;
43
fRun->
Run
();
44
}
// reconstruction()
EicRoot
blob
master
examples
tracking
config.77
reconstruction.C
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:35
using
1.8.2 with
EIC GitHub integration