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
0010 #include </direct/phenix+u/workarea/lebedev/test/analysis/install/include/electronid/ElectronID.h>
0011 #include </direct/phenix+u/workarea/lebedev/test/analysis/install/include/eventmix/PairMaker.h>
0012
0013
0014
0015 R__LOAD_LIBRARY(libfun4all.so)
0016 R__LOAD_LIBRARY(libtrackpid.so)
0017 R__LOAD_LIBRARY(libelectronid.so)
0018 R__LOAD_LIBRARY(libeventmix.so)
0019 #endif
0020
0021 void runall()
0022 {
0023 gSystem->Load("libg4dst");
0024 gSystem->Load("libtrackpid");
0025 gSystem->Load("libelectronid");
0026 gSystem->Load("libeventmix");
0027
0028 Fun4AllServer *se = Fun4AllServer::instance();
0029 se->Verbosity(1);
0030
0031 ElectronID* eid = new ElectronID("ElectronID","test_electronid.root");
0032 eid->setEMOPcutlimits(0.7,999.);
0033 eid->setHinOEMcutlimit(0.2);
0034 eid->setPtcutlimit(2.0,30.0);
0035 eid->setHOPcutlimit(0.3);
0036 se->registerSubsystem(eid);
0037
0038 PairMaker *pmaker = new PairMaker("PairMaker","test_eventmix.root");
0039 pmaker->Verbosity(1);
0040 se->registerSubsystem(pmaker);
0041
0042 Fun4AllInputManager *in = new Fun4AllDstInputManager("in");
0043 in->Verbosity(1);
0044 se->registerInputManager(in);
0045 in->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embed/embedupsilonsDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000006-00692.root");
0046
0047
0048
0049
0050
0051
0052 Fun4AllOutputManager *outee = new Fun4AllDstOutputManager("outee","/sphenix/user/lebedev/mdc/ElectronPid_PairMaker_DST.root");
0053 outee->Verbosity(1);
0054 outee->AddNode("ElectronPairs");
0055 se->registerOutputManager(outee);
0056 outee->Print();
0057
0058 se->run();
0059
0060
0061 se->End();
0062 }
0063