Skip to content

Commit 27c6b04

Browse files
authored
[PWGJE] Adding shift in rho for reference events (#10193)
1 parent 7f67b50 commit 27c6b04

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

PWGJE/Tasks/jetHadronRecoil.cxx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ struct JetHadronRecoil {
6565
Configurable<float> pTHatExponent{"pTHatExponent", 4.0, "exponent of the event weight for the calculation of pTHat"};
6666
Configurable<float> pTHatMaxMCD{"pTHatMaxMCD", 999.0, "maximum fraction of hard scattering for jet acceptance in detector MC"};
6767
Configurable<float> pTHatMaxMCP{"pTHatMaxMCP", 999.0, "maximum fraction of hard scattering for jet acceptance in particle MC"};
68+
Configurable<float> rhoReferenceShift{"rhoReferenceShift", 0.0, "shift in rho calculated in reference events for consistency with signal events"};
6869
Configurable<std::string> triggerMasks{"triggerMasks", "", "possible JE Trigger masks: fJetChLowPt,fJetChHighPt,fTrackLowPt,fTrackHighPt,fJetD0ChLowPt,fJetD0ChHighPt,fJetLcChLowPt,fJetLcChHighPt,fEMCALReadout,fJetFullHighPt,fJetFullLowPt,fJetNeutralHighPt,fJetNeutralLowPt,fGammaVeryHighPtEMCAL,fGammaVeryHighPtDCAL,fGammaHighPtEMCAL,fGammaHighPtDCAL,fGammaLowPtEMCAL,fGammaLowPtDCAL,fGammaVeryLowPtEMCAL,fGammaVeryLowPtDCAL"};
6970
Configurable<bool> skipMBGapEvents{"skipMBGapEvents", false, "flag to choose to reject min. bias gap events; jet-level rejection applied at the jet finder level, here rejection is applied for collision and track process functions"};
7071

@@ -167,6 +168,7 @@ struct JetHadronRecoil {
167168
int trigNumber = 0;
168169
int nTT = 0;
169170
float pTHat = 10. / (std::pow(weight, 1.0 / pTHatExponent));
171+
float rhoReference = rho + rhoReferenceShift;
170172

171173
float dice = rand->Rndm();
172174
if (dice < fracSig)
@@ -204,7 +206,7 @@ struct JetHadronRecoil {
204206
if (!isSigCol) {
205207
registry.fill(HIST("hNtrig"), 0.5, weight);
206208
registry.fill(HIST("hRefEventTriggers"), nTT, weight);
207-
registry.fill(HIST("hRhoReference"), rho, weight);
209+
registry.fill(HIST("hRhoReference"), rhoReference, weight);
208210
}
209211
}
210212

@@ -252,14 +254,14 @@ struct JetHadronRecoil {
252254
double deltaEta = jetWTA.eta() - jet.eta();
253255
double dR = RecoDecay::sqrtSumOfSquares(deltaPhi, deltaEta);
254256
if (std::abs(dphi - o2::constants::math::PI) < 0.6) {
255-
registry.fill(HIST("hDeltaRpTReference"), jet.pt() - (rho * jet.area()), dR, weight);
257+
registry.fill(HIST("hDeltaRpTReference"), jet.pt() - (rhoReference * jet.area()), dR, weight);
256258
registry.fill(HIST("hDeltaRReference"), dR, weight);
257259
}
258-
registry.fill(HIST("hDeltaRpTDPhiReference"), jet.pt() - (rho * jet.area()), dphi, dR, weight);
260+
registry.fill(HIST("hDeltaRpTDPhiReference"), jet.pt() - (rhoReference * jet.area()), dphi, dR, weight);
259261
}
260-
registry.fill(HIST("hReferencePtDPhi"), dphi, jet.pt() - (rho * jet.area()), weight);
262+
registry.fill(HIST("hReferencePtDPhi"), dphi, jet.pt() - (rhoReference * jet.area()), weight);
261263
if (std::abs(dphi - o2::constants::math::PI) < 0.6) {
262-
registry.fill(HIST("hReferencePt"), jet.pt() - (rho * jet.area()), weight);
264+
registry.fill(HIST("hReferencePt"), jet.pt() - (rhoReference * jet.area()), weight);
263265
}
264266
}
265267
}

0 commit comments

Comments
 (0)