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