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
G4_Centrality.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4_Centrality.C
1
#ifndef MACRO_G4CENTRALITY_C
2
#define MACRO_G4CENTRALITY_C
3
4
#include <
GlobalVariables.C
>
5
6
#include <
g4centrality/PHG4CentralityReco.h
>
7
8
#include <
fun4all/Fun4AllServer.h
>
9
10
R__LOAD_LIBRARY
(libfun4all.so)
11
R__LOAD_LIBRARY
(libcentrality_io.so)
12
R__LOAD_LIBRARY
(libg4centrality.so)
13
14
namespace Enable
15
{
16
bool
CENTRALITY
=
false
;
17
int
CENTRALITY_VERBOSITY
= 0;
18
}
// namespace Enable
19
20
void
Centrality
()
21
{
22
int
verbosity =
max
(
Enable::VERBOSITY
,
Enable::CENTRALITY_VERBOSITY
);
23
//---------------
24
// Fun4All server
25
//---------------
26
27
Fun4AllServer
*se =
Fun4AllServer::instance
();
28
29
PHG4CentralityReco
*cent =
new
PHG4CentralityReco
();
30
cent->
Verbosity
(verbosity);
31
cent->
GetCalibrationParameters
().
ReadFromFile
(
"centrality"
,
"xml"
, 0, 0,
string
(getenv(
"CALIBRATIONROOT"
)) +
string
(
"/Centrality/"
));
32
se->
registerSubsystem
( cent );
33
34
return
;
35
}
36
#endif
fun4all_macros
blob
master
common
G4_Centrality.C
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:54
using
1.8.2 with
EIC GitHub integration