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_TruthJets.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4_TruthJets.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
24
return
;
25
}
26
27
void
Jet_Eval
(
std::string
outfilename =
"g4jets_eval.root"
,
28
int
verbosity
= 0) {
29
30
gSystem->Load(
"libg4eval.so"
);
31
32
Fun4AllServer
*se =
Fun4AllServer::instance
();
33
34
JetEvaluator
* eval =
new
JetEvaluator
(
"JETEVALUATOR"
,
35
"AntiKt_Tower_r03"
,
36
"AntiKt_Truth_r03"
,
37
outfilename);
38
eval->
Verbosity
(
verbosity
);
39
se->
registerSubsystem
(eval);
40
41
return
;
42
}
analysis
blob
master
PhotonJet
example_macros
G4_TruthJets.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:55
using
1.8.2 with
sPHENIX GitHub integration