O97DstTest.C 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. void O97DstTest(const char *inFileStr = "test.f19",
  2. const char *outFileStr = "O97DstTest.root") {
  3. std::cout << "******************" << std::endl
  4. << "* *" << std::endl
  5. << "* O97Dst Start *" << std::endl
  6. << "* *" << std::endl
  7. << "******************" << std::endl;
  8. //
  9. // Load libraries
  10. //
  11. std::cout << "Loading libraries..." << std::endl;
  12. gROOT->LoadMacro("$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
  13. loadSharedLibraries();
  14. gSystem->Load("libMinuit");
  15. gSystem->Load("StMuDSTMaker");
  16. gSystem->Load("StChain");
  17. gSystem->Load("StRefMultCorr");
  18. gSystem->Load("StFlowMaker");
  19. gSystem->Load("StFlowAnalysisMaker");
  20. gSystem->Load("StHbtMaker");
  21. gSystem->Load("StarClassLibrary");
  22. gSystem->Load("StFemtoDstMaker");
  23. std::cout << "Libraries have been successfully loaded" << std::endl;
  24. //
  25. // Create chain
  26. //
  27. StChain *chain = new StChain("StChain");
  28. chain->SetDebug(0);
  29. //
  30. // Create StO97DstMaker
  31. //
  32. StO97DstMaker *oscar = new StO97DstMaker(inFileStr, outFileStr);
  33. chain->Init();
  34. while (!oscar->IsStop()) {
  35. chain->Make();
  36. chain->Clear();
  37. }
  38. chain->Finish();
  39. delete chain;
  40. std::cout << "******************" << std::endl
  41. << "* *" << std::endl
  42. << "* O97DstTest *" << std::endl
  43. << "* Finish *" << std::endl
  44. << "* *" << std::endl
  45. << "******************" << std::endl;
  46. }