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
//
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
7
void
digitization
()
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
16
EicTrackingDigiHitProducer
*
ippt
=
17
new
EicTrackingDigiHitProducer
(
"IPPT"
,
EicDigiHitProducer::Smear
);
18
// pCDR table 3.3, 275x18 GeV, first column;
19
ippt->
DefineKfNodeTemplateXY
(100 *
eic::um
, 20 *
eic::um
);
20
//ippt->DefineKfNodeTemplateXY(10 * eic::mm, 10 * eic::mm);
21
fRun->
AddTask
(ippt);
22
23
EicTrackingDigiHitProducer
*
b0tracker
=
24
new
EicTrackingDigiHitProducer
(
"B0TRACKER"
,
EicDigiHitProducer::Smear
);
25
b0tracker->
DefineKfNodeTemplateXY
(20 *
eic::um
, 20 *
eic::um
);
26
fRun->
AddTask
(b0tracker);
27
28
EicTrackingDigiHitProducer
*
rp
=
29
new
EicTrackingDigiHitProducer
(
"RP"
,
EicDigiHitProducer::Smear
);
30
rp->
DefineKfNodeTemplateXY
(20 *
eic::um
, 20 *
eic::um
);
31
fRun->
AddTask
(rp);
32
33
// Initialize and run digitization; exit at the end;
34
fRun->
Run
();
35
}
// digitization()
EicRoot
blob
master
pCDR-2018
b0rp
digitization.C
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:35
using
1.8.2 with
EIC GitHub integration