Skip to content

Commit 3bbc1fc

Browse files
vkuceranjacazio
andauthored
DPG: Remove RecoDecay::getMassPDG (#3693)
* DPG: Remove RecoDecay::getMassPDG * Nicolo's change with PID header (#31) * DPG: Remove RecoDecay::getMassPDG * Remove RecoDecay dependence --------- Co-authored-by: Vít Kučera <vit.kucera@cern.ch> --------- Co-authored-by: Nicolò Jacazio <njacazio@users.noreply.github.com>
1 parent 16f84fe commit 3bbc1fc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

DPG/Tasks/AOTTrack/perfK0sResolution.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include "Framework/AnalysisDataModel.h"
1515
#include "Framework/ASoAHelpers.h"
1616
#include "ReconstructionDataFormats/Track.h"
17-
#include "Common/Core/RecoDecay.h"
17+
#include "ReconstructionDataFormats/PID.h"
1818
#include "Common/Core/trackUtilities.h"
1919
#include "PWGLF/DataModel/LFStrangenessTables.h"
2020
#include "Common/Core/TrackSelection.h"
@@ -23,6 +23,7 @@
2323
#include "Common/DataModel/PIDResponse.h"
2424

2525
using namespace o2;
26+
using namespace o2::track;
2627
using namespace o2::framework;
2728
using namespace o2::framework::expressions;
2829

@@ -73,7 +74,7 @@ struct perfK0sResolution {
7374
return kFALSE;
7475
if (v0.v0radius() < v0setting_radius)
7576
return kFALSE;
76-
if (v0.distovertotmom(collision.posX(), collision.posY(), collision.posZ()) * RecoDecay::getMassPDG(kK0Short) > 2.684 * v0lifetime)
77+
if (v0.distovertotmom(collision.posX(), collision.posY(), collision.posZ()) * pid_constants::sMasses[PID::K0] > 2.684 * v0lifetime)
7778
return kFALSE;
7879

7980
// Apply selections on V0 daughters

0 commit comments

Comments
 (0)