Import Geant4 11.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2021-12-10 14:46:44 +01:00
committed by Ben Morgan
parent 6399a014b6
commit 80e2389dd8
3932 changed files with 202519 additions and 246221 deletions
@@ -28,39 +28,32 @@
#include "G4AnalysisVerbose.hh"
#include "G4UnitsTable.hh"
#include <iostream>
#include "G4ios.hh"
//_____________________________________________________________________________
G4AnalysisVerbose::G4AnalysisVerbose(G4int verboseLevel)
: fToBeDoneText(),
fDoneText(),
fFailureText()
{
if ( verboseLevel == 1 ) fDoneText = "- done";
if ( verboseLevel == 2 ) fDoneText = "- done";
if ( verboseLevel == 3 ) fToBeDoneText = "done ";
if ( verboseLevel == 4 ) fToBeDoneText = "going to ";
fFailureText = "has failed";
}
G4AnalysisVerbose::G4AnalysisVerbose()
{}
//_____________________________________________________________________________
G4AnalysisVerbose::~G4AnalysisVerbose()
{
}
//
//
// public method
//
//_____________________________________________________________________________
void G4AnalysisVerbose::Message(const G4String& action,
const G4String& object,
void G4AnalysisVerbose::Message(G4int level,
const G4String& action,
const G4String& object,
const G4String& objectName,
G4bool success) const
{
if ( level == 0 ) return;
if ( level < 0 || level > fkMaxLevel ) {
// add exception
return;
}
G4cout << "... "
<< fToBeDoneText
<< fToBeDoneText[level-1]
<< action
<< " "
<< object;
@@ -71,32 +64,9 @@ void G4AnalysisVerbose::Message(const G4String& action,
}
if ( success )
G4cout << " " << fDoneText;
else
G4cout << " " << fDoneText[level-1];
else
G4cout << " " << fFailureText;
G4cout << G4endl;
}
//_____________________________________________________________________________
void G4AnalysisVerbose::Message(const G4String& action,
const G4String& object,
G4ExceptionDescription& description,
G4bool success) const
{
G4cout << "... "
<< fToBeDoneText
<< action
<< " "
<< object
<< " : "
<< description.str()
<< " ";
if ( success )
G4cout << fDoneText;
else
G4cout << fFailureText;
G4cout << G4endl;
}
}