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

Detailed Description

Definition at line 35 of file G4AnalysisVerbose.hh.

Constructor & Destructor Documentation

◆ G4AnalysisVerbose()

G4AnalysisVerbose::G4AnalysisVerbose ( const G4String type,
G4int  verboseLevel 
)

Definition at line 36 of file G4AnalysisVerbose.cc.

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

◆ ~G4AnalysisVerbose()

G4AnalysisVerbose::~G4AnalysisVerbose ( )
virtual

Definition at line 50 of file G4AnalysisVerbose.cc.

51{
52}

Member Function Documentation

◆ GetType()

G4String G4AnalysisVerbose::GetType ( ) const
inline

Definition at line 64 of file G4AnalysisVerbose.hh.

64 {
65 return fType;
66}

Referenced by G4VAnalysisManager::GetFileType(), and G4VAnalysisManager::GetType().

◆ Message() [1/2]

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

Definition at line 59 of file G4AnalysisVerbose.cc.

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

Referenced by G4CsvAnalysisManager::AddNtupleRow(), G4RootAnalysisManager::AddNtupleRow(), G4XmlAnalysisManager::AddNtupleRow(), G4CsvAnalysisManager::CloseFile(), G4RootAnalysisManager::CloseFile(), G4XmlAnalysisManager::CloseFile(), G4RootAnalysisManager::CreateH1(), G4XmlAnalysisManager::CreateH1(), G4RootAnalysisManager::CreateH2(), G4XmlAnalysisManager::CreateH2(), G4CsvAnalysisManager::CreateNtuple(), G4RootAnalysisManager::CreateNtuple(), G4XmlAnalysisManager::CreateNtuple(), G4CsvAnalysisManager::CreateNtupleDColumn(), G4RootAnalysisManager::CreateNtupleDColumn(), G4XmlAnalysisManager::CreateNtupleDColumn(), G4CsvAnalysisManager::CreateNtupleFColumn(), G4RootAnalysisManager::CreateNtupleFColumn(), G4XmlAnalysisManager::CreateNtupleFColumn(), G4CsvAnalysisManager::CreateNtupleIColumn(), G4RootAnalysisManager::CreateNtupleIColumn(), G4XmlAnalysisManager::CreateNtupleIColumn(), G4RootAnalysisManager::FillH1(), G4XmlAnalysisManager::FillH1(), G4RootAnalysisManager::FillH2(), G4XmlAnalysisManager::FillH2(), G4CsvAnalysisManager::FillNtupleDColumn(), G4RootAnalysisManager::FillNtupleDColumn(), G4XmlAnalysisManager::FillNtupleDColumn(), G4CsvAnalysisManager::FillNtupleFColumn(), G4RootAnalysisManager::FillNtupleFColumn(), G4XmlAnalysisManager::FillNtupleFColumn(), G4CsvAnalysisManager::FillNtupleIColumn(), G4RootAnalysisManager::FillNtupleIColumn(), G4XmlAnalysisManager::FillNtupleIColumn(), G4XmlAnalysisManager::FinishNtuple(), G4CsvAnalysisManager::OpenFile(), G4RootAnalysisManager::OpenFile(), G4XmlAnalysisManager::OpenFile(), G4RootAnalysisManager::SetH1(), G4XmlAnalysisManager::SetH1(), G4RootAnalysisManager::SetH2(), G4XmlAnalysisManager::SetH2(), G4RootAnalysisManager::Write(), G4XmlAnalysisManager::Write(), G4VAnalysisManager::WriteAscii(), G4RootAnalysisManager::WriteOnAscii(), and G4XmlAnalysisManager::WriteOnAscii().

◆ Message() [2/2]

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

Definition at line 84 of file G4AnalysisVerbose.cc.

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

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