EIC Software
 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 
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  // Call "ideal" hit-to-track associator routine;
14  EicIdealTrackingCode* idealTracker = new EicIdealTrackingCode();
15  idealTracker->AddDetectorGroup("FWDGT");
16  // Add a bit of fairness to the reconstruction procedure; smear "ideal"
17  // momenta by 10% relative before giving hit collection over to KF fitter;
18  idealTracker->SetRelativeMomentumSmearing(0.1);
19  // Also smear a bit "ideal" vertex;
20  idealTracker->SetVertexSmearing(0.01, 0.01, 0.01);
21  fRun->AddTask(idealTracker);
22 
23  // Invoke and configure PandaRoot Kalman filter code wrapper;
24  fRun->AddTask(new EicRecoKalmanTask(idealTracker));
25 
26  // This call here just performs track backward propagation to the beam line;
27  fRun->AddTask(new PndPidCorrelator());
28 
29  // Initialize and run the reconstruction; exit at the end;
30  fRun->Run();
31 } // reconstruction()