Skip to content

Commit fc595d9

Browse files
committed
Improvements to pairs
1 parent cd7c880 commit fc595d9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

PWGCF/Femto3D/Core/femto3dPairTask.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,16 @@ class FemtoPair
144144
void SetMagField2(const float& magfield2) { _magfield2 = magfield2; }
145145
void SetPDG1(const int& PDG1) { _PDG1 = PDG1; }
146146
void SetPDG2(const int& PDG2) { _PDG2 = PDG2; }
147+
int GetPDG1() { return _PDG1; }
148+
int GetPDG2() { return _PDG2; }
147149
void ResetPair();
148150
void ResetAll();
149151

150152
TrackType* GetFirstParticle() const { return _first; }
151153
TrackType* GetSecondParticle() const { return _second; }
152154
bool IsIdentical() { return _isidentical; }
153155

154-
bool IsClosePair(const float& deta = 0.01, const float& dphi = 0.01, const float& radius = 1.2);
156+
bool IsClosePair(const float& deta = 0.01, const float& dphi = 0.01, const float& radius = 1.2) const;
155157
float GetEtaDiff() const
156158
{
157159
if (_first != NULL && _second != NULL)
@@ -199,7 +201,7 @@ void FemtoPair<TrackType>::ResetAll()
199201
}
200202

201203
template <typename TrackType>
202-
bool FemtoPair<TrackType>::IsClosePair(const float& deta, const float& dphi, const float& radius)
204+
bool FemtoPair<TrackType>::IsClosePair(const float& deta, const float& dphi, const float& radius) const
203205
{
204206
if (_first == NULL || _second == NULL)
205207
return true;

0 commit comments

Comments
 (0)