source: trunk/examples/extended/radioactivedecay/exrdm/include/exrdmAnalysisManager.hh@ 1036

Last change on this file since 1036 was 807, checked in by garnier, 17 years ago

update

File size: 4.6 KB
Line 
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#ifndef exrdmAnalysisManager_h
27#define exrdmAnalysisManager_h 1
28
29//---------------------------------------------------------------------------
30//
31// ClassName: exrdmAnalysisManager
32//
33// Description: Singleton class to hold analysis parameters and build histograms.
34// User cannot access to the constructor.
35// The pointer of the only existing object can be got via
36// exrdmAnalysisManager::GetInstance() static method.
37// The first invokation of this static method makes
38// the singleton object.
39//
40//----------------------------------------------------------------------------
41//
42
43//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
44
45#include "globals.hh"
46#include "exrdmEnergyDeposition.hh"
47#include <vector>
48
49//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
50
51class exrdmHisto;
52
53class exrdmAnalysisManager
54{
55
56public:
57 // With description
58
59 static exrdmAnalysisManager* getInstance();
60
61private:
62
63 exrdmAnalysisManager();
64
65public: // Without description
66
67 ~exrdmAnalysisManager();
68
69 void bookHisto();
70
71 void BeginOfRun();
72 void EndOfRun();
73
74 void BeginOfEvent();
75 void EndOfEvent();
76
77 void AddParticle(G4double, G4double, G4double, G4double);
78 void AddIsotope(G4double, G4double, G4double);
79 void AddEnergy(G4double, G4double, G4double);
80
81 void SetVerbose(G4int val) {verbose = val;};
82 G4int GetVerbose() const {return verbose;};
83
84 void SetFirstEventToDebug(G4int val) {nEvt1 = val;};
85 G4int FirstEventToDebug() const {return nEvt1;};
86 void SetLastEventToDebug(G4int val) {nEvt2 = val;};
87 G4int LastEventToDebug() const {return nEvt2;};
88
89 void SetMaxEnergyforHisto(G4double val) {histEMax = val;};
90 G4double GetMaxEnergyforHisto() const {return histEMax;};
91 void SetMinEnergyforHisto(G4double val) {histEMin = val;};
92 G4double GetMinEnergyforHisto() const {return histEMin;};
93 void SetNumBinforHisto(G4int val) {histNBin = val;};
94 G4int GeNumBinforHisto() const {return histNBin;};
95
96 void SetThresholdEnergyforTarget(G4double val) {targetThresE = val;};
97 G4double GetThresholdEnergyforTarget () const {return targetThresE;};
98 void SetThresholdEnergyforDetector(G4double val) {detectorThresE = val;};
99 G4double GetThresholdEnergyforDetector () const {return detectorThresE;};
100 void SetPulseWidth(G4double val) {pulseWidth = val;};
101 G4double GetPulseWidth () const {return pulseWidth;};
102
103private:
104
105 // MEMBERS
106 static exrdmAnalysisManager* fManager;
107
108 G4int verbose;
109 G4int nEvt1;
110 G4int nEvt2;
111
112 G4double histEMax;
113 G4double histEMin;
114 G4int histNBin;
115 /*
116 G4bool histTarget;
117 G4bool histDetector;
118 G4bool histCoin;
119 G4bool histAntiCD;
120 G4bool histAntiCT;
121 G4bool histEmission;
122 G4bool ntupleEmission;
123 G4bool ntupleIsotope;
124 */
125 G4double targetThresE;
126 G4double detectorThresE;
127 G4double pulseWidth;
128
129 // energy depositions for an event
130 std::vector <exrdmEnergyDeposition> Edepo;
131 //
132 exrdmHisto* histo;
133
134};
135
136#endif
Note: See TracBrowser for help on using the repository browser.