Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:20:21

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