Geant4 10.7.0
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 (G4int verboseLevel)
 
 ~G4AnalysisVerbose ()
 
void Message (const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
 
void Message (const G4String &action, const G4String &object, G4ExceptionDescription &description, G4bool success=true) const
 

Detailed Description

Definition at line 36 of file G4AnalysisVerbose.hh.

Constructor & Destructor Documentation

◆ G4AnalysisVerbose()

G4AnalysisVerbose::G4AnalysisVerbose ( G4int  verboseLevel)

Definition at line 35 of file G4AnalysisVerbose.cc.

36 : fToBeDoneText(),
37 fDoneText(),
38 fFailureText()
39{
40 if ( verboseLevel == 1 ) fDoneText = "- done";
41 if ( verboseLevel == 2 ) fDoneText = "- done";
42 if ( verboseLevel == 3 ) fToBeDoneText = "done ";
43 if ( verboseLevel == 4 ) fToBeDoneText = "going to ";
44 fFailureText = "has failed";
45}

◆ ~G4AnalysisVerbose()

G4AnalysisVerbose::~G4AnalysisVerbose ( )

Definition at line 48 of file G4AnalysisVerbose.cc.

49{
50}

Member Function Documentation

◆ Message() [1/2]

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

Definition at line 57 of file G4AnalysisVerbose.cc.

61{
62 G4cout << "... "
63 << fToBeDoneText
64 << action
65 << " "
66 << object;
67 if ( objectName.size() ) {
68 G4cout
69 << " : "
70 << objectName;
71 }
72
73 if ( success )
74 G4cout << " " << fDoneText;
75 else
76 G4cout << " " << fFailureText;
77
78 G4cout << G4endl;
79}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout

Referenced by G4RootNtupleFileManager::ActionAtWrite(), G4H1ToolsManager::AddH1(), G4H2ToolsManager::AddH2(), G4H3ToolsManager::AddH3(), G4P1ToolsManager::AddP1(), G4P2ToolsManager::AddP2(), G4PlotManager::CloseFile(), G4XmlAnalysisManager::CloseFileImpl(), G4RootAnalysisManager::CloseFileImpl(), G4GenericAnalysisManager::CloseFileImpl(), G4GenericFileManager::CloseFiles(), G4CsvFileManager::CloseNtupleFile(), G4XmlFileManager::CloseNtupleFile(), G4H1ToolsManager::CreateH1(), G4H2ToolsManager::CreateH2(), G4H3ToolsManager::CreateH3(), G4NtupleBookingManager::CreateNtuple(), G4RootMainNtupleManager::CreateNtuple(), G4CsvFileManager::CreateNtupleFile(), G4XmlFileManager::CreateNtupleFile(), G4RootNtupleFileManager::CreateNtupleManager(), G4P1ToolsManager::CreateP1(), G4P2ToolsManager::CreateP2(), G4GenericFileManager::DeleteEmptyFiles(), G4H1ToolsManager::FillH1(), G4H2ToolsManager::FillH2(), G4H3ToolsManager::FillH3(), G4P1ToolsManager::FillP1(), G4P2ToolsManager::FillP2(), G4GenericAnalysisManager::Merge(), G4MPIToolsManager::Merge(), G4PlotManager::OpenFile(), G4GenericFileManager::OpenFile(), G4GenericAnalysisManager::OpenFileImpl(), G4GenericFileManager::OpenFiles(), G4CsvRFileManager::OpenRFile(), G4XmlRFileManager::OpenRFile(), G4RootRFileManager::OpenRFile(), G4PlotManager::PlotAndWrite(), G4CsvAnalysisReader::ReadH1Impl(), G4Hdf5AnalysisReader::ReadH1Impl(), G4RootAnalysisReader::ReadH1Impl(), G4XmlAnalysisReader::ReadH1Impl(), G4XmlAnalysisReader::ReadH2Impl(), G4CsvAnalysisReader::ReadH2Impl(), G4Hdf5AnalysisReader::ReadH2Impl(), G4RootAnalysisReader::ReadH2Impl(), G4XmlAnalysisReader::ReadH3Impl(), G4CsvAnalysisReader::ReadH3Impl(), G4Hdf5AnalysisReader::ReadH3Impl(), G4RootAnalysisReader::ReadH3Impl(), G4CsvAnalysisReader::ReadNtupleImpl(), G4Hdf5AnalysisReader::ReadNtupleImpl(), G4RootAnalysisReader::ReadNtupleImpl(), G4XmlAnalysisReader::ReadNtupleImpl(), G4XmlAnalysisReader::ReadP1Impl(), G4CsvAnalysisReader::ReadP1Impl(), G4Hdf5AnalysisReader::ReadP1Impl(), G4RootAnalysisReader::ReadP1Impl(), G4XmlAnalysisReader::ReadP2Impl(), G4CsvAnalysisReader::ReadP2Impl(), G4Hdf5AnalysisReader::ReadP2Impl(), G4RootAnalysisReader::ReadP2Impl(), G4H1ToolsManager::SetH1(), G4H2ToolsManager::SetH2(), G4H3ToolsManager::SetH3(), G4XmlRNtupleManager::SetNtupleDColumn(), G4XmlRNtupleManager::SetNtupleFColumn(), G4XmlRNtupleManager::SetNtupleIColumn(), G4RootNtupleFileManager::SetNtupleRowWise(), G4P1ToolsManager::SetP1(), G4P2ToolsManager::SetP2(), G4VAnalysisManager::WriteAscii(), G4GenericFileManager::WriteFiles(), G4CsvAnalysisManager::WriteImpl(), G4GenericAnalysisManager::WriteImpl(), G4Hdf5AnalysisManager::WriteImpl(), G4XmlAnalysisManager::WriteImpl(), G4RootAnalysisManager::WriteImpl(), and G4H1ToolsManager::WriteOnAscii().

◆ Message() [2/2]

void G4AnalysisVerbose::Message ( const G4String action,
const G4String object,
G4ExceptionDescription description,
G4bool  success = true 
) const

Definition at line 82 of file G4AnalysisVerbose.cc.

86{
87 G4cout << "... "
88 << fToBeDoneText
89 << action
90 << " "
91 << object
92 << " : "
93 << description.str()
94 << " ";
95
96 if ( success )
97 G4cout << fDoneText;
98 else
99 G4cout << fFailureText;
100
101 G4cout << G4endl;
102}

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