ECCE @ EIC Software
Reference for
ECCE @ 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_ParticleFlow.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4_ParticleFlow.C
1
#ifndef MACRO_G4PARTICLEFLOW_C
2
#define MACRO_G4PARTICLEFLOW_C
3
4
#include <
GlobalVariables.C
>
5
6
#include <
g4jets/FastJetAlgo.h
>
7
8
#include <particleflowreco/ParticleFlowJetInput.h>
9
#include <particleflowreco/ParticleFlowReco.h>
10
11
#include <
fun4all/Fun4AllServer.h
>
12
13
R__LOAD_LIBRARY
(libfun4all.so)
14
R__LOAD_LIBRARY
(libg4jets.so)
15
R__LOAD_LIBRARY
(libparticleflow.so)
16
17
namespace Enable
18
{
19
bool
PARTICLEFLOW
=
false
;
20
int
PARTICLEFLOW_VERBOSITY
= 0;
21
}
// namespace Enable
22
23
void
ParticleFlow
()
24
{
25
int
verbosity =
max
(
Enable::VERBOSITY
,
Enable::PARTICLEFLOW_VERBOSITY
);
26
//---------------
27
// Fun4All server
28
//---------------
29
30
Fun4AllServer
*se =
Fun4AllServer::instance
();
31
32
// note: assumes topoCluster input already configured
33
ParticleFlowReco
*pfr =
new
ParticleFlowReco
();
34
pfr->
set_energy_match_Nsigma
(1.5);
35
pfr->
set_emulated_efficiency
(1.0);
36
pfr->
Verbosity
(verbosity);
37
se->
registerSubsystem
(pfr);
38
39
JetReco
*particleflowjetreco =
new
JetReco
(
"PARTICLEFLOWJETRECO"
);
40
particleflowjetreco->
add_input
(
new
ParticleFlowJetInput
());
41
particleflowjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
, 0.2),
"AntiKt_ParticleFlow_r02"
);
42
particleflowjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
, 0.3),
"AntiKt_ParticleFlow_r03"
);
43
particleflowjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
, 0.4),
"AntiKt_ParticleFlow_r04"
);
44
particleflowjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
, 0.3),
"AntiKt_ParticleFlow_r03"
);
45
particleflowjetreco->
set_algo_node
(
"ANTIKT"
);
46
particleflowjetreco->
set_input_node
(
"PARTICLEFLOW"
);
47
particleflowjetreco->
Verbosity
(verbosity);
48
se->
registerSubsystem
(particleflowjetreco);
49
50
return
;
51
}
52
#endif
macros
blob
master
common
G4_ParticleFlow.C
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:58
using
1.8.2 with
ECCE GitHub integration