EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
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
4
void
digitization
()
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
14
EicTrackingDigiHitProducer
* vstHitProducer =
new
EicTrackingDigiHitProducer
(
"VST"
,
EicDigiHitProducer::Smear
);
15
vstHitProducer->
DefineKfNodeTemplateXY
(0.00058, 0.00058);
16
fRun->
AddTask
(vstHitProducer);
17
EicTrackingDigiHitProducer
* fstHitProducer =
new
EicTrackingDigiHitProducer
(
"FST"
,
EicDigiHitProducer::Smear
);
18
fstHitProducer->
DefineKfNodeTemplateXY
(0.00058, 0.00058);
19
fRun->
AddTask
(fstHitProducer);
20
EicTrackingDigiHitProducer
* bstHitProducer =
new
EicTrackingDigiHitProducer
(
"BST"
,
EicDigiHitProducer::Smear
);
21
bstHitProducer->
DefineKfNodeTemplateXY
(0.00058, 0.00058);
22
fRun->
AddTask
(bstHitProducer);
23
24
EicTrackingDigiHitProducer
* fgtHitProducer =
new
EicTrackingDigiHitProducer
(
"FGT"
,
EicDigiHitProducer::Smear
);
25
fgtHitProducer->
DefineKfNodeTemplateXY
(0.0050, 0.0050);
26
fRun->
AddTask
(fgtHitProducer);
27
EicTrackingDigiHitProducer
* bgtHitProducer =
new
EicTrackingDigiHitProducer
(
"BGT"
,
EicDigiHitProducer::Smear
);
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
EicRoot
blob
master
examples
tracking
config.3
digitization.C
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:35
using
1.8.2 with
EIC GitHub integration