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 #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 digitization;
10  EicRunAna *fRun = new EicRunAna();
11  fRun->SetInputFile ("simulation.root");
12  fRun->SetOutputFile("digitization.root");
13 
15  vstHitProducer->DefineKfNodeTemplateXY(0.00058, 0.00058);
16  fRun->AddTask(vstHitProducer);
18  fstHitProducer->DefineKfNodeTemplateXY(0.00058, 0.00058);
19  fRun->AddTask(fstHitProducer);
21  bstHitProducer->DefineKfNodeTemplateXY(0.00058, 0.00058);
22  fRun->AddTask(bstHitProducer);
23 
25  fgtHitProducer->DefineKfNodeTemplateXY(0.0050, 0.0050);
26  fRun->AddTask(fgtHitProducer);
28  bgtHitProducer->DefineKfNodeTemplateXY(0.0050, 0.0050);
29  fRun->AddTask(bgtHitProducer);
30 
31 #ifdef _WITH_MUMEGAS_
32  //EicTrackingDigiHitProducer* mmgHitProducer = new EicTrackingDigiHitProducer("MMT", EicDigiHitProducer::Smear);
33  //mmgHitProducer->DefineKfNodeTemplateAxial3D(0.1400, 0.0100);
34  //fRun->AddTask(mmgHitProducer);
35 #endif
36 
37  // "Ideal" TPC digitizer;
38  EicTpcDigiHitProducer* tpcHitProducer = new EicTpcDigiHitProducer();
39  // So assume ~250um single-point resolution at the CM (and ~200um at the readout plane);
40  tpcHitProducer->importTpcDigiParameters("tpc-digi-250um.root");
41  tpcHitProducer->Print();
42  fRun->AddTask(tpcHitProducer);
43 
44  // Initialize and run digitization; exit at the end;
45  fRun->Run();
46 } // digitization()
47