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  auto fRun = new EicRunAna();
10  fRun->SetInputFile ("simulation.root");
11  fRun->SetOutputFile("digitization.root");
12 
13  // Call standard digitizing routine for our FWDST detector; assume 20x20um^2 pixels;
14  // NB: may add more EicTrackingDigiHitProducer routines here if want to use your
15  // own custom set of detectors;
17  fwdst->DefineKfNodeTemplateXY(20 * eic::um, 20 * eic::um);
18  //new EicTrackingDigiHitProducer("FWDST", EicDigiHitProducer::Smear);
19  //fwdst->DefineKfNodeTemplateXY(6 * eic::um, 6 * eic::um);
20  fRun->AddTask(fwdst);
21 
22  // Initialize and run digitization; exit at the end;
23  fRun->Run();
24 } // digitization()