25 #include <caloreco/RawClusterBuilderTopo.h>
26 #include <particleflowreco/ParticleFlowReco.h>
27 #include <particleflowreco/ParticleFlowJetInput.h>
31 #pragma GCC diagnostic push
32 #pragma GCC diagnostic ignored "-Wundefined-internal"
34 #pragma GCC diagnostic pop
40 R__LOAD_LIBRARY(libfun4all.so)
41 R__LOAD_LIBRARY(libjetbase.so)
42 R__LOAD_LIBRARY(libjetbackground.so)
43 R__LOAD_LIBRARY(libFullJetFinder.so)
44 R__LOAD_LIBRARY(libg4centrality.so)
45 R__LOAD_LIBRARY(libg4dst.so)
46 R__LOAD_LIBRARY(libcalo_reco.so)
47 R__LOAD_LIBRARY(libparticleflow.so)
48 R__LOAD_LIBRARY(libglobalvertex.so)
54 void Fun4All_FullJetFinder(std::
string outDir = "./", std::vector<std::
string> myInputLists = {
"condorJob/fileLists/productionFiles-CHARM-dst_tracks-00000.LIST"},
const int nEvents = 1){
60 bool whichR[7] = {
true,
false,
true,
false,
true,
false,
false};
65 if (outDir.substr(outDir.size() - 1, 1) !=
"/") outDir +=
"/";
66 outDir +=
"myTestJets";
71 size_t findLastDash = fileNumber.find_last_of(
"-");
72 if (findLastDash != std::string::npos) fileNumber.erase(0, findLastDash + 1);
74 size_t pos = fileNumber.find(remove_this);
75 if (pos != std::string::npos) fileNumber.erase(pos, remove_this.length());
76 std::string outputFileName =
"outputData_" + fileNumber +
".root";
78 std::string outputRecoDir = outDir +
"/inReconstruction/";
79 std::string makeDirectory =
"mkdir -p " + outputRecoDir;
80 system(makeDirectory.c_str());
87 for (
unsigned int i = 0;
i < myInputLists.size(); ++
i)
141 ClusterBuilder1->
set_noise(0.0025, 0.006, 0.03);
154 ClusterBuilder2->
set_noise(0.0025, 0.006, 0.03);
191 if(whichR[0])myJetVal->
add_input(
"AntiKt_reco_r02",
"C_AntiKt_Truth_r02",
"AntiKt_r02");
192 if(whichR[1])myJetVal->
add_input(
"AntiKt_reco_r03",
"C_AntiKt_Truth_r03",
"AntiKt_r03");
193 if(whichR[2])myJetVal->
add_input(
"AntiKt_reco_r04",
"C_AntiKt_Truth_r04",
"AntiKt_r04");
194 if(whichR[3])myJetVal->
add_input(
"AntiKt_reco_r05",
"C_AntiKt_Truth_r05",
"AntiKt_r05");
195 if(whichR[4])myJetVal->
add_input(
"AntiKt_reco_r06",
"C_AntiKt_Truth_r06",
"AntiKt_r06");
196 if(whichR[5])myJetVal->
add_input(
"AntiKt_reco_r07",
"C_AntiKt_Truth_r07",
"AntiKt_r07");
197 if(whichR[6])myJetVal->
add_input(
"AntiKt_reco_r08",
"C_AntiKt_Truth_r08",
"AntiKt_r08");
209 std::ifstream
file(outputRecoFile.c_str());
212 std::string moveOutput =
"mv " + outputRecoFile +
" " + outDir;
213 system(moveOutput.c_str());