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

#include <G4BaseAnalysisManager.hh>

+ Inheritance diagram for G4BaseAnalysisManager:

Public Member Functions

 G4BaseAnalysisManager (const G4AnalysisManagerState &state)
 
 G4BaseAnalysisManager ()=delete
 
virtual ~G4BaseAnalysisManager ()=default
 
G4bool SetFirstId (G4int firstId)
 
void SetLockFirstId (G4bool lockFirstId)
 
G4int GetFirstId () const
 
G4int GetCycle () const
 

Protected Member Functions

G4bool IsVerbose (G4int verboseLevel) const
 
void Message (G4int level, const G4String &action, const G4String &objectType, const G4String &objectName="", G4bool success=true) const
 

Protected Attributes

const G4AnalysisManagerStatefState
 
G4int fFirstId { 0 }
 
G4bool fLockFirstId { false }
 

Detailed Description

Definition at line 43 of file G4BaseAnalysisManager.hh.

Constructor & Destructor Documentation

◆ G4BaseAnalysisManager() [1/2]

G4BaseAnalysisManager::G4BaseAnalysisManager ( const G4AnalysisManagerState & state)
explicit

Definition at line 36 of file G4BaseAnalysisManager.cc.

38 : fState(state)
39{}
const G4AnalysisManagerState & fState

◆ G4BaseAnalysisManager() [2/2]

G4BaseAnalysisManager::G4BaseAnalysisManager ( )
delete

◆ ~G4BaseAnalysisManager()

virtual G4BaseAnalysisManager::~G4BaseAnalysisManager ( )
virtualdefault

Member Function Documentation

◆ GetCycle()

G4int G4BaseAnalysisManager::GetCycle ( ) const
inline

Definition at line 99 of file G4BaseAnalysisManager.hh.

99 {
100 return fState.GetCycle();
101}

◆ GetFirstId()

G4int G4BaseAnalysisManager::GetFirstId ( ) const
inline

◆ IsVerbose()

G4bool G4BaseAnalysisManager::IsVerbose ( G4int verboseLevel) const
inlineprotected

Definition at line 81 of file G4BaseAnalysisManager.hh.

82{ return fState.IsVerbose(verboseLevel); }
G4bool IsVerbose(G4int verboseLevel) const

◆ Message()

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

◆ SetFirstId()

G4bool G4BaseAnalysisManager::SetFirstId ( G4int firstId)

Definition at line 46 of file G4BaseAnalysisManager.cc.

47{
48 if ( fLockFirstId ) {
49 Warn("Cannot set FirstId as its value was already used.",
50 fkClass, "SetFirstId");
51
52 return false;
53 }
54
55 fFirstId = firstId;
56 return true;
57}
void Warn(const G4String &message, const std::string_view inClass, const std::string_view inFunction)

◆ SetLockFirstId()

void G4BaseAnalysisManager::SetLockFirstId ( G4bool lockFirstId)
inline

Definition at line 91 of file G4BaseAnalysisManager.hh.

91 {
92 fLockFirstId = lockFirstId;
93}

Referenced by G4HnManager::ClearData().

Member Data Documentation

◆ fFirstId

◆ fLockFirstId

G4bool G4BaseAnalysisManager::fLockFirstId { false }
protected

Definition at line 72 of file G4BaseAnalysisManager.hh.

72{ false };

Referenced by G4NtupleBookingManager::CreateNtuple(), SetFirstId(), and SetLockFirstId().

◆ fState

const G4AnalysisManagerState& G4BaseAnalysisManager::fState
protected

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