Geant4 11.1.1
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 89 of file G4VScoreHistFiller.cc.

89{ fgInstance = 0; }
static G4ThreadLocal G4VScoreHistFiller * fgInstance

◆ G4VScoreHistFiller()

G4VScoreHistFiller::G4VScoreHistFiller ( )
protected

Definition at line 62 of file G4VScoreHistFiller.cc.

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

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 79 of file G4VScoreHistFiller.hh.

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

◆ fgMasterInstance

G4VScoreHistFiller * G4VScoreHistFiller::fgMasterInstance = nullptr
staticprotected

Definition at line 78 of file G4VScoreHistFiller.hh.

Referenced by G4VScoreHistFiller(), and Instance().


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