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_UE_v2_Psi2.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Fun4All_UE_v2_Psi2.C
1
#pragma once
2
#if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
3
#include <
fun4all/SubsysReco.h
>
4
#include <
fun4all/Fun4AllServer.h
>
5
#include <
fun4all/Fun4AllInputManager.h
>
6
#include <
fun4all/Fun4AllDstInputManager.h
>
7
8
#include <
fun4all/Fun4AllDstOutputManager.h
>
9
#include <
fun4all/Fun4AllOutputManager.h
>
10
#include <
fun4all/Fun4AllServer.h
>
11
12
#include <
phool/PHRandomSeed.h
>
13
#include <
phool/recoConsts.h
>
14
15
#include <g4jets/FastJetAlgo.h>
16
#include <g4jets/JetReco.h>
17
#include <g4jets/TowerJetInput.h>
18
#include <
g4jets/TruthJetInput.h
>
19
20
#include <
g4centrality/PHG4CentralityReco.h
>
21
22
#include <
jetbackground/CopyAndSubtractJets.h
>
23
#include <
jetbackground/DetermineTowerBackground.h
>
24
#include <
jetbackground/FastJetAlgoSub.h
>
25
#include <
jetbackground/RetowerCEMC.h
>
26
#include <
jetbackground/SubtractTowers.h
>
27
#include <
jetbackground/SubtractTowersCS.h
>
28
29
#include <
HIJetReco.C
>
30
31
#include <uevsetacentrality/UEvsEtaCentrality.h>
32
33
34
R__LOAD_LIBRARY(libfun4all.so)
35
R__LOAD_LIBRARY(libg4jets.so)
36
R__LOAD_LIBRARY(libjetbackground.so)
37
R__LOAD_LIBRARY(libUEvsEtaCentrality.so)
38
R__LOAD_LIBRARY(libg4centrality.so)
39
R__LOAD_LIBRARY(libg4dst.so)
40
41
42
#endif
43
44
45
void
Fun4All_UE_v2_Psi2
(
const
char
*filelistbbc =
"dst_bbc_g4hit.list"
,
46
const
char
*filelistcalo =
"dst_calo_cluster.list"
,
47
const
char
*outname =
"outputest.root"
)
48
{
49
50
51
Fun4AllServer
*se =
Fun4AllServer::instance
();
52
int
verbosity
= 0;
53
54
se->
Verbosity
(verbosity);
55
recoConsts
*rc =
recoConsts::instance
();
56
57
PHG4CentralityReco
*cent =
new
PHG4CentralityReco
();
58
cent->
Verbosity
(0);
59
cent->
GetCalibrationParameters
().
ReadFromFile
(
"centrality"
,
"xml"
, 0, 0,
string
(getenv(
"CALIBRATIONROOT"
)) +
string
(
"/Centrality/"
));
60
se->
registerSubsystem
( cent );
61
62
63
HIJetReco
();
64
65
UEvsEtaCentrality
*myJetVal =
new
UEvsEtaCentrality
();
66
se->
registerSubsystem
(myJetVal);
67
68
Fun4AllInputManager
*intrue =
new
Fun4AllDstInputManager
(
"DSTbbc"
);
69
intrue->
AddListFile
(filelistbbc,1);
70
se->
registerInputManager
(intrue);
71
72
Fun4AllInputManager
*in2 =
new
Fun4AllDstInputManager
(
"DSTcalo"
);
73
in2->
AddListFile
(filelistcalo,1);
74
se->
registerInputManager
(in2);
75
76
77
se->
run
(-1);
78
se->
End
();
79
se->
PrintTimer
();
80
gSystem->Exit(0);
81
return
0;
82
83
}
analysis
blob
master
JS-Jet
JetUESize-v2Psi2Centrality
Fun4All_UE_v2_Psi2.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:53
using
1.8.2 with
sPHENIX GitHub integration