Import Geant4 11.2.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2023-06-30 09:09:57 +02:00
parent aef78ca386
commit dd1f179cda
3780 changed files with 212808 additions and 142780 deletions
@@ -40,7 +40,7 @@
// auto multi = new G4MulticoutDestination();
// multi->push_back( G4coutDestinationUPtr( new MyCout1 ) );
// multi->push_back( G4coutDestinationUPtr( new MyCout2 ) );
// G4coutbuf.SetDestination( multi ); // or G4cerrbuf
// G4iosSetDestination( multi ); // or G4cerrbuf
// ---------------- G4MulticoutDestination ----------------
//
@@ -67,6 +67,15 @@ class G4MulticoutDestination
// Forward call to contained destination. Note that the message may have
// been modified by formatters attached to this
G4int ReceiveG4debug(const G4String& msg) override
{
G4bool result = true;
std::for_each(begin(), end(), [&](G4coutDestinationUPtr& e) {
result &= (e->ReceiveG4debug_(msg) == 0);
});
return (result ? 0 : -1);
}
G4int ReceiveG4cout(const G4String& msg) override
{
G4bool result = true;