EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
digitization.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file digitization.C
1 
2 //
3 // Converts MC points to hits in silicon layers; cell-type and gaussian
4 // smearing possible; "ideal" model (one hit per MC point);
5 //
6 
8 {
9  // Load basic libraries;
10  gROOT->Macro("$VMCWORKDIR/gconfig/rootlogon.C");
11 
12  EicRunAna *fRun = new EicRunAna();
13  fRun->SetInputFile ("simulation.root");
14  fRun->SetOutputFile("digitization.root");
15 
18  lqst->DefineKfNodeTemplateXY(20 * eic::um, 20 * eic::um);
19  fRun->AddTask(lqst);
20 
21  // Initialize and run digitization; exit at the end;
22  fRun->Run();
23 } // digitization()