File indexing completed on 2025-08-03 08:15:56
0001 int run_macro_2(
0002 std::string infile = "G4sPHENIX_2.root",
0003 std::string outfile = "test.root"
0004 )
0005 {
0006
0007 gSystem->Load("libfun4all.so");
0008 gSystem->Load("libg4detectors.so");
0009 gSystem->Load("libphhepmc.so");
0010 gSystem->Load("libg4testbench.so");
0011 gSystem->Load("libg4hough.so");
0012 gSystem->Load("libcemc.so");
0013 gSystem->Load("libg4eval.so");
0014 gSystem->Load("libcalotrigger.so");
0015 gSystem->Load("libjetbackground.so");
0016
0017 gSystem->Load("libTreeMaker.so");
0018
0019 Fun4AllServer *se = Fun4AllServer::instance();
0020 se->Verbosity( 0 );
0021
0022 recoConsts *rc = recoConsts::instance();
0023
0024 Fun4AllInputManager *hitsin = new Fun4AllDstInputManager("DSTin");
0025
0026
0027 hitsin->fileopen( infile );
0028 se->registerInputManager(hitsin);
0029
0030 TreeMaker *tt = new TreeMaker( outfile );
0031 se->registerSubsystem( tt );
0032
0033 se->run( 1 );
0034
0035 se->End();
0036 std::cout << "All done" << std::endl;
0037 delete se;
0038
0039 gSystem->Exit(0);
0040 }