ECCE @ EIC Software
 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 
13 #include <fun4all/Fun4AllServer.h>
14 #include <g4main/ReadEICFiles.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  //---------------
29  se->Verbosity(0);
30 
32  EICFileReader->OpenInputFile(InputFile);
33  EICFileReader->SetFirstEntry(nSkip);
34  EICFileReader->set_embedding_id(0);
35  se->registerSubsystem(EICFileReader);
36 
38  se->registerInputManager(in);
39 
41  se->registerOutputManager(out);
42 
43  se->run(nEvents);
44 }