Skip to content

Commit 0d787a8

Browse files
committed
Upgrades ECal: Fix codechecker violation
1 parent 5f36978 commit 0d787a8

File tree

1 file changed

+2
-1
lines changed
  • Detectors/Upgrades/ALICE3/ECal/DataFormatsECal/src

1 file changed

+2
-1
lines changed

Detectors/Upgrades/ALICE3/ECal/DataFormatsECal/src/Cluster.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ int Cluster::getMcTrackID() const
5050
TLorentzVector Cluster::getMomentum() const
5151
{
5252
double r = std::sqrt(mX * mX + mY * mY + mZ * mZ);
53-
if (r == 0)
53+
if (r == 0) {
5454
return TLorentzVector();
55+
}
5556
return TLorentzVector(mE * mX / r, mE * mY / r, mE * mZ / r, mE);
5657
}

0 commit comments

Comments
 (0)