Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4AnalysisVerbose Class Reference

#include <G4AnalysisVerbose.hh>

Public Member Functions

 G4AnalysisVerbose ()
 
 ~G4AnalysisVerbose ()=default
 
void Message (G4int verboseLevel, const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
 

Detailed Description

Definition at line 38 of file G4AnalysisVerbose.hh.

Constructor & Destructor Documentation

◆ G4AnalysisVerbose()

G4AnalysisVerbose::G4AnalysisVerbose ( )
default

◆ ~G4AnalysisVerbose()

G4AnalysisVerbose::~G4AnalysisVerbose ( )
default

Member Function Documentation

◆ Message()

void G4AnalysisVerbose::Message ( G4int  verboseLevel,
const G4String action,
const G4String object,
const G4String objectName,
G4bool  success = true 
) const

Definition at line 41 of file G4AnalysisVerbose.cc.

46{
47 if ( level == 0 ) return;
48
49 if ( level < 0 || level > fkMaxLevel ) {
50 // add exception
51 return;
52 }
53
54 G4cout << "... "
55 << fToBeDoneText[level-1]
56 << action
57 << " "
58 << object;
59 if (objectName.size() != 0u) {
60 G4cout << " : " << objectName;
61 }
62
63 if (success) {
64 G4cout << " " << fDoneText[level-1];
65 }
66 else {
67 G4cout << " " << fFailureText;
68 }
69
70 G4cout << G4endl;
71}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout

Referenced by G4AnalysisManagerState::Message().


The documentation for this class was generated from the following files: