Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:13:28

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 
0008 #include </gpfs/mnt/gpfs02/sphenix/user/lebedev/mdc/analysis/install/include/sphanalysis/sPHAnalysis.h>
0009 #include </gpfs/mnt/gpfs02/sphenix/user/lebedev/mdc/analysis/install/include/eventmix/sPHElectronPair.h>
0010 #include </gpfs/mnt/gpfs02/sphenix/user/lebedev/mdc/analysis/install/include/eventmix/sPHElectronPairv1.h>
0011 #include </gpfs/mnt/gpfs02/sphenix/user/lebedev/mdc/analysis/install/include/eventmix/sPHElectronPairContainer.h>
0012 #include </gpfs/mnt/gpfs02/sphenix/user/lebedev/mdc/analysis/install/include/eventmix/sPHElectronPairContainerv1.h>
0013 
0014 R__LOAD_LIBRARY(libfun4all.so)
0015 R__LOAD_LIBRARY(libeventmix.so)
0016 R__LOAD_LIBRARY(libsphanalysis.so)
0017 #endif
0018 
0019 void runanae()
0020 {
0021   gSystem->Load("libg4dst");
0022   gSystem->Load("libeventmix");
0023   gSystem->Load("libsphanalysis");
0024 
0025   char outfilename[99];
0026   char infilename[99];
0027   sprintf(outfilename,"electrons3.root");
0028   cout << "output file: " << outfilename << endl;
0029 
0030   Fun4AllServer *se = Fun4AllServer::instance();
0031   sPHAnalysis *ana = new sPHAnalysis("sPHAnalysis",outfilename);
0032   ana->set_whattodo(1);
0033   se->registerSubsystem(ana);
0034 
0035   Fun4AllInputManager *in = new Fun4AllDstInputManager("in");
0036   se->registerInputManager(in);
0037   in->AddListFile("electrons3.txt");
0038   //in->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embedpion/embedelectronsDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000002-00009.root");
0039 
0040   se->run();
0041   se->End();
0042 }
0043