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 
2 #include <simulation.C>
3 
5 {
6  // Load basic libraries;
7  gROOT->Macro("$VMCWORKDIR/gconfig/rootlogon.C");
8 
9  // Create generic analysis run manager; configure it for track reconstruction;
10  EicRunAna *fRun = new EicRunAna();
11  fRun->SetInputFile ("simulation.root");
12  fRun->AddFriend ("digitization.root");
13  fRun->SetOutputFile("reconstruction.root");
14 
15  // Invoke and configure "ideal" PandaRoot tracking code wrapper;
16  EicIdealTrackingCode* idealTracker = new EicIdealTrackingCode();
17  idealTracker->AddDetectorGroup("FST");
18  idealTracker->AddDetectorGroup("BST");
19  idealTracker->AddDetectorGroup("VST");
20  idealTracker->AddDetectorGroup("FGT");
21  idealTracker->AddDetectorGroup("BGT");
22 #ifdef _WITH_MUMEGAS_
23  //idealTracker->AddDetectorGroup("MMT");
24 #endif
25  idealTracker->AddDetectorGroup("TPC");
26  idealTracker->SetRelativeMomentumSmearing(0.1);
27  idealTracker->SetVertexSmearing(0.01, 0.01, 0.01);
28  fRun->AddTask(idealTracker);
29 
30  // Invoke and configure PandaRoot Kalman filter code wrapper;
31  fRun->AddTask(new EicRecoKalmanTask(idealTracker));
32 
33  // This call here just performs track backward propagation to the beam line;
34  fRun->AddTask(new PndPidCorrelator());
35 
36  // Initialize and run the reconstruction; exit at the end;
37  fRun->Run();
38 } // reconstruction()
39