Skip to content

Commit e02c8b4

Browse files
committed
check errors
1 parent e4cee5d commit e02c8b4

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Detectors/Upgrades/ALICE3/FD/base/src/GeometryTGeo.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ GeometryTGeo::GeometryTGeo(bool build, int loadTrans) : DetMatrixCache()
3434
}
3535
}
3636

37-
GeometryTGeo::~GeometryTGeo() {}
37+
GeometryTGeo::~GeometryTGeo() = default;
3838

3939
GeometryTGeo* GeometryTGeo::Instance()
4040
{

Detectors/Upgrades/ALICE3/FD/simulation/src/Detector.cxx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,10 @@ void Detector::defineSensitiveVolumes()
365365
int Detector::getChannelId(TVector3 vec)
366366
{
367367
float phi = vec.Phi();
368-
if (phi < 0)
368+
if (phi < 0) {
369369
phi += TMath::TwoPi();
370+
}
371+
370372
float r = vec.Perp();
371373
float z = vec.Z();
372374

@@ -378,10 +380,12 @@ int Detector::getChannelId(TVector3 vec)
378380
int ir = 0;
379381

380382
for (int i = 1; i < rd.size(); i++) {
381-
if (r < rd[i])
383+
if (r < rd[i]) {
382384
break;
383-
else
385+
}
386+
else {
384387
ir++;
388+
}
385389
}
386390

387391
return ir * mNumberOfSectors + isect + noff;

0 commit comments

Comments
 (0)