Skip to content

Commit 62adc94

Browse files
committed
fix shadowed outer member
1 parent 9baf5af commit 62adc94

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

PWGEM/PhotonMeson/Core/V0PhotonCandidate.h

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct V0PhotonCandidate {
3838
V0PhotonCandidate() = default;
3939
// Set method for photonconversionbuilder
4040
template <class TTrack>
41-
void setPhotonCandidate(const KFParticle& v0DecayVtx, const KFParticle& v0PV, const TTrack& pos, const KFParticle& posDecayVtx, const TTrack& ele, const KFParticle& eleDecayVtx, const auto& collision, float cospa, float cospaRZ, float cospaXY, float psipair, float phiv, CentType centType, auto posdcaXY, auto eledcaXY, auto posdcaZ, auto eledcaZ)
41+
void setPhotonCandidate(const KFParticle& v0DecayVtx, const KFParticle& v0PV, const TTrack& pos, const KFParticle& posDecayVtx, const TTrack& ele, const KFParticle& eleDecayVtx, const auto& collision, float cospa_, float cospaRZ_, float cospaXY_, float psipair_, float phiv_, CentType centType_, auto posdcaXY_, auto eledcaXY_, auto posdcaZ_, auto eledcaZ_)
4242
{
4343
conversionPointx = v0DecayVtx.GetX();
4444
conversionPointy = v0DecayVtx.GetY();
@@ -82,28 +82,28 @@ struct V0PhotonCandidate {
8282

8383
float v0mom = RecoDecay::sqrtSumOfSquares(v0DecayVtx.GetPx(), v0DecayVtx.GetPy(), v0DecayVtx.GetPz());
8484
float length = RecoDecay::sqrtSumOfSquares(v0DecayVtx.GetX() - collision.posX(), v0DecayVtx.GetY() - collision.posY(), v0DecayVtx.GetZ() - collision.posZ());
85-
float dcaXV0ToPV = (v0DecayVtx.GetX() - v0DecayVtx.GetPx() * cospa * length / v0mom) - collision.posX();
86-
float dcaYV0ToPV = (v0DecayVtx.GetY() - v0DecayVtx.GetPy() * cospa * length / v0mom) - collision.posY();
85+
float dcaXV0ToPV = (v0DecayVtx.GetX() - v0DecayVtx.GetPx() * cospa_ * length / v0mom) - collision.posX();
86+
float dcaYV0ToPV = (v0DecayVtx.GetY() - v0DecayVtx.GetPy() * cospa_ * length / v0mom) - collision.posY();
8787
float tmpSign = (dcaXV0ToPV * dcaYV0ToPV > 0.f) ? +1.f : -1.f;
8888

8989
dcaXYV0ToPV = RecoDecay::sqrtSumOfSquares(dcaXV0ToPV, dcaYV0ToPV) * tmpSign;
90-
dcaZV0ToPV = (v0DecayVtx.GetZ() - v0DecayVtx.GetPz() * cospa * length / v0mom) - collision.posZ();
90+
dcaZV0ToPV = (v0DecayVtx.GetZ() - v0DecayVtx.GetPz() * cospa_ * length / v0mom) - collision.posZ();
9191

9292
alpha = v0_alpha(posPx, posPy, posPz, elePx, elePy, elePz);
9393
qt = v0_qt(posPx, posPy, posPz, elePx, elePy, elePz);
9494

95-
this->cospa = cospa;
96-
this->cospaRZ = cospaRZ;
97-
this->cospaXY = cospaXY;
98-
this->psipair = psipair;
99-
this->phiv = phiv;
100-
this->centType = centType;
101-
this->posdcaXY = posdcaXY;
102-
this->eledcaXY = eledcaXY;
103-
this->posdcaZ = posdcaZ;
104-
this->eledcaZ = eledcaZ;
95+
cospa = cospa_;
96+
cospaRZ = cospaRZ_;
97+
cospaXY = cospaXY_;
98+
psipair = psipair_;
99+
phiv = phiv_;
100+
centType = centType_;
101+
posdcaXY = posdcaXY_;
102+
eledcaXY = eledcaXY_;
103+
posdcaZ = posdcaZ_;
104+
eledcaZ = eledcaZ_;
105105

106-
switch (centType) {
106+
switch (centType_) {
107107
case CentType::CentFT0A:
108108
cent = collision.centFT0A();
109109
break;
@@ -117,7 +117,7 @@ struct V0PhotonCandidate {
117117
}
118118

119119
// Set-Method for V0PhotonCut
120-
void setPhoton(const auto& v0, const auto& pos, const auto& ele, float cent, CentType centType)
120+
void setPhoton(const auto& v0, const auto& pos, const auto& ele, float cent_, CentType centType_)
121121
{
122122
conversionPointx = v0.vx();
123123
conversionPointy = v0.vy();
@@ -174,8 +174,8 @@ struct V0PhotonCandidate {
174174
psipair = v0.psipair();
175175
phiv = v0.phiv();
176176
}
177-
this->cent = cent;
178-
this->centType = centType;
177+
cent = cent_;
178+
centType = centType_;
179179
}
180180

181181
// Getter functions

0 commit comments

Comments
 (0)