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
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
macros
online_distribution
tutorials
blob
master
AnaTutorial
AnaTutorialECCE
block
CaloAna
clusters
CreateSubsysRecoModule
cylinder
dst_workflow
dst_eventeval.C
eventgenerator_display
IonGun
MagneticField
materialscan
Momentum
myjetanalysis
MyOwnTTree
PHG4DSTReader
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
dst_eventeval.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file dst_eventeval.C
1
#include <
fun4all/Fun4AllInputManager.h
>
2
#include <
fun4all/Fun4AllDstInputManager.h
>
3
#include <
fun4all/Fun4AllServer.h
>
4
#include <eiceval/EventEvaluatorEIC.h>
5
6
R__LOAD_LIBRARY
(libfun4all.so)
7
R__LOAD_LIBRARY
(libg4eval.so)
8
R__LOAD_LIBRARY
(libeiceval.so)
9
10
namespace EVENT_EVALUATOR
11
{
12
int
Verbosity
= 0;
13
float
EnergyThreshold
= 0.05;
14
}
// namespace EVENT_EVALUATOR
15
16
void
dst_eventeval
(
const
std::string fileList=
"pb-list.txt"
,
int
nEvents
=1
e5
, std::string outputFile=
"event_eval.root"
)
17
{
18
Fun4AllServer
*se =
Fun4AllServer::instance
();
19
se->
Verbosity
(0);
20
21
Fun4AllInputManager
*hitsin =
new
Fun4AllDstInputManager
(
"DSTin"
);
22
hitsin->
AddListFile
(fileList);
23
se->
registerInputManager
(hitsin);
24
25
EventEvaluatorEIC
*eval =
new
EventEvaluatorEIC
(
"EVENTEVALUATOR"
, outputFile);
26
eval->
set_reco_tracing_energy_thresholdMC
(
EVENT_EVALUATOR::EnergyThreshold
);
27
eval->
Verbosity
(
EVENT_EVALUATOR::Verbosity
);
28
29
eval->
set_do_TRACKS
(
true
);
30
eval->
set_do_PROJECTIONS
(
true
);
31
eval->
set_do_VERTEX
(
true
);
32
33
eval->
set_do_HITS
(
true
);
// new functionality
34
35
eval->
set_do_CEMC
(
true
);
36
eval->
set_do_EEMC
(
true
);
37
eval->
set_do_FEMC
(
true
);
38
eval->
set_do_HCALIN
(
true
);
39
eval->
set_do_HCALOUT
(
true
);
40
eval->
set_do_FHCAL
(
true
);
41
eval->
set_do_CLUSTERS
(
true
);
42
43
eval->
set_do_MCPARTICLES
(
true
);
44
eval->
set_do_HEPMC
(
true
);
45
eval->
set_do_store_event_level_info
(
true
);
46
47
se->
registerSubsystem
(eval);
48
49
se->
run
(
nEvents
);
50
se->
End
();
51
std::cout <<
"All done"
<< std::endl;
52
delete
se;
53
gSystem->Exit(0);
54
}
tutorials
blob
master
dst_workflow
dst_eventeval.C
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:26:00
using
1.8.2 with
ECCE GitHub integration