Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
runanae.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file runanae.C
1 #pragma once
2 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
3 #include <fun4all/SubsysReco.h>
7 
8 #include </gpfs/mnt/gpfs02/sphenix/user/lebedev/mdc/analysis/install/include/sphanalysis/sPHAnalysis.h>
9 #include </gpfs/mnt/gpfs02/sphenix/user/lebedev/mdc/analysis/install/include/eventmix/sPHElectronPair.h>
10 #include </gpfs/mnt/gpfs02/sphenix/user/lebedev/mdc/analysis/install/include/eventmix/sPHElectronPairv1.h>
11 #include </gpfs/mnt/gpfs02/sphenix/user/lebedev/mdc/analysis/install/include/eventmix/sPHElectronPairContainer.h>
12 #include </gpfs/mnt/gpfs02/sphenix/user/lebedev/mdc/analysis/install/include/eventmix/sPHElectronPairContainerv1.h>
13 
14 R__LOAD_LIBRARY(libfun4all.so)
15 R__LOAD_LIBRARY(libeventmix.so)
16 R__LOAD_LIBRARY(libsphanalysis.so)
17 #endif
18 
19 void runanae()
20 {
21  gSystem->Load("libg4dst");
22  gSystem->Load("libeventmix");
23  gSystem->Load("libsphanalysis");
24 
25  char outfilename[99];
26  char infilename[99];
27  sprintf(outfilename,"electrons3.root");
28  cout << "output file: " << outfilename << endl;
29 
31  sPHAnalysis *ana = new sPHAnalysis("sPHAnalysis",outfilename);
32  ana->set_whattodo(1);
33  se->registerSubsystem(ana);
34 
36  se->registerInputManager(in);
37  in->AddListFile("electrons3.txt");
38  //in->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embedpion/embedelectronsDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000002-00009.root");
39 
40  se->run();
41  se->End();
42 }
43