Skip to content

Commit 5aae2d7

Browse files
committed
Implement expert comments
1 parent c47d3c1 commit 5aae2d7

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

PWGHF/HFL/Tasks/taskSingleElectron.cxx

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -320,22 +320,21 @@ struct HfTaskSingleElectron {
320320
if (mctrack.size()) {
321321
auto const& grmothersIdsVec = mctrack.front().mothersIds();
322322
if (grmothersIdsVec.empty()) {
323-
static const std::map<int, SourceType> PdgToSource = {
324-
{kPi0, Pi0},
325-
{kEta, Eta},
326-
{kOmega, Omega},
327-
{kPhi, Phi},
328-
{kEtaPrime, EtaPrime},
329-
{kRho770_0, Rho0},
330-
{kKPlus, Ke3},
331-
{kK0Long, K0l}
332-
};
333-
334-
auto it = PdgToSource.find(motherPdg);
335-
if (it != PdgToSource.end()) {
336-
return it->second;
337-
}
338-
return Else;
323+
static const std::map<int, SourceType> PdgToSource = {
324+
{kPi0, Pi0},
325+
{kEta, Eta},
326+
{kOmega, Omega},
327+
{kPhi, Phi},
328+
{kEtaPrime, EtaPrime},
329+
{kRho770_0, Rho0},
330+
{kKPlus, Ke3},
331+
{kK0Long, K0l}};
332+
333+
auto it = PdgToSource.find(motherPdg);
334+
if (it != PdgToSource.end()) {
335+
return it->second;
336+
}
337+
return Else;
339338

340339
} else {
341340
if (motherPdg == kPi0) {

0 commit comments

Comments
 (0)