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_Jets.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4_Jets.C
1
2
void
Jet_Reco
(
int
verbosity
= 0) {
3
4
gSystem->Load(
"libg4jets.so"
);
5
6
Fun4AllServer
*se =
Fun4AllServer::instance
();
7
8
// truth particle level jets
9
JetReco
*truthjetreco =
new
JetReco
();
10
truthjetreco->
add_input
(
new
TruthJetInput
(
Jet::PARTICLE
));
11
truthjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.2),
"AntiKt_Truth_r02"
);
12
truthjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.3),
"AntiKt_Truth_r03"
);
13
truthjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.4),
"AntiKt_Truth_r04"
);
14
truthjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.5),
"AntiKt_Truth_r05"
);
15
truthjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.6),
"AntiKt_Truth_r06"
);
16
truthjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.7),
"AntiKt_Truth_r07"
);
17
truthjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.8),
"AntiKt_Truth_r08"
);
18
truthjetreco->
set_algo_node
(
"ANTIKT"
);
19
truthjetreco->
set_input_node
(
"TRUTH"
);
20
truthjetreco->
Verbosity
(
verbosity
);
21
se->
registerSubsystem
(truthjetreco);
22
23
// tower jets
24
JetReco
*towerjetreco =
new
JetReco
();
25
towerjetreco->
add_input
(
new
TowerJetInput
(
Jet::CEMC_TOWER
));
26
towerjetreco->
add_input
(
new
TowerJetInput
(
Jet::HCALIN_TOWER
));
27
towerjetreco->
add_input
(
new
TowerJetInput
(
Jet::HCALOUT_TOWER
));
28
towerjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.2),
"AntiKt_Tower_r02"
);
29
towerjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.3),
"AntiKt_Tower_r03"
);
30
towerjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.4),
"AntiKt_Tower_r04"
);
31
towerjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.5),
"AntiKt_Tower_r05"
);
32
towerjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.6),
"AntiKt_Tower_r06"
);
33
towerjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.7),
"AntiKt_Tower_r07"
);
34
towerjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.8),
"AntiKt_Tower_r08"
);
35
towerjetreco->
set_algo_node
(
"ANTIKT"
);
36
towerjetreco->
set_input_node
(
"TOWER"
);
37
towerjetreco->
Verbosity
(
verbosity
);
38
se->
registerSubsystem
(towerjetreco);
39
40
// cluster jets
41
JetReco
*clusterjetreco =
new
JetReco
();
42
clusterjetreco->
add_input
(
new
ClusterJetInput
(
Jet::CEMC_CLUSTER
));
43
clusterjetreco->
add_input
(
new
ClusterJetInput
(
Jet::HCALIN_CLUSTER
));
44
clusterjetreco->
add_input
(
new
ClusterJetInput
(
Jet::HCALOUT_CLUSTER
));
45
clusterjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.2),
"AntiKt_Cluster_r02"
);
46
clusterjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.3),
"AntiKt_Cluster_r03"
);
47
clusterjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.4),
"AntiKt_Cluster_r04"
);
48
clusterjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.5),
"AntiKt_Cluster_r05"
);
49
clusterjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.6),
"AntiKt_Cluster_r06"
);
50
clusterjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.7),
"AntiKt_Cluster_r07"
);
51
clusterjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.8),
"AntiKt_Cluster_r08"
);
52
clusterjetreco->
set_algo_node
(
"ANTIKT"
);
53
clusterjetreco->
set_input_node
(
"CLUSTER"
);
54
clusterjetreco->
Verbosity
(
verbosity
);
55
se->
registerSubsystem
(clusterjetreco);
56
57
// track jets
58
JetReco
*trackjetreco =
new
JetReco
();
59
trackjetreco->
add_input
(
new
TrackJetInput
(
Jet::TRACK
));
60
trackjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.2),
"AntiKt_Track_r02"
);
61
trackjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.3),
"AntiKt_Track_r03"
);
62
trackjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.4),
"AntiKt_Track_r04"
);
63
trackjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.5),
"AntiKt_Track_r05"
);
64
trackjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.6),
"AntiKt_Track_r06"
);
65
trackjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.7),
"AntiKt_Track_r07"
);
66
trackjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
,0.8),
"AntiKt_Track_r08"
);
67
trackjetreco->
set_algo_node
(
"ANTIKT"
);
68
trackjetreco->
set_input_node
(
"TRACK"
);
69
trackjetreco->
Verbosity
(
verbosity
);
70
se->
registerSubsystem
(trackjetreco);
71
72
return
;
73
}
74
75
void
Jet_Eval
(
std::string
outfilename =
"g4jets_eval.root"
,
76
int
verbosity
= 0) {
77
78
gSystem->Load(
"libg4eval.so"
);
79
80
Fun4AllServer
*se =
Fun4AllServer::instance
();
81
82
JetEvaluator
* eval =
new
JetEvaluator
(
"JETEVALUATOR"
,
83
"AntiKt_Tower_r03"
,
84
"AntiKt_Truth_r03"
,
85
outfilename);
86
eval->
Verbosity
(
verbosity
);
87
se->
registerSubsystem
(eval);
88
89
return
;
90
}
analysis
blob
master
EICAnalysis
macros
leptoquarks_fun4all
G4_Jets.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:49
using
1.8.2 with
sPHENIX GitHub integration