ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
run_dump.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file run_dump.C
1 #ifndef MACRO_RUNDUMP_C
2 #define MACRO_RUNDUMP_C
3 
4 
5 #include <nodedump/Dumper.h>
8 
9 R__LOAD_LIBRARY(libfun4all.so)
10 R__LOAD_LIBRARY(libphnodedump.so)
11 
12 void run_dump(const char *infile, const int evts=100)
13 {
14  gSystem->Load("libg4dst.so");
16 
17  Dumper *dmp = new Dumper();
18  gSystem->Exec("mkdir dump");
19  dmp->SetOutDir("./dump");
20 
21  se->registerSubsystem(dmp);
22 
24  se->registerInputManager(in);
25  se->fileopen("DSTin",infile);
26  se->run(evts);
27  se->End();
28  delete se;
29 }
30 
31 #endif