Geant4-11
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends
G4AnalysisManagerState Class Reference

#include <G4AnalysisManagerState.hh>

Public Member Functions

 G4AnalysisManagerState ()=delete
 
 G4AnalysisManagerState (const G4AnalysisManagerState &)=delete
 
 G4AnalysisManagerState (const G4String &type, G4bool isMaster)
 
G4int GetCompressionLevel () const
 
G4bool GetIsActivation () const
 
G4bool GetIsMaster () const
 
G4String GetType () const
 
G4int GetVerboseLevel () const
 
G4bool IsVerbose (G4int verboseLevel) const
 
void Message (G4int level, const G4String &action, const G4String &objectType, const G4String &objectName="", G4bool success=true) const
 
G4AnalysisManagerStateoperator= (const G4AnalysisManagerState &)=delete
 

Private Member Functions

void SetCompressionLevel (G4int level)
 
void SetIsActivation (G4bool isActivation)
 
void SetVerboseLevel (G4int verboseLevel)
 

Private Attributes

G4int fCompressionLevel { 1 }
 
G4bool fIsActivation { false }
 
G4bool fIsMaster
 
G4String fType
 
G4AnalysisVerbose fVerbose
 
G4int fVerboseLevel { 0 }
 

Static Private Attributes

static constexpr std::string_view fkClass { "G4AnalysisManagerState" }
 

Friends

class G4ParameterManager
 
class G4VAnalysisManager
 
class G4VAnalysisReader
 

Detailed Description

Definition at line 39 of file G4AnalysisManagerState.hh.

Constructor & Destructor Documentation

◆ G4AnalysisManagerState() [1/3]

G4AnalysisManagerState::G4AnalysisManagerState ( const G4String type,
G4bool  isMaster 
)

Definition at line 36 of file G4AnalysisManagerState.cc.

38 : fType(type),
39 fIsMaster(isMaster)
40{}

◆ G4AnalysisManagerState() [2/3]

G4AnalysisManagerState::G4AnalysisManagerState ( )
delete

◆ G4AnalysisManagerState() [3/3]

G4AnalysisManagerState::G4AnalysisManagerState ( const G4AnalysisManagerState )
delete

Member Function Documentation

◆ GetCompressionLevel()

G4int G4AnalysisManagerState::GetCompressionLevel ( ) const
inline

◆ GetIsActivation()

G4bool G4AnalysisManagerState::GetIsActivation ( ) const
inline

◆ GetIsMaster()

G4bool G4AnalysisManagerState::GetIsMaster ( ) const
inline

◆ GetType()

G4String G4AnalysisManagerState::GetType ( ) const
inline

Definition at line 95 of file G4AnalysisManagerState.hh.

96{ return fType; }

References fType.

Referenced by G4BaseFileManager::GetFileType().

◆ GetVerboseLevel()

G4int G4AnalysisManagerState::GetVerboseLevel ( ) const
inline

Definition at line 104 of file G4AnalysisManagerState.hh.

References fVerboseLevel.

◆ IsVerbose()

G4bool G4AnalysisManagerState::IsVerbose ( G4int  verboseLevel) const
inline

Definition at line 107 of file G4AnalysisManagerState.hh.

108{ return fVerboseLevel == verboseLevel; }

References fVerboseLevel.

Referenced by G4BaseAnalysisManager::IsVerbose().

◆ Message()

void G4AnalysisManagerState::Message ( G4int  level,
const G4String action,
const G4String objectType,
const G4String objectName = "",
G4bool  success = true 
) const

Definition at line 64 of file G4AnalysisManagerState.cc.

