Back to home page

sPhenix code displayed by LXR

 
 

    


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 //#include </gpfs/mnt/gpfs02/sphenix/user/lebedev/mdc/test/analysis/EventMix/install/include/eventmix/PairMaker.h>
0014 //#include </gpfs/mnt/gpfs02/sphenix/user/lebedev/mdc/test/analysis/EventMix/install/include/eventmix/sPHElectronPair.h>
0015 //#include </gpfs/mnt/gpfs02/sphenix/user/lebedev/mdc/test/analysis/EventMix/install/include/eventmix/sPHElectronPairv1.h>
0016 
0017 //#include </sphenix/u/weihuma/install/include/eventmix/PairMaker.h>
0018 //#include </sphenix/u/weihuma/install/include/eventmix/sPHElectronPair.h>
0019 //#include </sphenix/u/weihuma/install/include/eventmix/sPHElectronPairv1.h>
0020 
0021 //#include </sphenix/u/weihuma/install/include/trackpidassoc/ElectronPid.h>
0022 //#include </sphenix/u/weihuma/install/include/trackpidassoc/TrackPidAssoc.h>
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 //void run()
0032 //void run(const char *fname = "/sphenix/user/lebedev/mdc/pythiaupsilons/sPHENIX_pythiaupsilons_10.root")
0033 //void run(const char *fname = "/sphenix/sim/sim01/sphnxpro/MDC1/embed/embedDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000001-02990.root")
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   //in->AddListFile("listmb2.txt");
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  //se->run(10);
0064   se->run();
0065   outee->Print();
0066 
0067   se->End();
0068 }