Skip to content

Commit 5421720

Browse files
authored
Replace RecoDecay::getMass with constants (#3674)
1 parent 468f5e0 commit 5421720

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

EventFiltering/PWGLF/filterf1proton.cxx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include "Common/DataModel/Multiplicity.h"
3737
#include "Common/DataModel/PIDResponse.h"
3838
#include "PWGLF/DataModel/LFStrangenessTables.h"
39+
#include "PWGHF/Core/PDG.h"
3940
#include "DataFormatsTPC/BetheBlochAleph.h"
4041
#include "CCDB/BasicCCDBManager.h"
4142
#include "CCDB/CcdbApi.h"
@@ -315,7 +316,7 @@ struct filterf1proton {
315316
const float dcaDaughv0 = candidate.dcaV0daughters();
316317
const float cpav0 = candidate.v0cosPA(collision.posX(), collision.posY(), collision.posZ());
317318

318-
float CtauK0s = candidate.distovertotmom(collision.posX(), collision.posY(), collision.posZ()) * RecoDecay::getMassPDG(kK0Short);
319+
float CtauK0s = candidate.distovertotmom(collision.posX(), collision.posY(), collision.posZ()) * o2::analysis::pdg::MassK0Short;
319320
float lowmasscutks0 = 0.497 - 2.0 * cSigmaMassKs0;
320321
float highmasscutks0 = 0.497 + 2.0 * cSigmaMassKs0;
321322

@@ -389,10 +390,10 @@ struct filterf1proton {
389390

390391
std::vector<double> BBProton, BBAntiproton, BBPion, BBAntipion, BBKaon, BBAntikaon;
391392
ROOT::Math::PtEtaPhiMVector F1Vector, KKs0Vector;
392-
double massPi = RecoDecay::getMassPDG(kPiPlus);
393-
double massKa = RecoDecay::getMassPDG(kKPlus);
393+
double massPi = o2::analysis::pdg::MassPiPlus;
394+
double massKa = o2::analysis::pdg::MassKPlus;
394395
double massPr = o2::constants::physics::MassProton;
395-
double massK0s = RecoDecay::getMassPDG(kK0Short);
396+
double massK0s = o2::analysis::pdg::MassK0Short;
396397
double massF1{0.};
397398
double masskKs0{0.};
398399
double pT{0.};

0 commit comments

Comments
 (0)