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
// Call standard digitizing routine for our FWDST detector; assume 20x20um^2 pixels;
17
// NB: may add more EicTrackingDigiHitProducer routines here if want to use your
18
// own custom set of detectors;
19
EicTrackingDigiHitProducer
*fwdst =
20
new
EicTrackingDigiHitProducer
(
"FWDST"
,
EicDigiHitProducer::Quantize
);
21
fwdst->
DefineKfNodeTemplateXY
(20 *
eic::um
, 20 *
eic::um
);
22
//new EicTrackingDigiHitProducer("FWDST", EicDigiHitProducer::Smear);
23
//fwdst->DefineKfNodeTemplateXY(6 * eic::um, 6 * eic::um);
24
fRun->
AddTask
(fwdst);
25
26
// Initialize and run digitization; exit at the end;
27
fRun->
Run
();
28
}
// digitization()
EicRoot
blob
master
examples
tracking
config.999
digitization.C
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:35
using
1.8.2 with
EIC GitHub integration