16 #include <hftrackefficiency/HFTrackEfficiency.h>
27 R__LOAD_LIBRARY(libfun4all.so)
28 R__LOAD_LIBRARY(libdecayfinder.so)
29 R__LOAD_LIBRARY(libhftrackefficiency.so)
30 R__LOAD_LIBRARY(libg4vertex.so)
31 R__LOAD_LIBRARY(libglobalvertex.so)
34 using namespace HeavyFlavorReco;
42 void Fun4All_MDC2reco(vector<
string> myInputLists = {
"condorJob/fileLists/productionFiles-CHARM-dst_tracks-00000.list"},
const int nEvents = 0)
46 gSystem->Load(
"libg4dst.so");
47 gSystem->Load(
"libFROG.so");
54 if (outDir.substr(outDir.size() - 1, 1) !=
"/") outDir +=
"/";
57 string fileNumber = myInputLists[0];
58 size_t findLastDash = fileNumber.find_last_of(
"-");
59 if (findLastDash != string::npos) fileNumber.erase(0, findLastDash + 1);
60 string remove_this =
".list";
61 size_t pos = fileNumber.find(remove_this);
62 if (pos != string::npos) fileNumber.erase(pos, remove_this.length());
63 string outputFileName =
"outputFile_" +
reconstructionName +
"_" + fileNumber +
".root";
64 string outputHFEffFileName =
"outputHFEff_" +
reconstructionName +
"_" + fileNumber +
".root";
66 string outputRecoDir = outDir +
"inReconstruction/";
67 string makeDirectory =
"mkdir -p " + outputRecoDir;
68 system(makeDirectory.c_str());
93 for (
unsigned int i = 0;
i < myInputLists.size(); ++
i)
169 ifstream
file(outputRecoFile.c_str());
172 string moveOutput =
"mv " + outputRecoFile +
" " + outDir;
173 system(moveOutput.c_str());
182 system(moveOutput.c_str());
187 std::cout <<
"All done" << std::endl;