Skip to content

Commit 80d4333

Browse files
authored
Update onTheFlyTofPid.cxx
1 parent 6c41fd6 commit 80d4333

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ALICE3/TableProducer/OTF/onTheFlyTofPid.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#include "CCDB/BasicCCDBManager.h"
3636
#include "CCDB/CcdbApi.h"
3737
#include "CommonConstants/GeomConstants.h"
38+
#include "CommonConstants/MathConstants.h"
3839
#include "CommonConstants/PhysicsConstants.h"
3940
#include "CommonUtils/NameConf.h"
4041
#include "DataFormatsCalibration/MeanVertexObject.h"
@@ -142,7 +143,7 @@ struct OnTheFlyTofPid {
142143
void init(o2::framework::InitContext& initContext)
143144
{
144145
pRandomNumberGenerator.SetSeed(0); // fully randomize
145-
if (simConfig.magneticField.value < 0.0001f) {
146+
if (simConfig.magneticField.value < o2::constants::math::Epsilon) {
146147
LOG(info) << "Getting the magnetic field from the on-the-fly tracker task";
147148
if (!getTaskOptionValue(initContext, "on-the-fly-tracker", simConfig.magneticField, false)) {
148149
LOG(fatal) << "Could not get Bz from on-the-fly-tracker task";

0 commit comments

Comments
 (0)