Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
Fun4All_HCALAnalysis.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Fun4All_HCALAnalysis.C
1
void
Fun4All_HCALAnalysis
(
int
nEvents
= 0,
char
*
input_file
=
"G4sPHENIXCells_LC.root"
,
const
char
*outFile =
"outfile_LC.root"
)
2
{
3
gSystem->Load(
"libfun4all"
);
4
gSystem->Load(
"libphg4hit.so"
);
5
gSystem->Load(
"libg4detectors.so"
);
6
gSystem->Load(
"libg4picoDst.so"
);
7
gSystem->Load(
"libg4decayer.so"
);
8
gSystem->Load(
"libg4eval.so"
);
9
gSystem->Load(
"libg4hough.so"
);
10
gSystem->Load(
"libHCALAnalysis.so"
);
11
13
//
14
//- recoConsts setup
15
//
17
recoConsts
*rc =
recoConsts::instance
();
18
20
//
21
//- Make the Server
22
//
24
Fun4AllServer
*se =
Fun4AllServer::instance
();
25
se->
Verbosity
(0);
26
//PHMapManager::set_verbosity(MUTOO::SOME);
27
28
recoConsts
*rc =
recoConsts::instance
();
29
30
HCALAnalysis
*an =
new
HCALAnalysis
(outFile);
31
se->
registerSubsystem
( an );
32
34
//
35
//- Analyze the Data.
36
//
38
39
Fun4AllInputManager
*hcal_dst =
new
Fun4AllDstInputManager
(
"HCAL"
,
"DST"
,
"TOP"
);
40
se->
registerInputManager
( hcal_dst );
41
se->
fileopen
( hcal_dst->
Name
(),
input_file
);
42
43
se->
run
(
nEvents
);
44
se->
End
();
45
delete
se;
46
cout <<
"Completed DST spin."
<< endl;
47
48
//gROOT->ProcessLine(".! mv test_tree_out.root calib_test_tree.root");
49
}
analysis
blob
master
HCal-analysis
macro
Fun4All_HCALAnalysis.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:52
using
1.8.2 with
sPHENIX GitHub integration