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 *standard* calorimeter reconstruction;
15
auto
calo =
new
EicCalorimeterReconstruction
(
"CALORIMETER"
);
16
// 1-st: cluster seed threshold (cells below that can not initiate clustering);
17
// 2-d : neighbour search threshold (cells below that can not initiate neighbour
18
// attachment for the cluster they are associated with);
19
// 3-d : cell cutoff threshold (cells below that are ignored);
20
calo->SetClusterAlgorithmThresholds(0.3, 0.03, 0.005);
21
// Well, sampling fraction is ~100% here, except for the losses in alveoles,
22
// leaks and unattached hits; those contribute a lot however -> need to apply
23
// lower primary light yield than used in digitization.C in order to match 1 GeV energy;
24
calo->SetPhotonToEnergyConversionFactor(1/18100.);
25
// 1E5 photons scale for the plot;
26
calo->RequestLightYieldPlot(100000);
27
fRun->AddTask(calo);
28
29
// Initialize and run the reconstruction; exit at the end;
30
fRun->Run();
31
}
// reconstruction()
EicRoot
blob
master
examples
calorimetry
config.1
reconstruction.C
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:35
using
1.8.2 with
EIC GitHub integration