Skip to content

Commit f318826

Browse files
committed
[PWGJE] Update jetDsSpecSubs task
1 parent e3e2701 commit f318826

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

PWGJE/Tasks/jetDsSpecSubs.cxx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@
88
// In applying this license CERN does not waive the privileges and immunities
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
11-
12-
// Jet substructure and spectrum task for D_s mesons
13-
//
14-
// This task is used to reconstruct and analyse jets containing charged D_s
15-
// mesons
1611
//
12+
/// \file jetDsSpecSubs.cxx
13+
/// \brief Ds-tagged jet analysis with substructure histogram outputs
14+
///
15+
/// This task reconstructs and analyses jets containing charged D_s mesons.
16+
///
1717
/// \author Monalisa Melo <monalisa.melo@cern.ch>, Universidade de São Paulo
18-
//
1918

2019
#include "PWGHF/Core/DecayChannels.h"
2120
#include "PWGJE/Core/JetDerivedDataUtilities.h"
@@ -198,7 +197,7 @@ struct JetDsSpecSubs {
198197

199198
registry.fill(HIST("h_jet_counter"), 0.5);
200199

201-
bool hasDs = false;
200+
bool hasDsCandidate = false;
202201

203202
TVector3 jetVector(jet.px(), jet.py(), jet.pz());
204203

@@ -215,13 +214,13 @@ struct JetDsSpecSubs {
215214
// Loop over Ds candidates (particle level)
216215
for (const auto& dsCandidate : jet.candidates_as<aod::CandidatesDsData>()) {
217216

218-
hasDs = true;
217+
hasDsCandidate = true;
219218

220219
TVector3 dsVector(dsCandidate.px(), dsCandidate.py(), dsCandidate.pz());
221220

222221
// zParallel defined as longitudinal momentum fraction along the jet axis
223222
const double zParallel = (jetVector * dsVector) / (jetVector * jetVector);
224-
const double axisDistance = jetutilities::deltaR(jet, dsCandidate);
223+
const float axisDistance = jetutilities::deltaR(jet, dsCandidate);
225224

226225
// --- Ds-level observables ---
227226
registry.fill(HIST("h_ds_jet_projection"), zParallel);
@@ -241,7 +240,7 @@ struct JetDsSpecSubs {
241240
}
242241

243242
// Jet-level quantities (filled once per jet containing at least one Ds)
244-
if (hasDs) {
243+
if (hasDsCandidate) {
245244

246245
registry.fill(HIST("h_jet_counter"), 1.5);
247246

0 commit comments

Comments
 (0)