Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:20:35

0001 #pragma once
0002 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
0003 #include <fun4all/Fun4AllServer.h>
0004 #include <fun4all/Fun4AllDstInputManager.h>
0005 #include <nodedump/Dumper.h>
0006 R__LOAD_LIBRARY(libphnodedump.so)
0007 #endif
0008 
0009 void run_dump(const char *infile, const int evts=100)
0010 {
0011   gSystem->Load("libPrototype3_io.so");
0012   gSystem->Load("libphnodedump.so");
0013 
0014   Fun4AllServer* se = Fun4AllServer::instance();
0015 
0016   Dumper *dmp = new Dumper();
0017   gSystem->Exec("mkdir /phenix/scratch/pinkenbu/g4dump");
0018   dmp->SetOutDir("/phenix/scratch/pinkenbu/g4dump");
0019 
0020   se->registerSubsystem(dmp);
0021 
0022   Fun4AllInputManager *in = new Fun4AllDstInputManager("DSTin");
0023   se->registerInputManager(in);
0024   se->fileopen("DSTin",infile);
0025   se->run(evts);
0026   se->End();
0027   delete se;
0028 }