diff --git a/src/iguana/algorithms/clas12/PhotonGBTFilter/Algorithm.cc b/src/iguana/algorithms/clas12/PhotonGBTFilter/Algorithm.cc index 72c7ff23..f01b4e2c 100644 --- a/src/iguana/algorithms/clas12/PhotonGBTFilter/Algorithm.cc +++ b/src/iguana/algorithms/clas12/PhotonGBTFilter/Algorithm.cc @@ -163,7 +163,7 @@ namespace iguana::clas12 { auto mass = particle::get(particle::mass, pid); // Skip over particle if its mass was undefined - if (!mass.value()) continue; + if (!mass.has_value()) continue; auto px = particleBank.getFloat("px",inner_row); auto py = particleBank.getFloat("py",inner_row); auto pz = particleBank.getFloat("pz",inner_row);