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: G4ProcessTestAnalysis.hh,v 1.7 2006/06/29 19:48:28 gunter Exp $ |
---|
28 | // GEANT4 tag $Name: geant4-09-03-cand-01 $ |
---|
29 | // |
---|
30 | // Author: A. Pfeiffer (Andreas.Pfeiffer@cern.ch) |
---|
31 | // (copy of his UserAnalyser class) |
---|
32 | // |
---|
33 | // History: |
---|
34 | // ----------- |
---|
35 | // 5 Nov 2001 MGP Implemented according to A. Pfeiffer's design |
---|
36 | // and suggestions |
---|
37 | // |
---|
38 | // ------------------------------------------------------------------- |
---|
39 | // Class description: |
---|
40 | // Analysis of the process test |
---|
41 | // Further documentation available from http://www.ge.infn.it/geant4/lowE/index.html |
---|
42 | |
---|
43 | // ------------------------------------------------------------------- |
---|
44 | |
---|
45 | #ifndef G4PROCESSTESTANALYSIS_HH |
---|
46 | #define G4PROCESSTESTANALYSIS_HH |
---|
47 | |
---|
48 | #include "globals.hh" |
---|
49 | // #include "g4std/map" |
---|
50 | |
---|
51 | // Histogramming (from AIDA) |
---|
52 | #include "Interfaces/IHistogram1D.h" |
---|
53 | #include "Interfaces/IHistogram2D.h" |
---|
54 | |
---|
55 | // Histogramming (from Anaphe) |
---|
56 | #include "Interfaces/IHistoManager.h" |
---|
57 | |
---|
58 | // Ntuples (from Anaphe) |
---|
59 | #include "NtupleTag/LizardNTupleFactory.h" |
---|
60 | |
---|
61 | class G4ParticleChange; |
---|
62 | class G4Track; |
---|
63 | |
---|
64 | class G4ProcessTestAnalysis |
---|
65 | { |
---|
66 | public: |
---|
67 | |
---|
68 | ~G4ProcessTestAnalysis(); |
---|
69 | |
---|
70 | void book(const G4String& storeName = "analysis"); |
---|
71 | |
---|
72 | void finish(); |
---|
73 | |
---|
74 | void analyseGeneral(const G4Track& track, |
---|
75 | const G4ParticleChange* particleChange); |
---|
76 | |
---|
77 | void analyseSecondaries(const G4ParticleChange* particleChange); |
---|
78 | |
---|
79 | static G4ProcessTestAnalysis* getInstance(); |
---|
80 | |
---|
81 | private: |
---|
82 | |
---|
83 | G4ProcessTestAnalysis(); |
---|
84 | |
---|
85 | static G4ProcessTestAnalysis* instance; |
---|
86 | IHistoManager* histoManager; |
---|
87 | Lizard::NTupleFactory* ntFactory; |
---|
88 | Lizard::NTuple* ntuple1; |
---|
89 | Lizard::NTuple* ntuple2; |
---|
90 | |
---|
91 | // ---- NOTE ---- |
---|
92 | // Histograms are compliant to AIDA interfaces, ntuples are Lizard specific |
---|
93 | |
---|
94 | // std::map< G4String, IHistogram1D*, std::less<G4String> > histo1D; |
---|
95 | // std::map< G4String, IHistogram2D*, std::less<G4String> > histo2D; |
---|
96 | // std::map< G4String, IHistogram3D*, std::less<G4String> > histo3D; |
---|
97 | // std::map< G4String, Lizard::NTuple*, std::less<G4String> > ntuples; |
---|
98 | |
---|
99 | // Quantities for the general ntuple |
---|
100 | Lizard::Quantity<float> initialEnergy; |
---|
101 | Lizard::Quantity<float> energyChange; |
---|
102 | Lizard::Quantity<float> pxChange; |
---|
103 | Lizard::Quantity<float> pyChange; |
---|
104 | Lizard::Quantity<float> pzChange; |
---|
105 | Lizard::Quantity<float> eDeposit; |
---|
106 | Lizard::Quantity<float> thetaChange; |
---|
107 | Lizard::Quantity<float> phiChange; |
---|
108 | Lizard::Quantity<float> nElectrons; |
---|
109 | Lizard::Quantity<float> nPositrons; |
---|
110 | Lizard::Quantity<float> nPhotons; |
---|
111 | |
---|
112 | // Quantities for the secondary ntuple |
---|
113 | // Lizard::Quantity<float> initialEnergy; |
---|
114 | Lizard::Quantity<float> px; |
---|
115 | Lizard::Quantity<float> py; |
---|
116 | Lizard::Quantity<float> pz; |
---|
117 | Lizard::Quantity<float> p; |
---|
118 | Lizard::Quantity<float> e; |
---|
119 | Lizard::Quantity<float> eKin; |
---|
120 | Lizard::Quantity<float> theta; |
---|
121 | Lizard::Quantity<float> phi; |
---|
122 | Lizard::Quantity<float> partType; |
---|
123 | |
---|
124 | }; |
---|
125 | |
---|
126 | #endif |
---|