Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-12-17 09:23:55

0001 #include <eventplaneinfo/EventPlaneReco.h>
0002 #include <eventplaneinfo/Eventplaneinfo.h>
0003 
0004 #include <fun4all/Fun4AllDstInputManager.h>
0005 #include <fun4all/Fun4AllDstOutputManager.h>
0006 #include <fun4all/Fun4AllInputManager.h>
0007 #include <fun4all/Fun4AllOutputManager.h>
0008 #include <fun4all/Fun4AllServer.h>
0009 #include <fun4all/SubsysReco.h>
0010 
0011 #include <phool/recoConsts.h>
0012 
0013 #include <Rtypes.h>  // resolves R__LOAD_LIBRARY for clang-tidy
0014 #include <TSystem.h>
0015 
0016 R__LOAD_LIBRARY(libfun4all.so)
0017 R__LOAD_LIBRARY(libeventplaneinfo.so)
0018 
0019 void Fun4All_EP1(const int nevents = 2, const std::string &inputcaloList = "dst_calo.list")
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_MBD_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   se->run(nevents);
0035   se->End();
0036   gSystem->Exit(0);
0037 }