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
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
if
(
Enable::CDB
)
32
{
33
cent->
GetCalibrationParameters
().
ReadFromCDB
(
"CENTRALITY"
);
34
}
35
else
36
{
37
cent->
GetCalibrationParameters
().
ReadFromFile
(
"centrality"
,
"xml"
, 0, 0,
string
(getenv(
"CALIBRATIONROOT"
)) +
string
(
"/Centrality/"
));
38
}
39
se->
registerSubsystem
( cent );
40
41
return
;
42
}
43
#endif
macros
blob
master
common
G4_Centrality.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:26
using
1.8.2 with
sPHENIX GitHub integration