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 
3 {
4  // Load basic libraries;
5  gROOT->Macro("$VMCWORKDIR/gconfig/rootlogon.C");
6 
7  EicRunAna *fRun = new EicRunAna();
8  fRun->SetInputFile ("simulation.root");
9  fRun->SetOutputFile("digitization.root");
10 
11  // Call standard digitizing routine for our FWDST detector; assume 20x20um^2 pixels;
12  // NB: may add more EicTrackingDigiHitProducer routines here if want to use your
13  // own custom set of detectors;
16  fwdst->DefineKfNodeTemplateXY(0.0050, 0.0050);
17  fRun->AddTask(fwdst);
18 
19  // Initialize and run digitization; exit at the end;
20  fRun->Run();
21 } // digitization()