Commit 74b980ad authored by Paul Schütze's avatar Paul Schütze
Browse files

Merge branch 'fix_logging_once' into 'master'

DepositionGeant4: Only Log Source Energy Once

See merge request allpix-squared/allpix-squared!975
parents 3c611080 b0d2446b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -257,7 +257,7 @@ void GeneratorActionG4::GeneratePrimaries(G4Event* event) {

            // Warn about non-zero source energy:
            if(config_.get<double>("source_energy") > 0) {
                LOG(WARNING)
                LOG_ONCE(WARNING)
                    << "A radioactive isotope is used as particle source, but the source energy is not set to zero.";
            }
        } else if(particle_type_.substr(0, 3) == "ion") {