Skip to content

Commit 4dc01a6

Browse files
authored
Update lambdaR2Correlation.cxx
1 parent 835e310 commit 4dc01a6

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

PWGCF/TwoParticleCorrelations/Tasks/lambdaR2Correlation.cxx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,8 @@ struct LambdaTableProducer {
389389

390390
// Initialize Global Variables
391391
float cent = 0., mult = 0.;
392-
TList *ccdbObjRecoEff, *ccdbObjMatchEff;
392+
TList *ccdbObjRecoEff = nullptr;
393+
TList *ccdbObjMatchEff = nullptr;
393394
static constexpr std::string_view SubDir[] = {"QA/Lambda/", "QA/AntiLambda/", "QA/KaonPlus/", "QA/KaonMinus/"};
394395

395396
void init(InitContext const&)
@@ -852,14 +853,6 @@ struct LambdaTableProducer {
852853
auto postrack = v0.template posTrack_as<T>();
853854
auto negtrack = v0.template negTrack_as<T>();
854855

855-
// Mass
856-
float mass = 0.;
857-
if constexpr (part == kLambda) {
858-
mass = v0.mLambda();
859-
} else {
860-
mass = v0.mAntiLambda();
861-
}
862-
863856
// Decay length
864857
float ctau = v0.distovertotmom(col.posX(), col.posY(), col.posZ()) * MassLambda0;
865858

0 commit comments

Comments
 (0)