Geant4  10.01.p03
XrayFluoAnalysisManager.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 //
27 // $Id: XrayFluoAnalysisManager.hh
28 // GEANT4 tag $Name:
29 //
30 // Author: Elena Guardincerri (Elena.Guardincerri@ge.infn.it)
31 //
32 // History:
33 // -----------
34 // 11 Jul 2003 A.Mantero, code cleaning / Plotter-XML addiction
35 // Sep 2002 A.Mantero, AIDA3.0 Migration
36 // 06 Dec 2001 A.Pfeiffer updated for singleton
37 // 30 Nov 2001 Guy Barrand : migrate to AIDA-2.2.
38 // 28 Nov 2001 Elena Guardincerri Created
39 //
40 // -------------------------------------------------------------------
41 
42 #ifndef G4PROCESSTESTANALYSIS_HH
43 #define G4PROCESSTESTANALYSIS_HH
44 
45 #include "globals.hh"
46 #include <vector>
47 #include "G4ThreeVector.hh"
48 #include "XrayFluoDataSet.hh"
50 
51 class G4Step;
53 
54 //....oooOO0OOoo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
56 {
57 public:
58 
59  virtual ~XrayFluoAnalysisManager();
60 
61  void book();
62 
63  void finish();
64 
65  //fill histograms with data from XrayFluoSteppingAction
66  void analyseStepping(const G4Step* aStep);
67 
68  //fill histograms with data from XrayFluoEventAction
69  void analyseEnergyDep(G4double eDep);
70 
71  //fill histograms with data from XrayFluoPrimarygeneratorAction
73 
74  //method to call to create an instance of this class
76 
77  // methods to set the flag for the storage of the space of phases into ntuple
78  inline void PhaseSpaceOn(){phaseSpaceFlag = true;}
79 
80  inline void PhaseSpaceOff(){phaseSpaceFlag = false;}
81 
82  //method to chenge the name of the output file
84 
85  const std::pair<G4double,G4String> GetEmittedParticleEnergyAndType();
86 
88 
89  void SetPhysicFlag(G4bool);
90 
91 private:
92  //private constructor in order to create a singleton
94 
96 
98 
100 
101  std::vector<G4double>* gunParticleEnergies;
102  std::vector<G4String>* gunParticleTypes;
103 
104  //Instance for singleton implementation this is the returned
106 
107  //pointer to the analysis messenger
109 
111 
113 
114 };
115 #endif
116 
117 
118 
static XrayFluoAnalysisManager * instance
void analyseStepping(const G4Step *aStep)
const std::pair< G4double, G4String > GetEmittedParticleEnergyAndType()
int G4int
Definition: G4Types.hh:78
void LoadGunData(G4String, G4bool)
void analysePrimaryGenerator(G4double energy)
static XrayFluoAnalysisManager * getInstance()
bool G4bool
Definition: G4Types.hh:79
Definition: G4Step.hh:76
std::vector< G4double > * gunParticleEnergies
G4double energy(const ThreeVector &p, const G4double m)
std::vector< G4String > * gunParticleTypes
XrayFluoAnalysisMessenger * analisysMessenger
void analyseEnergyDep(G4double eDep)
double G4double
Definition: G4Types.hh:76