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
2 {
3  // Create generic analysis run manager; configure it for track reconstruction;
4  auto fRun = new EicRunAna();
5  fRun->SetInputFile ("simulation.root");
6  fRun->AddFriend ("digitization.root");
7  fRun->SetOutputFile("reconstruction.root");
8 
9  // Invoke and configure "ideal" PandaRoot tracking code wrapper;
10  auto idealTracker = new EicIdealTrackingCode();
11  idealTracker->AddDetectorGroup("FST");
12  idealTracker->AddDetectorGroup("BST");
13  idealTracker->AddDetectorGroup("VST");
14  idealTracker->AddDetectorGroup("TPC");
15  idealTracker->AddDetectorGroup("FGT");
16  idealTracker->AddDetectorGroup("BGT");
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  // Assemble event (reconstructed tracks, MC info, etc);
28  fRun->AddTask(new EicEventAssembler());
29 
30  // Initialize and run the reconstruction; exit at the end;
31  fRun->Run();
32 } // reconstruction()