Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
runanapythiaupsilon.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file runanapythiaupsilon.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 
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,"/sphenix/user/lebedev/mdc/embedmb_withpileup_bb.root");
28  sprintf(outfilename,"test.root");
29  cout << "output file: " << outfilename << endl;
30 
32  sPHAnalysis *ana = new sPHAnalysis("sPHAnalysis",outfilename);
33  ana->set_whattodo(2);
34  se->registerSubsystem(ana);
35 
37  //in->fileopen(fname);
38  se->registerInputManager(in);
39  //in->AddListFile("pions3.txt");
40  //in->AddListFile("kaons.txt");
41  in->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embed/pythiaupsilonDST_pythia6-0000000000-00101.root");
42 
43 // for(int i=0; i<10; i++) {
44 // sprintf(infilename,"/sphenix/sim/sim01/sphnxpro/MDC1/embed/embedDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000001-0%d.root",kkk+i);
45 // cout << "in: " << infilename << endl;
46 // in->AddFile(infilename);
47 // }
48 
49  se->run();
50  se->End();
51 }
52