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 
2 #pragma once
3 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
4 #include <fun4all/SubsysReco.h>
9 
10 #include </gpfs/mnt/gpfs02/sphenix/user/lebedev/mdc/analysis/FilterEventsUpsilon/install/include/filtereventsupsilon/FilterEventsUpsilon.h>
11 
12 R__LOAD_LIBRARY(libfun4all.so)
13 R__LOAD_LIBRARY(libfiltereventsupsilon.so)
14 #endif
15 
16 void run(int kkk=0)
17 {
18 
19 // gSystem->Load("libg4dst");
20 // gSystem->Load("libfiltereventsupsilon");
21 
22  char outfilename[99];
23  char infilename1[99];
24  char infilename2[99];
25  sprintf(outfilename,"test.root");
26  cout << "output file name: " << outfilename << endl;
27 
29  se->Verbosity(1);
30 
32  se->registerInputManager(in1);
33 // Fun4AllInputManager *in2 = new Fun4AllDstInputManager("in2");
34 // se->registerInputManager(in2);
35 // Fun4AllInputManager *in3 = new Fun4AllDstInputManager("in3");
36 // se->registerInputManager(in3);
37 // Fun4AllInputManager *in4 = new Fun4AllDstInputManager("in4");
38 // se->registerInputManager(in4);
39 
40  in1->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embedpion/embedupsilonsDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000060-00110.root");
41  in1->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embedpion/embedupsilonsDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000060-00111.root");
42  in1->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embedpion/embedupsilonsDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000060-00112.root");
43  in1->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embedpion/embedupsilonsDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000060-00113.root");
44  in1->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embedpion/embedupsilonsDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000060-00114.root");
45 
46 // in1->AddFile("DST_TRACKS_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000060-00090.root");
47 // in2->AddFile("DST_TRACKSEEDS_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000060-00090.root");
48 // in3->AddFile("DST_TRKR_CLUSTER_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000060-00090.root");
49 // in4->AddFile("DST_CALO_CLUSTER_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000060-00090.root");
50 
51 /*
52  for(int i=0; i<10; i++) {
53  sprintf(infilename1,"DST_TRACKS_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000060-%05d.root",kkk+i);
54  cout << "in1: " << infilename1 << endl;
55  in1->AddFile(infilename1);
56  sprintf(infilename2,"DST_CALO_CLUSTER_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000060-%05d.root",kkk+i);
57  cout << "in2: " << infilename2 << endl;
58  in2->AddFile(infilename2);
59  }
60 */
61 
62  FilterEventsUpsilon *filter = new FilterEventsUpsilon("FilterEventsUpsilon");
63  se->registerSubsystem(filter);
64 
65  Fun4AllOutputManager *outee = new Fun4AllDstOutputManager("outee",outfilename);
66  outee->Verbosity(1);
67  outee->AddNode("SvtxTrackMap_ee");
68  outee->AddNode("TRKR_CLUSTER");
69  outee->AddNode("SiliconTrackSeedContainer");
70  outee->AddNode("TpcTrackSeedContainer");
71  outee->AddNode("SvtxTrackSeedContainer");
72  outee->AddNode("CLUSTER_CEMC");
73  outee->AddNode("SvtxVertexMap");
74  outee->AddNode("GlobalVertexMap");
75  se->registerOutputManager(outee);
76  outee->Print();
77 
78  se->run(10);
79  se->End();
80 cout << "all done." << endl;
81 }
82 
83 
84