Geant4  10.01.p03
exrdmAnalysisManager.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 // $Id: exrdmAnalysisManager.hh 68007 2013-03-13 11:28:03Z gcosmo $
27 //
30 //
31 
32 
33 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
34 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
35 
36 #ifndef exrdmAnalysisManager_h
37 #define exrdmAnalysisManager_h 1
38 
39 //---------------------------------------------------------------------------
40 //
41 // ClassName: exrdmAnalysisManager
42 //
43 // Description: Singleton class to hold analysis parameters and build histograms.
44 // User cannot access to the constructor.
45 // The pointer of the only existing object can be got via
46 // exrdmAnalysisManager::GetInstance() static method.
47 // The first invokation of this static method makes
48 // the singleton object.
49 //
50 //----------------------------------------------------------------------------
51 //
52 
53 #include "globals.hh"
54 #include "exrdmEnergyDeposition.hh"
55 #include <vector>
56 
57 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
58 
59 class exrdmHisto;
60 
62 {
63 
64 public:
65  // With description
66 
68  static void Dispose();
69 
70 private:
71 
74 
75 public: // Without description
76 
77  void BookHisto();
78 
79  void BeginOfRun();
80  void EndOfRun(G4int);
81 
82  void BeginOfEvent();
83  void EndOfEvent();
84 
88  void AddDecayProduct(G4double pid,G4int Z, G4int A,
89  G4double energy, G4double time,G4double weight);
90 
91  void SetVerbose(G4int val) {fVerbose = val;};
92  G4int GetVerbose() const {return fVerbose;};
93 
94  void SetFirstEventToDebug(G4int val) {fNEvt1 = val;};
95  G4int FirstEventToDebug() const {return fNEvt1;};
96  void SetLastEventToDebug(G4int val) {fNEvt2 = val;};
97  G4int LastEventToDebug() const {return fNEvt2;};
98 
103  void SetNumBinforHisto(G4int val) {fHistNBin = val;};
104  G4int GeNumBinforHisto() const {return fHistNBin;};
105 
110  void SetPulseWidth(G4double val) {fPulseWidth = val;};
111  G4double GetPulseWidth () const {return fPulseWidth;};
112 
113 private:
114 
115  // MEMBERS
117 
121 
125 
129 
130  // energy depositions for an event
131  std::vector <exrdmEnergyDeposition> fEdepo;
132  //
134 
135 };
136 
137 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
138 
139 #endif
void AddEnergy(G4double, G4double, G4double)
G4double GetThresholdEnergyforTarget() const
void SetMaxEnergyforHisto(G4double val)
G4int FirstEventToDebug() const
void SetNumBinforHisto(G4int val)
void SetThresholdEnergyforTarget(G4double val)
int G4int
Definition: G4Types.hh:78
G4double GetMaxEnergyforHisto() const
void SetThresholdEnergyforDetector(G4double val)
void SetFirstEventToDebug(G4int val)
Definition of the exrdmEnergyDeposition class.
void AddDecayProduct(G4double pid, G4int Z, G4int A, G4double energy, G4double time, G4double weight)
void AddParticle(G4double, G4double, G4double, G4double)
static const G4double A[nN]
void SetLastEventToDebug(G4int val)
std::vector< exrdmEnergyDeposition > fEdepo
static exrdmAnalysisManager * fManager
G4double GetThresholdEnergyforDetector() const
void SetMinEnergyforHisto(G4double val)
G4double energy(const ThreeVector &p, const G4double m)
static exrdmAnalysisManager * GetInstance()
double G4double
Definition: G4Types.hh:76
G4double GetMinEnergyforHisto() const
void SetPulseWidth(G4double val)
G4int LastEventToDebug() const
void AddIsotope(G4double, G4double, G4double)
G4double GetPulseWidth() const