source: trunk/examples/extended/eventgenerator/exgps/include/exGPSAnalysisManager.hh@ 1036

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

update

File size: 3.3 KB
RevLine 
[807]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
33using namespace AIDA;
34
35class AIDA::IAnalysisFactory;
36class AIDA::ITree;
37class AIDA::IHistogramFactory;
38class AIDA::ITupleFactory;
39class AIDA::IPlotter;
40
41class exGPSAnalysisMessenger;
42
43//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
44
45class exGPSAnalysisManager
46{
47
48private:
49 exGPSAnalysisManager ();
50
51public:
52 virtual ~exGPSAnalysisManager ();
53 static exGPSAnalysisManager* getInstance ();
54 static void dispose();
55
56 IHistogramFactory* getHistogramFactory();
57 ITupleFactory* getTupleFactory();
58 IPlotter* createPlotter();
59
60
61public:
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
75private:
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
Note: See TracBrowser for help on using the repository browser.