70{
71#ifdef G4VERBOSE
72 // Skip message if of higher level than that is set
73 if (fVerboseLevel < level) return;
74
75 // Print message
76 fVerbose.Message(level, action, objectType, objectName, success);
77#endif
78}
void Message(G4int verboseLevel, const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const

References geant4_check_module_cycles::action, fVerbose, fVerboseLevel, and G4AnalysisVerbose::Message().

Referenced by G4PlotManager::CloseFile(), G4PlotManager::G4PlotManager(), G4BaseAnalysisManager::Message(), G4BaseFileManager::Message(), G4VNtupleFileManager::Message(), G4PlotManager::OpenFile(), G4PlotManager::PlotAndWrite(), and G4PlotManager::WritePage().

◆ operator=()

G4AnalysisManagerState & G4AnalysisManagerState::operator= ( const G4AnalysisManagerState )
delete

◆ SetCompressionLevel()

void G4AnalysisManagerState::SetCompressionLevel ( G4int  level)
inlineprivate

Definition at line 92 of file G4AnalysisManagerState.hh.

93{ fCompressionLevel = level; }

References fCompressionLevel.

Referenced by G4VAnalysisManager::SetCompressionLevel().

◆ SetIsActivation()

void G4AnalysisManagerState::SetIsActivation ( G4bool  isActivation)
inlineprivate

Definition at line 89 of file G4AnalysisManagerState.hh.

90{ fIsActivation = isActivation; }

References fIsActivation.

Referenced by G4VAnalysisManager::SetActivation().

◆ SetVerboseLevel()

void G4AnalysisManagerState::SetVerboseLevel ( G4int  verboseLevel)
private

Definition at line 47 of file G4AnalysisManagerState.cc.

48{
49 if ( verboseLevel == fVerboseLevel ) return;
50
51 if ( verboseLevel < 0 ) {
52 Warn("Cannot set value < 0", fkClass, "SetVerboseLevel");
53 return;
54 }
55
56 fVerboseLevel = verboseLevel;
57}
static constexpr std::string_view fkClass
void Warn(const G4String &message, const std::string_view inClass, const std::string_view inFunction)

References fkClass, fVerboseLevel, and G4Analysis::Warn().

Referenced by G4VAnalysisManager::SetVerboseLevel(), and G4VAnalysisReader::SetVerboseLevel().

Friends And Related Function Documentation

◆ G4ParameterManager

friend class G4ParameterManager
friend

Definition at line 44 of file G4AnalysisManagerState.hh.

◆ G4VAnalysisManager

friend class G4VAnalysisManager
friend

Definition at line 42 of file G4AnalysisManagerState.hh.

◆ G4VAnalysisReader

friend class G4VAnalysisReader
friend

Definition at line 43 of file G4AnalysisManagerState.hh.

Field Documentation

◆ fCompressionLevel

G4int G4AnalysisManagerState::fCompressionLevel { 1 }
private

Definition at line 83 of file G4AnalysisManagerState.hh.

Referenced by GetCompressionLevel(), and SetCompressionLevel().

◆ fIsActivation

G4bool G4AnalysisManagerState::fIsActivation { false }
private

Definition at line 81 of file G4AnalysisManagerState.hh.

Referenced by GetIsActivation(), and SetIsActivation().

◆ fIsMaster

G4bool G4AnalysisManagerState::fIsMaster
private

Definition at line 80 of file G4AnalysisManagerState.hh.

Referenced by GetIsMaster().

◆ fkClass

constexpr std::string_view G4AnalysisManagerState::fkClass { "G4AnalysisManagerState" }
staticconstexprprivate

Definition at line 76 of file G4AnalysisManagerState.hh.

Referenced by SetVerboseLevel().

◆ fType

G4String G4AnalysisManagerState::fType
private

Definition at line 79 of file G4AnalysisManagerState.hh.

Referenced by GetType().

◆ fVerbose

G4AnalysisVerbose G4AnalysisManagerState::fVerbose
private

Definition at line 84 of file G4AnalysisManagerState.hh.

Referenced by Message().

◆ fVerboseLevel

G4int G4AnalysisManagerState::fVerboseLevel { 0 }
private

Definition at line 82 of file G4AnalysisManagerState.hh.

Referenced by GetVerboseLevel(), IsVerbose(), Message(), and SetVerboseLevel().


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