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 #pragma once
2 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
5 #include <nodedump/Dumper.h>
6 R__LOAD_LIBRARY(libfun4all.so)
7 R__LOAD_LIBRARY(libphnodedump.so)
8 #endif
9 void run_dump(const char *infile, const int evts=100)
10 {
11  gSystem->Load("libfun4all.so");
12  gSystem->Load("libphnodedump.so");
13  gSystem->Load("libg4dst.so");
14 
16 
17  Dumper *dmp = new Dumper();
18  gSystem->Exec("mkdir ./asciidump");
19  dmp->SetOutDir("./asciidump");
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 }