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
Fun4All_FileSplit.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Fun4All_FileSplit.C
1
// $Id: $
2
11
#include <
fun4all/Fun4AllDummyInputManager.h
>
12
#include <
fun4all/Fun4AllInputManager.h
>
13
#include <
fun4all/Fun4AllServer.h
>
14
#include <
g4main/ReadEICFiles.h
>
15
#include <
phhepmc/Fun4AllHepMCOutputManager.h
>
16
17
R__LOAD_LIBRARY
(libfun4all.so)
18
R__LOAD_LIBRARY
(libg4testbench.so)
19
20
void
Fun4All_FileSplit
(const
int
nEvents
= 2000,
21
const
int
nSkip = 2000,
22
const std::
string
&InputFile = "ep_noradcor.18x100_run001.root",
23
const std::
string
&
OutputFile
= "ep_noradcor.18x100_run001.HepMC.dat")
24
{
25
//---------------
26
// Fun4All server
27
//---------------
28
Fun4AllServer
*se =
Fun4AllServer::instance
();
29
se->
Verbosity
(0);
30
31
ReadEICFiles
*
EICFileReader
=
new
ReadEICFiles
();
32
EICFileReader->
OpenInputFile
(InputFile);
33
EICFileReader->
SetFirstEntry
(nSkip);
34
EICFileReader->
set_embedding_id
(0);
35
se->
registerSubsystem
(EICFileReader);
36
37
Fun4AllInputManager
*
in
=
new
Fun4AllDummyInputManager
(
"JADE"
);
38
se->
registerInputManager
(in);
39
40
Fun4AllHepMCOutputManager
*out =
new
Fun4AllHepMCOutputManager
(
"HepMCOut"
,
OutputFile
);
41
se->
registerOutputManager
(out);
42
43
se->
run
(nEvents);
44
}
analysis
blob
master
FileSplit
Fun4All_FileSplit.C
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:28
using
1.8.2 with
ECCE GitHub integration