6 #include <multidetectormultiplicity/MultiDetectorMultiplicity.h>
15 R__LOAD_LIBRARY(libfun4all.so)
16 R__LOAD_LIBRARY(libg4centrality.so)
17 R__LOAD_LIBRARY(libmultidetectormultiplicity.so)
30 void Fun4All_MDM(vector<
string> myInputLists = {
"productionFiles-D0JETS-dst_tracks-00000.list",
"productionFiles-D0JETS-dst_vertex-00000.list",
"productionFiles-D0JETS-dst_truth-00000.list",
"productionFiles-D0JETS-dst_trkr_g4hit-00000.list",
"productionFiles-D0JETS-dst_trackseeds-00000.list",
"productionFiles-D0JETS-dst_trkr_cluster-00000.list",
"productionFiles-D0JETS-dst_calo_cluster-00000.list",
"productionFiles-D0JETS-dst_truth_reco-00000.list"},
const int nEvents = 100)
34 gSystem->Load(
"libg4dst.so");
35 gSystem->Load(
"libFROG.so");
40 if (outDir.substr(outDir.size() - 1, 1) !=
"/") outDir +=
"/";
43 string fileNumber = myInputLists[0];
44 size_t findLastDash = fileNumber.find_last_of(
"-");
45 if (findLastDash != string::npos) fileNumber.erase(0, findLastDash + 1);
46 string remove_this =
".list";
47 size_t pos = fileNumber.find(remove_this);
48 if (pos != string::npos) fileNumber.erase(pos, remove_this.length());
49 string outputFileName =
"outputData_" + fileNumber +
".root";
51 string outputRecoDir = outDir +
"/inReconstruction/";
52 string makeDirectory =
"mkdir -p " + outputRecoDir;
53 system(makeDirectory.c_str());
61 for (
unsigned int i = 0;
i < myInputLists.size(); ++
i)
81 ifstream
file(outputRecoFile.c_str());
84 string moveOutput =
"mv " + outputRecoFile +
" " + outDir;
85 system(moveOutput.c_str());
89 std::cout <<
"All done" << std::endl;