Geant4 10.7.0
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 86 of file G4VScoreHistFiller.cc.

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

◆ G4VScoreHistFiller()

G4VScoreHistFiller::G4VScoreHistFiller ( )
protected

Definition at line 60 of file G4VScoreHistFiller.cc.

61{
63
64 if ( isMaster && fgMasterInstance ) {
65 G4ExceptionDescription description;
66 description
67 << " "
68 << "G4VScoreHistFiller on master already exists."
69 << "Cannot create another instance.";
70 G4Exception("G4VScoreHistFiller::G4VScoreHistFiller()",
71 "Analysis_F001", FatalException, description);
72 }
73 if ( fgInstance ) {
74 G4ExceptionDescription description;
75 description
76 << " "
77 << "G4VScoreHistFiller on worker already exists."
78 << "Cannot create another instance.";
79 G4Exception("G4VScoreHistFiller::G4VScoreHistFiller()",
80 "Analysis_F001", FatalException, description);
81 }
82 if ( isMaster ) fgMasterInstance = this;
83 fgInstance = this;
84}
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
Definition: G4Exception.cc:35
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 81 of file G4VScoreHistFiller.hh.

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

◆ fgMasterInstance

G4VScoreHistFiller * G4VScoreHistFiller::fgMasterInstance = nullptr
staticprotected

Definition at line 80 of file G4VScoreHistFiller.hh.

Referenced by G4VScoreHistFiller(), and Instance().


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