File indexing completed on 2025-08-05 08:12:37
0001
0002 #pragma once
0003 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
0004 #include <fun4all/SubsysReco.h>
0005 #include <fun4all/Fun4AllServer.h>
0006 #include <fun4all/Fun4AllInputManager.h>
0007 #include <fun4all/Fun4AllDstInputManager.h>
0008 #include <fun4all/Fun4AllDstOutputManager.h>
0009
0010 #include </gpfs/mnt/gpfs02/sphenix/user/lebedev/mdc/analysis/FilterEventsUpsilon/install/include/filtereventsupsilon/FilterEventsUpsilon.h>
0011
0012 R__LOAD_LIBRARY(libfun4all.so)
0013 R__LOAD_LIBRARY(libfiltereventsupsilon.so)
0014 #endif
0015
0016 void run(int kkk=0)
0017 {
0018
0019
0020
0021
0022 char outfilename[99];
0023 char infilename1[99];
0024 char infilename2[99];
0025 sprintf(outfilename,"test.root");
0026 cout << "output file name: " << outfilename << endl;
0027
0028 Fun4AllServer *se = Fun4AllServer::instance();
0029 se->Verbosity(1);
0030
0031 Fun4AllInputManager *in1 = new Fun4AllDstInputManager("in1");
0032 se->registerInputManager(in1);
0033
0034
0035
0036
0037
0038
0039
0040 in1->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embedpion/embedupsilonsDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000060-00110.root");
0041 in1->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embedpion/embedupsilonsDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000060-00111.root");
0042 in1->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embedpion/embedupsilonsDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000060-00112.root");
0043 in1->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embedpion/embedupsilonsDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000060-00113.root");
0044 in1->AddFile("/sphenix/sim/sim01/sphnxpro/MDC1/embedpion/embedupsilonsDST_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000060-00114.root");
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062 FilterEventsUpsilon *filter = new FilterEventsUpsilon("FilterEventsUpsilon");
0063 se->registerSubsystem(filter);
0064
0065 Fun4AllOutputManager *outee = new Fun4AllDstOutputManager("outee",outfilename);
0066 outee->Verbosity(1);
0067 outee->AddNode("SvtxTrackMap_ee");
0068 outee->AddNode("TRKR_CLUSTER");
0069 outee->AddNode("SiliconTrackSeedContainer");
0070 outee->AddNode("TpcTrackSeedContainer");
0071 outee->AddNode("SvtxTrackSeedContainer");
0072 outee->AddNode("CLUSTER_CEMC");
0073 outee->AddNode("SvtxVertexMap");
0074 outee->AddNode("GlobalVertexMap");
0075 se->registerOutputManager(outee);
0076 outee->Print();
0077
0078 se->run(10);
0079 se->End();
0080 cout << "all done." << endl;
0081 }
0082
0083
0084