Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
examples
extended
electromagnetic
TestEm8
include
HistoManager.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
//
28
//
29
// $Id$
30
//
31
//---------------------------------------------------------------------------
32
//
33
// ClassName: HistoManager
34
//
35
// Description: Singleton class to make analysis and build histograms.
36
// User cannot access to the constructor.
37
// The pointer of the only existing object can be got via
38
// HistoManager::GetPointer() static method.
39
// The first invokation of this static method makes
40
// the singleton object.
41
//
42
// Author: V.Ivanchenko 01.09.2010
43
//
44
//----------------------------------------------------------------------------
45
//
46
47
#ifndef HistoManager_h
48
#define HistoManager_h 1
49
50
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
51
52
#include "
globals.hh
"
53
#include "
G4DataVector.hh
"
54
55
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
56
57
class
Histo
;
58
class
G4Step
;
59
class
G4ElectronIonPair
;
60
61
class
HistoManager
62
{
63
64
public
:
65
// With description
66
67
static
HistoManager
*
GetPointer
();
68
69
private
:
70
71
HistoManager
();
72
73
public
:
// Without description
74
75
~HistoManager
();
76
77
void
bookHisto
();
78
79
void
BeginOfRun
();
80
void
EndOfRun
();
81
82
void
BeginOfEvent
();
83
void
EndOfEvent
();
84
85
void
AddEnergy
(
G4double
edep
,
G4Step
*);
86
87
inline
void
SetMaxEnergy
(
G4double
value
);
88
89
inline
void
SetNumberBins
(
G4int
value
);
90
91
inline
void
SetNumberBinsCluster
(
G4int
value
);
92
93
inline
void
SetVerbose
(
G4int
value
);
94
95
inline
G4int
GetVerbose
()
const
;
96
97
private
:
98
99
// MEMBERS
100
static
HistoManager
* fManager;
101
102
G4int
fNHisto;
103
G4int
fVerbose;
104
105
G4double
fMaxEnergy;
106
G4double
fStepGas;
107
G4double
fCluster;
108
G4double
fTotStepGas;
109
G4double
fTotCluster;
110
G4double
fEvt;
111
112
G4int
fBinsE;
113
G4int
fBinsCluster;
114
115
G4bool
fHistoBooked;
116
117
G4double
fTotEdep;
118
G4double
fOverflow;
119
G4DataVector
fEgas;
120
121
Histo
* fHisto;
122
G4ElectronIonPair
* fElIonPair;
123
};
124
125
inline
void
HistoManager::SetMaxEnergy
(
G4double
value
)
126
{
127
fMaxEnergy =
value
;
128
}
129
130
inline
void
HistoManager::SetNumberBins
(
G4int
value
)
131
{
132
fBinsE =
value
;
133
}
134
135
inline
void
HistoManager::SetNumberBinsCluster
(
G4int
value
)
136
{
137
fBinsCluster =
value
;
138
}
139
140
inline
void
HistoManager::SetVerbose
(
G4int
value
)
141
{
142
fVerbose =
value
;
143
}
144
145
inline
G4int
HistoManager::GetVerbose
()
const
146
{
147
return
fVerbose;
148
}
149
150
#endif
Generated on Sat May 25 2013 14:32:03 for Geant4 by
1.8.4