Skip to content

Commit 6d359d1

Browse files
committed
minor update
1 parent cabff5f commit 6d359d1

2 files changed

Lines changed: 7 additions & 14 deletions

File tree

PWGHF/HFJ/Tasks/taskDstarPolarisationInJet.cxx

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ using namespace o2::aod;
4040
using namespace o2::framework;
4141
using namespace o2::framework::expressions;
4242

43-
namespace o2::aod
43+
namespace o2
4444
{
4545
namespace charm_polarisation
4646
{
@@ -57,13 +57,12 @@ enum DecayChannel : uint8_t {
5757
NChannels
5858
};
5959
} // namespace charm_polarisation
60-
} // namespace o2::aod
60+
} // namespace o2
6161

6262
struct HfTaskDstarPolarisationInJet {
6363

6464
float massPi{0.f};
6565
float massKaon{0.f};
66-
float massProton{0.f};
6766
float massDstar{0.f};
6867

6968
float bkgRotationAngleStep{0.f};
@@ -129,13 +128,8 @@ struct HfTaskDstarPolarisationInJet {
129128
eventSelectionBits = jetderiveddatautilities::initialiseEventSelectionBits(eventSelections.value);
130129

131130
/// check process functions
132-
const int nProcesses =
133-
static_cast<int>(doprocessDstar) +
134-
static_cast<int>(doprocessDstarWithMl) +
135-
static_cast<int>(doprocessDstarMc) +
136-
static_cast<int>(doprocessDstarMcWithMl);
137-
// std::array<int, 4> processes = {doprocessDstar, doprocessDstarWithMl, doprocessDstarMc, doprocessDstarMcWithMl};
138-
// const int nProcesses = std::accumulate(processes.begin(), processes.end(), 0);
131+
std::array<int, 4> processes = {doprocessDstar, doprocessDstarWithMl, doprocessDstarMc, doprocessDstarMcWithMl};
132+
const int nProcesses = std::accumulate(processes.begin(), processes.end(), 0);
139133
if (nProcesses > 1) {
140134
LOGP(fatal, "Only one process function should be enabled at a time, please check your configuration");
141135
}
@@ -168,7 +162,6 @@ struct HfTaskDstarPolarisationInJet {
168162
}
169163

170164
massPi = o2::constants::physics::MassPiPlus;
171-
massProton = o2::constants::physics::MassProton;
172165
massKaon = o2::constants::physics::MassKaonCharged;
173166
massDstar = o2::constants::physics::MassDStar;
174167
bkgRotationAngleStep = (nBkgRotations > 1) ? (maxRotAngleMultByPi - minRotAngleMultByPi) * constants::math::PI / (nBkgRotations - 1) : 0.;
@@ -699,7 +692,7 @@ struct HfTaskDstarPolarisationInJet {
699692
ptBhadMother = candidate.ptBhadMotherPart();
700693
int pdgBhadMother = candidate.pdgBhadMotherPart();
701694
// For unknown reasons there are charm hadrons coming directly from beauty diquarks without an intermediate B-hadron which have an unreasonable correlation between the pT of the charm hadron and the beauty mother. We also remove charm hadrons from quarkonia.
702-
if (origin == RecoDecay::OriginType::NonPrompt && (pdgBhadMother == 5101 || pdgBhadMother == 5103 || pdgBhadMother == 5201 || pdgBhadMother == 5203 || pdgBhadMother == 5301 || pdgBhadMother == 5303 || pdgBhadMother == 5401 || pdgBhadMother == 5403 || pdgBhadMother == 5503 || pdgBhadMother == 553 || pdgBhadMother == 555 || pdgBhadMother == 553 || pdgBhadMother == 557)) { // o2-linter: disable=pdg/explicit-code, magic-number (constants not in the PDG header)
695+
if (origin == RecoDecay::OriginType::NonPrompt && (pdgBhadMother == 5101 || pdgBhadMother == 5103 || pdgBhadMother == 5201 || pdgBhadMother == 5203 || pdgBhadMother == 5301 || pdgBhadMother == 5303 || pdgBhadMother == 5401 || pdgBhadMother == 5403 || pdgBhadMother == 5503 || pdgBhadMother == 553 || pdgBhadMother == 555 || pdgBhadMother == 557)) { // o2-linter: disable=pdg/explicit-code, magic-number (constants not in the PDG header)
703696
return isCandidateInSignalRegion;
704697
}
705698
}

PWGHF/TableProducer/derivedDataCreatorDstarToD0Pi.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ struct HfDerivedDataCreatorDstarToD0Pi {
130130
/// nItsClsMin is the minumum number of clusters in ITS
131131
/// nTpcClsMin is the minumum number of clusters in TPC
132132
template <typename Trk>
133-
void getTrackingInfos(std::vector<Trk> const& prongTracks, float& etaMin, int& nItsClsMin, int& nTpcClsMin)
133+
void getTrackingInfos(std::array<Trk, 3> const& prongTracks, float& etaMin, int& nItsClsMin, int& nTpcClsMin)
134134
{
135135
etaMin = 10.f;
136136
nItsClsMin = 10;
@@ -151,7 +151,7 @@ struct HfDerivedDataCreatorDstarToD0Pi {
151151
if (fillCandidatePar) {
152152
float absEtaTrackMin{-1.f};
153153
int numItsClsMin{-1}, numTpcClsMin{-1};
154-
getTrackingInfos(std::vector{prong0, prong1, prongSoftPi}, absEtaTrackMin, numItsClsMin, numTpcClsMin);
154+
getTrackingInfos(std::array{prong0, prong1, prongSoftPi}, absEtaTrackMin, numItsClsMin, numTpcClsMin);
155155
rowCandidatePar(
156156
candidate.pxD0(),
157157
candidate.pyD0(),

0 commit comments

Comments
 (0)