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 exGPSAnalysisManager_h |
---|
27 | #define exGPSAnalysisManager_h 1 |
---|
28 | |
---|
29 | #ifdef G4ANALYSIS_USE |
---|
30 | |
---|
31 | #include "globals.hh" |
---|
32 | |
---|
33 | using namespace AIDA; |
---|
34 | |
---|
35 | class AIDA::IAnalysisFactory; |
---|
36 | class AIDA::ITree; |
---|
37 | class AIDA::IHistogramFactory; |
---|
38 | class AIDA::ITupleFactory; |
---|
39 | class AIDA::IPlotter; |
---|
40 | |
---|
41 | class exGPSAnalysisMessenger; |
---|
42 | |
---|
43 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
44 | |
---|
45 | class exGPSAnalysisManager |
---|
46 | { |
---|
47 | |
---|
48 | private: |
---|
49 | exGPSAnalysisManager (); |
---|
50 | |
---|
51 | public: |
---|
52 | virtual ~exGPSAnalysisManager (); |
---|
53 | static exGPSAnalysisManager* getInstance (); |
---|
54 | static void dispose(); |
---|
55 | |
---|
56 | IHistogramFactory* getHistogramFactory(); |
---|
57 | ITupleFactory* getTupleFactory(); |
---|
58 | IPlotter* createPlotter(); |
---|
59 | |
---|
60 | |
---|
61 | public: |
---|
62 | void BeginOfRun(); |
---|
63 | void EndOfRun(); |
---|
64 | |
---|
65 | void SetFileName(G4String filename) {fileName = filename;}; |
---|
66 | void SetFileType(G4String filetype) {fileType = filetype;}; |
---|
67 | |
---|
68 | void SetPosMax(G4double pmax) {maxpos = pmax;}; |
---|
69 | void SetPosMin(G4double pmin) {minpos = pmin;}; |
---|
70 | void SetEngMax(G4double emax) {maxeng = emax;}; |
---|
71 | void SetEngMin(G4double emin) {mineng = emin;}; |
---|
72 | |
---|
73 | void Fill(G4String, G4double, G4double, G4double, G4double, G4double, G4double, G4double); |
---|
74 | |
---|
75 | private: |
---|
76 | |
---|
77 | static exGPSAnalysisManager* instance; |
---|
78 | |
---|
79 | G4String fileName; |
---|
80 | G4String fileType; |
---|
81 | |
---|
82 | IAnalysisFactory* analysisFactory; |
---|
83 | IHistogramFactory* hFactory; |
---|
84 | ITupleFactory* tFactory; |
---|
85 | ITree* tree; |
---|
86 | |
---|
87 | G4double minpos, maxpos; |
---|
88 | G4double mineng, maxeng; |
---|
89 | |
---|
90 | IHistogram1D* enerHisto; |
---|
91 | IHistogram2D* posiXY; |
---|
92 | IHistogram2D* posiXZ; |
---|
93 | IHistogram2D* posiYZ; |
---|
94 | IHistogram2D* anglCTP; |
---|
95 | IHistogram2D* anglTP; |
---|
96 | ITuple* tuple; |
---|
97 | |
---|
98 | IPlotter* plotter; |
---|
99 | |
---|
100 | exGPSAnalysisMessenger* analysisMessenger; |
---|
101 | |
---|
102 | }; |
---|
103 | |
---|
104 | #endif // G4ANALYSIS_USE |
---|
105 | |
---|
106 | #endif |
---|
107 | |
---|
108 | |
---|
109 | |
---|
110 | |
---|
111 | |
---|
112 | |
---|
113 | |
---|
114 | |
---|
115 | |
---|
116 | |
---|
117 | |
---|