You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3144327
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: PWGJE/Tasks/jetSpectraEseTask.cxx
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,7 @@ struct JetSpectraEseTask {
88
88
Configurable<bool> cfgUseMCEventWeights{"cfgUseMCEventWeights", false, "Flag for using MC event weights"};
89
89
Configurable<float> leadingConstituentPtMin{"leadingConstituentPtMin", -99.0, "minimum pT selection on jet constituent"};
90
90
Configurable<float> leadingConstituentPtMax{"leadingConstituentPtMax", 9999.0, "maximum pT selection on jet constituent"};
91
-
Configurable<bool> checkLeadConstituentMinPtForMcpJets{"checkLeadConstituentMinPtForMcpJets", false, "flag to choose whether particle level jets should have their lead track pt above leadingConstituentPtMin to be accepted; off by default, as leadingConstituentPtMin cut is only applied on MCD jets for the Pb-Pb analysis using pp MC anchored to Pb-Pb for the response matrix"};
91
+
Configurable<bool> checkLeadConstituentPtForMcpJets{"checkLeadConstituentPtForMcpJets", false, "flag to choose whether particle level jets should have their lead track pt above leadingConstituentPtMin to be accepted; off by default, as leadingConstituentPtMin cut is only applied on MCD jets for the Pb-Pb analysis using pp MC anchored to Pb-Pb for the response matrix"};
92
92
Configurable<float> pTHatMaxMCD{"pTHatMaxMCD", 999.0, "maximum fraction of hard scattering for jet acceptance in detector MC"};
93
93
Configurable<float> pTHatMaxMCP{"pTHatMaxMCP", 999.0, "maximum fraction of hard scattering for jet acceptance in particle MC"};
94
94
Configurable<float> pTHatExponent{"pTHatExponent", 6.0, "exponent of the event weight for the calculation of pTHat"};
@@ -2077,6 +2077,9 @@ struct JetSpectraEseTask {
2077
2077
if (!checkConstituentMinPt && !checkConstituentMaxPt) {
2078
2078
checkConstituentPt = false;
2079
2079
}
2080
+
if (mcLevelIsParticleLevel && !checkLeadConstituentPtForMcpJets) {
for (constauto& constituent : jet.templatetracks_as<TTracks>()) {
2086
2089
double pt = constituent.pt();
2087
2090
2088
-
if ((!checkLeadConstituentMinPtForMcpJets && mcLevelIsParticleLevel) || (checkConstituentMinPt && pt >= leadingConstituentPtMin)) {// if the jet is mcp level and checkLeadConstituentMinPtForMcpJets is true, then the pt of the leading track of that jet does not need to be below the defined leadingConstituentPtMin cut
2091
+
if ((checkConstituentMinPt && pt >= leadingConstituentPtMin)) {
2089
2092
isMinLeadingConstituent = true;
2090
2093
}
2091
2094
if (checkConstituentMaxPt && pt > leadingConstituentPtMax) {
0 commit comments