From bf9a8337246888bd80953e029edd16f03a6d4bb0 Mon Sep 17 00:00:00 2001 From: Matti Kortelainen Date: Thu, 23 Oct 2014 09:36:27 +0200 Subject: [PATCH] Give G4cout to HepMC::GenEvent::print as a thread-safe ostream --- SimG4Core/Generators/src/Generator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SimG4Core/Generators/src/Generator.cc b/SimG4Core/Generators/src/Generator.cc index d5b22d24f9b4d..53bcf484d3687 100644 --- a/SimG4Core/Generators/src/Generator.cc +++ b/SimG4Core/Generators/src/Generator.cc @@ -124,7 +124,7 @@ void Generator::HepMC2G4(const HepMC::GenEvent * evt_orig, G4Event * g4evt) (*(evt->vertices_begin()))->position().t()); if(verbose > 0) { - evt->print(); + evt->print(G4cout); LogDebug("SimG4CoreGenerator") << "Primary Vertex = (" << vtx_->x() << "," << vtx_->y() << ","