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
reconstruction.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file reconstruction.C
1
2
//
3
// Perform clustering of digitized file;
4
//
5
6
void
reconstruction
()
7
{
8
// Create generic analysis run manager; configure it for calorimeter reconstruction;
9
auto
fRun =
new
EicRunAna
();
10
fRun->SetInputFile (
"simulation.root"
);
11
fRun->AddFriend (
"digitization.root"
);
12
fRun->SetOutputFile(
"reconstruction.root"
);
13
14
// Declare custom calorimeter reconstruction; detector choice is done by
15
// name encoded in calorimeter.root file;
16
auto
calo =
new
EicCalorimeterReconstruction
(
"FHAC"
);
17
// 1-st: cluster seed threshold (cells below that can not initiate clustering);
18
// 2-d : neighbour search threshold (cells below that can not initiate neighbour
19
// attachment for the cluster they are associated with);
20
// 3-d : cell cutoff threshold (cells below that are ignored);
21
calo->SetClusterAlgorithmThresholds(0.3, 0.03, 0.005);
22
// This conversion factor is basically *measured* in the test experiment; to be
23
// specific, one observed roughly 130 p.e. per GeV of incoming hadron particle
24
// energy; value of 12000 in digitization.C SetPrimaryLightYield() call is then
25
// tuned in such a way to really provide a correct energy scale, given specified
26
// (relative) efficiency of the sensors and the attenuation length;
27
calo->SetPhotonToEnergyConversionFactor(1/130.);
28
// 1E5 photons scale for the plot;
29
calo->RequestLightYieldPlot(10000);
30
fRun->AddTask(calo);
31
32
// Initialize and run the reconstruction; exit at the end;
33
fRun->Run();
34
}
// reconstruction()
EicRoot
blob
master
examples
calorimetry
config.2
reconstruction.C
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:35
using
1.8.2 with
EIC GitHub integration