File indexing completed on 2025-08-05 08:12:35
0001 #pragma once
0002 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
0003 #include <fun4all/SubsysReco.h>
0004 #include <fun4all/Fun4AllServer.h>
0005 #include <fun4all/Fun4AllInputManager.h>
0006 #include <fun4all/Fun4AllDstInputManager.h>
0007 #include <fun4all/Fun4AllDstOutputManager.h>
0008
0009 #include </direct/phenix+u/workarea/lebedev/test/analysis/install/include/eventmix/PairMaker.h>
0010 #include </direct/phenix+u/workarea/lebedev/test/analysis/install/include/eventmix/sPHElectronPair.h>
0011 #include </direct/phenix+u/workarea/lebedev/test/analysis/install/include/eventmix/sPHElectronPairv1.h>
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025 R__LOAD_LIBRARY(libfun4all.so)
0026 R__LOAD_LIBRARY(libeventmix.so)
0027 R__LOAD_LIBRARY(libtrackpid.so)
0028
0029 #endif
0030
0031
0032
0033
0034 void run(
0035 const char *fname = "/sphenix/sim/sim01/sphnxpro/MDC1/embed/embedupsilonsDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000006-00692.root"
0036 )
0037
0038 {
0039 gSystem->Load("libg4dst");
0040 gSystem->Load("libeventmix");
0041
0042 Fun4AllServer *se = Fun4AllServer::instance();
0043 se->Verbosity(1);
0044
0045 PairMaker *pmaker = new PairMaker("PairMaker","dummy.root");
0046 pmaker->Verbosity(1);
0047 se->registerSubsystem(pmaker);
0048
0049 Fun4AllInputManager *in = new Fun4AllDstInputManager("in");
0050 in->Verbosity(1);
0051 se->registerInputManager(in);
0052 in->AddFile(fname);
0053
0054
0055 Fun4AllOutputManager *outee = new Fun4AllDstOutputManager("outee","/sphenix/user/lebedev/mdc/test.root");
0056 outee->Verbosity(1);
0057 outee->AddNode("ElectronPairs");
0058 se->registerOutputManager(outee);
0059 outee->Print();
0060
0061 se->run();
0062
0063
0064 se->run();
0065 outee->Print();
0066
0067 se->End();
0068 }