Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
run.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file run.C
1 #pragma once
2 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
3 #include <fun4all/SubsysReco.h>
8 
9 #include </direct/phenix+u/workarea/lebedev/test/analysis/install/include/eventmix/PairMaker.h>
10 #include </direct/phenix+u/workarea/lebedev/test/analysis/install/include/eventmix/sPHElectronPair.h>
11 #include </direct/phenix+u/workarea/lebedev/test/analysis/install/include/eventmix/sPHElectronPairv1.h>
12 
13 //#include </gpfs/mnt/gpfs02/sphenix/user/lebedev/mdc/test/analysis/EventMix/install/include/eventmix/PairMaker.h>
14 //#include </gpfs/mnt/gpfs02/sphenix/user/lebedev/mdc/test/analysis/EventMix/install/include/eventmix/sPHElectronPair.h>
15 //#include </gpfs/mnt/gpfs02/sphenix/user/lebedev/mdc/test/analysis/EventMix/install/include/eventmix/sPHElectronPairv1.h>
16 
17 //#include </sphenix/u/weihuma/install/include/eventmix/PairMaker.h>
18 //#include </sphenix/u/weihuma/install/include/eventmix/sPHElectronPair.h>
19 //#include </sphenix/u/weihuma/install/include/eventmix/sPHElectronPairv1.h>
20 
21 //#include </sphenix/u/weihuma/install/include/trackpidassoc/ElectronPid.h>
22 //#include </sphenix/u/weihuma/install/include/trackpidassoc/TrackPidAssoc.h>
23 
24 
25 R__LOAD_LIBRARY(libfun4all.so)
26 R__LOAD_LIBRARY(libeventmix.so)
27 R__LOAD_LIBRARY(libtrackpid.so)
28 
29 #endif
30 
31 //void run()
32 //void run(const char *fname = "/sphenix/user/lebedev/mdc/pythiaupsilons/sPHENIX_pythiaupsilons_10.root")
33 //void run(const char *fname = "/sphenix/sim/sim01/sphnxpro/MDC1/embed/embedDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000001-02990.root")
34 void run(
35  const char *fname = "/sphenix/sim/sim01/sphnxpro/MDC1/embed/embedupsilonsDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000006-00692.root"
36 )
37 
38 {
39  gSystem->Load("libg4dst");
40  gSystem->Load("libeventmix");
41 
43  se->Verbosity(1);
44 
45  PairMaker *pmaker = new PairMaker("PairMaker","dummy.root");
46  pmaker->Verbosity(1);
47  se->registerSubsystem(pmaker);
48 
50  in->Verbosity(1);
51  se->registerInputManager(in);
52  in->AddFile(fname);
53  //in->AddListFile("listmb2.txt");
54 
55  Fun4AllOutputManager *outee = new Fun4AllDstOutputManager("outee","/sphenix/user/lebedev/mdc/test.root");
56  outee->Verbosity(1);
57  outee->AddNode("ElectronPairs");
58  se->registerOutputManager(outee);
59  outee->Print();
60 
61  se->run();
62 
63  //se->run(10);
64  se->run();
65  outee->Print();
66 
67  se->End();
68 }