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

#include <G4VScoreHistFiller.hh>

+ Inheritance diagram for G4VScoreHistFiller:

Public Member Functions

virtual ~G4VScoreHistFiller ()
 
virtual void FillH1 (G4int id, G4double value, G4double weight=1.0)=0
 
virtual void FillH2 (G4int id, G4double xvalue, G4double yvalue, G4double weight=1.0)=0
 
virtual void FillH3 (G4int id, G4double xvalue, G4double yvalue, G4double zvalue, G4double weight=1.0)=0
 
virtual void FillP1 (G4int id, G4double xvalue, G4double yvalue, G4double weight=1.0)=0
 
virtual void FillP2 (G4int id, G4double xvalue, G4double yvalue, G4double zvalue, G4double weight=1.0)=0
 
virtual G4bool CheckH1 (G4int id)=0
 
virtual G4bool CheckH2 (G4int id)=0
 
virtual G4bool CheckH3 (G4int id)=0
 
virtual G4bool CheckP1 (G4int id)=0
 
virtual G4bool CheckP2 (G4int id)=0
 

Static Public Member Functions

static G4VScoreHistFillerInstance ()
 

Protected Member Functions

 G4VScoreHistFiller ()
 
virtual G4VScoreHistFillerCreateInstance () const =0
 

Static Protected Attributes

static G4VScoreHistFillerfgMasterInstance = nullptr
 
static G4ThreadLocal G4VScoreHistFillerfgInstance = nullptr
 

Detailed Description

Definition at line 48 of file G4VScoreHistFiller.hh.

Constructor & Destructor Documentation

◆ ~G4VScoreHistFiller()

G4VScoreHistFiller::~G4VScoreHistFiller ( )
virtual

Definition at line 84 of file G4VScoreHistFiller.cc.

84{ fgInstance = nullptr; }
static G4ThreadLocal G4VScoreHistFiller * fgInstance

◆ G4VScoreHistFiller()

G4VScoreHistFiller::G4VScoreHistFiller ( )
protected

Definition at line 60 of file G4VScoreHistFiller.cc.

61{
63
64 if (isMaster && (fgMasterInstance != nullptr)) {
65 G4ExceptionDescription description;
66 description << " "
67 << "G4VScoreHistFiller on master already exists."
68 << "Cannot create another instance.";
70 "G4VScoreHistFiller::G4VScoreHistFiller()", "Analysis_F001", FatalException, description);
71 }
72 if (fgInstance != nullptr) {
73 G4ExceptionDescription description;
74 description << " "
75 << "G4VScoreHistFiller on worker already exists."
76 << "Cannot create another instance.";
78 "G4VScoreHistFiller::G4VScoreHistFiller()", "Analysis_F001", FatalException, description);
79 }
80 if (isMaster) fgMasterInstance = this;
81 fgInstance = this;
82}
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
bool G4bool
Definition G4Types.hh:86
static G4VScoreHistFiller * fgMasterInstance
G4bool IsWorkerThread()

Member Function Documentation

◆ CheckH1()

virtual G4bool G4VScoreHistFiller::CheckH1 ( G4int id)
pure virtual

Implemented in G4TScoreHistFiller< T >.

◆ CheckH2()

virtual G4bool G4VScoreHistFiller::CheckH2 ( G4int id)
pure virtual

Implemented in G4TScoreHistFiller< T >.

◆ CheckH3()

virtual G4bool G4VScoreHistFiller::CheckH3 ( G4int id)
pure virtual

Implemented in G4TScoreHistFiller< T >.

◆ CheckP1()

virtual G4bool G4VScoreHistFiller::CheckP1 ( G4int id)
pure virtual

Implemented in G4TScoreHistFiller< T >.

◆ CheckP2()

virtual G4bool G4VScoreHistFiller::CheckP2 ( G4int id)
pure virtual

Implemented in G4TScoreHistFiller< T >.

◆ CreateInstance()

virtual G4VScoreHistFiller * G4VScoreHistFiller::CreateInstance ( ) const
protectedpure virtual

Implemented in G4TScoreHistFiller< T >.

Referenced by Instance().

◆ FillH1()

virtual void G4VScoreHistFiller::FillH1 ( G4int id,
G4double value,
G4double weight = 1.0 )
pure virtual

Implemented in G4TScoreHistFiller< T >.

◆ FillH2()

virtual void G4VScoreHistFiller::FillH2 ( G4int id,
G4double xvalue,
G4double yvalue,
G4double weight = 1.0 )
pure virtual

Implemented in G4TScoreHistFiller< T >.

◆ FillH3()

virtual void G4VScoreHistFiller::FillH3 ( G4int id,
G4double xvalue,
G4double yvalue,
G4double zvalue,
G4double weight = 1.0 )
pure virtual

Implemented in G4TScoreHistFiller< T >.

◆ FillP1()

virtual void G4VScoreHistFiller::FillP1 ( G4int id,
G4double xvalue,
G4double yvalue,
G4double weight = 1.0 )
pure virtual

Implemented in G4TScoreHistFiller< T >.

◆ FillP2()

virtual void G4VScoreHistFiller::FillP2 ( G4int id,
G4double xvalue,
G4double yvalue,
G4double zvalue,
G4double weight = 1.0 )
pure virtual

Implemented in G4TScoreHistFiller< T >.

◆ Instance()

Member Data Documentation

◆ fgInstance

G4ThreadLocal G4VScoreHistFiller * G4VScoreHistFiller::fgInstance = nullptr
staticprotected

Definition at line 77 of file G4VScoreHistFiller.hh.

Referenced by G4VScoreHistFiller(), Instance(), and ~G4VScoreHistFiller().

◆ fgMasterInstance

G4VScoreHistFiller * G4VScoreHistFiller::fgMasterInstance = nullptr
staticprotected

Definition at line 76 of file G4VScoreHistFiller.hh.

Referenced by G4VScoreHistFiller(), and Instance().


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