void HelloWorld( ) { // Load libraries load() ; // See details below gSystem -> Load("HelloWorldMaker.so") ; // List of member links in the chain StChain* chain = new StChain ; HelloWorldMaker* Hello = new HelloWorldMaker( ) ; Int_t nEvents = 10 ; // Loop over the links in the chain chain -> Init() ; chain -> EventLoop(1,nEvents) ; chain -> Finish() ; // Cleanup delete chain ; } void load() { gROOT->LoadMacro("$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C") ; loadSharedLibraries() ; gSystem->Load("StDetectorDbMaker.so") ; gSystem->Load("StTpcDb") ; gSystem->Load("StEvent") ; gSystem->Load("StMcEvent") ; gSystem->Load("StMcEventMaker") ; gSystem->Load("StDaqLib") ; gSystem->Load("libgen_Tables") ; gSystem->Load("libsim_Tables") ; gSystem->Load("libglobal_Tables") ; gSystem->Load("StMagF") ; gSystem->Load("StDbUtilities") ; gSystem->Load("StEEmcUtil") ; gSystem->Load("StEEmcDbMaker") ; gSystem->Load("St_g2t.so") ; gSystem->Load("St_geant_Maker.so") ; gSystem->Load("StAssociationMaker") ; gSystem->Load("StMcAnalysisMaker") ; gSystem->Load("libgeometry_Tables") ; gSystem->Load("StTriggerUtilities") ; gSystem->Load("StEmcUtil") ; gSystem->Load("StEmcRawMaker") ; gSystem->Load("StEmcADCtoEMaker") ; gSystem->Load("StPreEclMaker") ; gSystem->Load("StEpcMaker") ; gSystem->Load("StEmcSimulatorMaker") ; gSystem->Load("StDbLib") ; gSystem->Load("StDbBroker") ; gSystem->Load("StDetectorDbMaker") ; gSystem->Load("St_db_Maker") ; gSystem->Load("StBTofUtil") ; gSystem->Load("StMtdHitMaker") ; gSystem->Load("StMtdUtil") ; gSystem->Load("StMtdMatchMaker") ; gSystem->Load("StVpdCalibMaker") ; gSystem->Load("StBTofCalibMaker") ; gSystem->Load("StMtdCalibMaker") ; }