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

Last change on this file since 1317 was 1230, checked in by garnier, 15 years ago

update to geant4.9.3

File size: 3.1 KB
Line 
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
33namespace AIDA {
34
35class IAnalysisFactory;
36class ITree;
37class IPlotter;
38class IHistogram1D;
39class IHistogram2D;
40class ITuple;
41}
42
43class exGPSAnalysisMessenger;
44
45//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
46
47class exGPSAnalysisManager
48{
49
50private:
51  exGPSAnalysisManager ();
52  virtual ~exGPSAnalysisManager ();
53
54public:
55  static exGPSAnalysisManager* getInstance ();
56  static void dispose();
57
58public:
59  void BeginOfRun();
60  void EndOfRun();
61
62  void SetFileName(G4String filename) {fileName = filename;};
63  void SetFileType(G4String filetype) {fileType = filetype;};
64
65  void SetPosMax(G4double pmax) {maxpos = pmax;};
66  void SetPosMin(G4double pmin) {minpos = pmin;};
67  void SetEngMax(G4double emax) {maxeng = emax;};
68  void SetEngMin(G4double emin) {mineng = emin;};
69 
70  void Fill(G4String, G4double, G4double, G4double, G4double, G4double, G4double, G4double);
71
72private:
73
74  static exGPSAnalysisManager* instance;
75
76  G4String fileName;
77  G4String fileType;
78
79  AIDA::IAnalysisFactory* analysisFactory;
80  AIDA::ITree* tree;
81  AIDA::IPlotter* plotter;
82
83  G4double minpos, maxpos;
84  G4double mineng, maxeng;
85
86  AIDA::IHistogram1D* enerHisto;
87  AIDA::IHistogram2D* posiXY;
88  AIDA::IHistogram2D* posiXZ;
89  AIDA::IHistogram2D* posiYZ;
90  AIDA::IHistogram2D* anglCTP;
91  AIDA::IHistogram2D* anglTP;
92  AIDA::ITuple* tuple;
93
94  exGPSAnalysisMessenger* analysisMessenger;
95
96};
97
98#endif // G4ANALYSIS_USE
99
100#endif
101
102
103
104
105
106
107
108
109
110
111
Note: See TracBrowser for help on using the repository browser.