Geant4 10.7.0
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)
 
virtual ~G4BaseAnalysisManager ()
 
G4bool SetFirstId (G4int firstId)
 
void SetLockFirstId (G4bool lockFirstId)
 
G4int GetFirstId () const
 

Protected Attributes

const G4AnalysisManagerStatefState
 
G4int fFirstId
 
G4bool fLockFirstId
 

Detailed Description

Definition at line 41 of file G4BaseAnalysisManager.hh.

Constructor & Destructor Documentation

◆ G4BaseAnalysisManager()

G4BaseAnalysisManager::G4BaseAnalysisManager ( const G4AnalysisManagerState state)
explicit

Definition at line 35 of file G4BaseAnalysisManager.cc.

37 : fState(state),
38 fFirstId(0),
39 fLockFirstId(false)
40{}
const G4AnalysisManagerState & fState

◆ ~G4BaseAnalysisManager()

G4BaseAnalysisManager::~G4BaseAnalysisManager ( )
virtual

Definition at line 43 of file G4BaseAnalysisManager.cc.

44{}

Member Function Documentation

◆ GetFirstId()

G4int G4BaseAnalysisManager::GetFirstId ( ) const
inline

Definition at line 71 of file G4BaseAnalysisManager.hh.

71 {
72 return fFirstId;
73}

◆ SetFirstId()

G4bool G4BaseAnalysisManager::SetFirstId ( G4int  firstId)

Definition at line 51 of file G4BaseAnalysisManager.cc.

52{
53 if ( fLockFirstId ) {
54 G4ExceptionDescription description;
55 description
56 << "Cannot set FirstId as its value was already used.";
57 G4Exception("G4BaseAnalysisManager::SetFirstId()",
58 "Analysis_W013", JustWarning, description);
59 return false;
60 }
61
62 fFirstId = firstId;
63 return true;
64}
@ JustWarning
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
Definition: G4Exception.cc:35
std::ostringstream G4ExceptionDescription
Definition: G4Exception.hh:40

◆ SetLockFirstId()

void G4BaseAnalysisManager::SetLockFirstId ( G4bool  lockFirstId)
inline

Definition at line 67 of file G4BaseAnalysisManager.hh.

67 {
68 fLockFirstId = lockFirstId;
69}

Member Data Documentation

◆ fFirstId

◆ fLockFirstId

G4bool G4BaseAnalysisManager::fLockFirstId
protected

◆ fState


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