EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
BeastMagneticField
delphes_EIC
Doxygen_Assist
east
eic-smear
EicRoot
eicsmear-jetexample
eicsmeardetectors
EicToyModel
estarlight
Fun4All-lmon
fun4all_coresoftware
fun4all_eic_qa
fun4all_eic_tutorials
fun4all_eicdetectors
fun4all_eicmacros
fun4all_g4jleic
fun4all_GenFit
fun4all_macros
blob
master
common
DisplayOn.C
G4_Bbc.C
G4_BeamLine.C
G4_BlackHole.C
G4_CaloTrigger.C
G4_CEmc_Albedo.C
G4_CEmc_Spacal.C
G4_Centrality.C
G4_DSTReader.C
G4_EPD.C
G4_Global.C
G4_HcalIn_ref.C
G4_HcalOut_ref.C
G4_HIJetReco.C
G4_Input.C
G4_Intt.C
G4_Jets.C
G4_KFParticle.C
G4_Magnet.C
G4_Micromegas.C
G4_Mvtx.C
G4_ParticleFlow.C
G4_Pipe.C
G4_PlugDoor.C
G4_Production.C
G4_PSTOF.C
G4_TopoClusterReco.C
G4_TPC.C
G4_Tracking.C
G4_Tracking_Genfit.C
G4_TrackingService.C
G4_User.C
G4_World.C
G4_ZDC.C
GlobalVariables.C
QA.C
sPhenixStyle.C
sPhenixStyle.h
detectors
macros
fun4all_tutorials
g4exampledetector
g4lblvtx
online_distribution
PEPSI
doxygen_mainpage.h
File Members
External Links
•
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
#include <
g4jets/JetReco.h
>
8
9
#include <particleflowreco/ParticleFlowJetInput.h>
10
#include <particleflowreco/ParticleFlowReco.h>
11
12
#include <
fun4all/Fun4AllServer.h
>
13
14
R__LOAD_LIBRARY
(libfun4all.so)
15
R__LOAD_LIBRARY
(libg4jets.so)
16
R__LOAD_LIBRARY
(libparticleflow.so)
17
18
namespace Enable
19
{
20
bool
PARTICLEFLOW
=
false
;
21
int
PARTICLEFLOW_VERBOSITY
= 0;
22
}
// namespace Enable
23
24
void
ParticleFlow
()
25
{
26
int
verbosity =
max
(
Enable::VERBOSITY
,
Enable::PARTICLEFLOW_VERBOSITY
);
27
//---------------
28
// Fun4All server
29
//---------------
30
31
Fun4AllServer
*se =
Fun4AllServer::instance
();
32
33
// note: assumes topoCluster input already configured
34
ParticleFlowReco
*pfr =
new
ParticleFlowReco
();
35
pfr->
set_energy_match_Nsigma
(1.5);
36
pfr->
set_emulated_efficiency
(1.0);
37
pfr->
Verbosity
(verbosity);
38
se->
registerSubsystem
(pfr);
39
40
JetReco
*particleflowjetreco =
new
JetReco
(
"PARTICLEFLOWJETRECO"
);
41
particleflowjetreco->
add_input
(
new
ParticleFlowJetInput
());
42
particleflowjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
, 0.2),
"AntiKt_ParticleFlow_r02"
);
43
particleflowjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
, 0.3),
"AntiKt_ParticleFlow_r03"
);
44
particleflowjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
, 0.4),
"AntiKt_ParticleFlow_r04"
);
45
particleflowjetreco->
add_algo
(
new
FastJetAlgo
(
Jet::ANTIKT
, 0.3),
"AntiKt_ParticleFlow_r03"
);
46
particleflowjetreco->
set_algo_node
(
"ANTIKT"
);
47
particleflowjetreco->
set_input_node
(
"PARTICLEFLOW"
);
48
particleflowjetreco->
Verbosity
(verbosity);
49
se->
registerSubsystem
(particleflowjetreco);
50
51
return
;
52
}
53
#endif
fun4all_macros
blob
master
common
G4_ParticleFlow.C
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:54
using
1.8.2 with
EIC GitHub integration