Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:12:36

0001 #include <MBDinfo.h>
0002 #include <fun4all/SubsysReco.h>
0003 #include <fun4all/Fun4AllServer.h>
0004 #include <fun4all/Fun4AllInputManager.h>
0005 #include <fun4all/Fun4AllDstInputManager.h>
0006 
0007 #include <fun4all/Fun4AllDstOutputManager.h>
0008 #include <fun4all/Fun4AllOutputManager.h>
0009 
0010 #include <phool/recoConsts.h>
0011 
0012 #include <eventplaneinfo/Eventplaneinfo.h>
0013 #include <eventplaneinfo/EventPlaneReco.h>
0014 
0015 R__LOAD_LIBRARY(libfun4all.so)
0016 R__LOAD_LIBRARY(libeventplaneinfo.so)
0017 R__LOAD_LIBRARY(libMBDinfo.so)
0018 
0019 void Fun4All_EP1(const int nevents = 20, const string &inputcaloList = "dst_calo.list")
0020 {
0021   
0022   gSystem->Load("libg4dst.so");
0023   Fun4AllServer *se = Fun4AllServer::instance();
0024    
0025   EventPlaneReco *epreco = new EventPlaneReco();
0026   epreco->set_mbd_epreco(true);
0027   epreco->set_MBD_Min_Qcut(0.0); 
0028   epreco->set_z_vertex_cut(60.0); 
0029   se->registerSubsystem(epreco);
0030   
0031   gSystem->Load("libMBDinfo.so.0.0.0");
0032   MBDinfo *epana = new MBDinfo();
0033   epana->set_sim(false);
0034   se->registerSubsystem(epana);
0035 
0036   Fun4AllInputManager *in = new Fun4AllDstInputManager("DSTcalo");
0037   in->AddListFile(inputcaloList,1);
0038   se->registerInputManager(in);
0039  
0040   
0041   se->run(nevents);
0042   se->End();
0043   gSystem->Exit(0);
0044  
0045 }