21 #ifndef DOSTANDALONECORRELATORCALCULATION_C
22 #define DOSTANDALONECORRELATORCALCULATION_C
30 #include "/sphenix/user/danderson/install/include/senergycorrelator/SEnergyCorrelator.h"
33 R__LOAD_LIBRARY(/sphenix/user/danderson/install/lib/libsenergycorrelator.so)
36 using namespace SColdQcdCorrelatorAnalysis;
43 const vector<vector<string>> inFile = {
44 {
"../SCorrelatorJetTree/output/condor/final_merge/correlatorJetTree.pp200py8jet10run8_trksWithRoughCuts.d26m9y2023.root"},
45 {
"../SCorrelatorJetTree/output/condor/final_merge/correlatorJetTree.pp200py8jet10run8_trksWithRoughCuts.d26m9y2023.root"}
47 const vector<string> inTree = {
51 const vector<string> outFile = {
52 "twoPoint.pp200py8jet10run8.testCstPtUpperLimit_pt10100_roughCutsWithGoodJetEta_reco.d25m10y2023.root",
53 "twoPoint.pp200py8jet10run8.testCstPtUpperLimit_pt10100_roughCutsWithGoodJetEta_true.d25m10y2023.root"
57 const vector<string> moduleName = {
58 "SRecoEnergyCorrelator",
59 "STrueEnergyCorrelator"
61 const vector<bool> isTruth = {
67 const uint32_t nPointCorr = 2;
68 const uint64_t nBinsDr = 75;
69 const pair<double, double> binRangeDr = {1
e-5, 1.};
72 const pair<double, double> etaJetRange = {-0.7, 0.7};
73 const pair<double, double> momCstRange = {10., 100.};
74 const pair<double, double> drCstRange = {0., 100.};
77 const vector<pair<double, double>> ptJetBins = {{5., 10.}, {10., 15.}, {15., 20.}, {20., 30.}, {30., 50.}};
80 const int subEvtOpt = 0;
81 const bool isEmbed =
false;
85 const bool isComplex =
false;
86 const bool doCstCuts =
true;
87 const bool doDebug =
false;
88 const bool doCstLoop2 =
false;
89 const bool inBatch =
false;
93 recoCorrelator -> SetVerbosity(verbosity);
94 recoCorrelator -> SetInputFiles(inFile[0]);
95 recoCorrelator -> SetInputTree(inTree[0], isTruth[0]);
96 recoCorrelator -> SetOutputFile(outFile[0]);
97 recoCorrelator -> SetJetParameters(ptJetBins, etaJetRange);
98 recoCorrelator -> SetConstituentParameters(momCstRange, drCstRange, doCstCuts);
99 recoCorrelator -> SetCorrelatorParameters(nPointCorr, nBinsDr, binRangeDr);
100 recoCorrelator -> SetDoSecondCstLoop(doCstLoop2);
101 recoCorrelator ->
Init();
102 recoCorrelator -> Analyze();
103 recoCorrelator -> End();
107 trueCorrelator -> SetVerbosity(verbosity);
108 trueCorrelator -> SetInputFiles(inFile[1]);
109 trueCorrelator -> SetInputTree(inTree[1], isTruth[1], isEmbed);
110 trueCorrelator -> SetOutputFile(outFile[1]);
111 trueCorrelator -> SetJetParameters(ptJetBins, etaJetRange);
112 trueCorrelator -> SetConstituentParameters(momCstRange, drCstRange, doCstCuts);
113 trueCorrelator -> SetCorrelatorParameters(nPointCorr, nBinsDr, binRangeDr);
115 trueCorrelator -> SetSubEventsToUse(subEvtOpt);
117 trueCorrelator -> SetDoSecondCstLoop(doCstLoop2);
118 trueCorrelator ->
Init();
119 trueCorrelator -> Analyze();
120 trueCorrelator -> End();