Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VScoreHistFiller.hh
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26// Class G4VScoreHistFiller
27//
28// Class description:
29// Abstract base class that defines functions to fill histogram and
30// profile plot. This class avoids the direct dependency to G4Analysis
31// category. Template class G4TScoreHistFiller should be used by the
32// user to specify the type of the file format.
33//
34// Created: M. Asai (Sept. 2020)
35//
36
37#ifndef G4VScoreHistFiller_h
38#define G4VScoreHistFiller_h 1
39
40#include "G4Threading.hh"
41#include "globals.hh"
42
43// class description:
44//
45// This class implements the interface for filling histograms from scorer
46// type vith Geant4 analysis tools.
47
49{
50 public:
51 virtual ~G4VScoreHistFiller();
52
53 // static method
55
56 // methods
57 virtual void FillH1(G4int id, G4double value, G4double weight = 1.0) = 0;
58 virtual void FillH2(G4int id, G4double xvalue, G4double yvalue,
59 G4double weight = 1.0) = 0;
60 virtual void FillH3(G4int id,
61 G4double xvalue, G4double yvalue, G4double zvalue,
62 G4double weight = 1.0) = 0;
63 virtual void FillP1(G4int id, G4double xvalue, G4double yvalue,
64 G4double weight = 1.0) = 0;
65 virtual void FillP2(G4int id,
66 G4double xvalue, G4double yvalue, G4double zvalue,
67 G4double weight = 1.0) = 0;
68
69 virtual G4bool CheckH1(G4int id) = 0;
70 virtual G4bool CheckH2(G4int id) = 0;
71 virtual G4bool CheckH3(G4int id) = 0;
72 virtual G4bool CheckP1(G4int id) = 0;
73 virtual G4bool CheckP2(G4int id) = 0;
74
75 protected:
77 virtual G4VScoreHistFiller* CreateInstance() const = 0;
78
79 // static data members
82};
83
84#endif
double G4double
Definition: G4Types.hh:83
bool G4bool
Definition: G4Types.hh:86
int G4int
Definition: G4Types.hh:85
virtual G4VScoreHistFiller * CreateInstance() const =0
virtual G4bool CheckP1(G4int id)=0
static G4ThreadLocal G4VScoreHistFiller * fgInstance
virtual void FillP1(G4int id, G4double xvalue, G4double yvalue, G4double weight=1.0)=0
virtual G4bool CheckH2(G4int id)=0
virtual G4bool CheckP2(G4int id)=0
virtual void FillH1(G4int id, G4double value, G4double weight=1.0)=0
static G4VScoreHistFiller * Instance()
virtual void FillP2(G4int id, G4double xvalue, G4double yvalue, G4double zvalue, 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
static G4VScoreHistFiller * fgMasterInstance
virtual G4bool CheckH1(G4int id)=0
virtual G4bool CheckH3(G4int id)=0
#define G4ThreadLocal
Definition: tls.hh:77