| 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 | // File name: RadmonApplication.hh
|
|---|
| 28 | // Creation date: Sep 2005
|
|---|
| 29 | // Main author: Riccardo Capra <capra@ge.infn.it>
|
|---|
| 30 | //
|
|---|
| 31 | // Id: $Id: RadmonApplication.hh,v 1.8 2006/06/29 16:07:51 gunter Exp $
|
|---|
| 32 | // Tag: $Name: $
|
|---|
| 33 | //
|
|---|
| 34 | // Description: Radmon application
|
|---|
| 35 | //
|
|---|
| 36 |
|
|---|
| 37 | #ifndef RADMONAPPLICATION_HH
|
|---|
| 38 | #define RADMONAPPLICATION_HH
|
|---|
| 39 |
|
|---|
| 40 | // Include files
|
|---|
| 41 | #include "globals.hh"
|
|---|
| 42 | #include "RadmonApplicationDetectorSetup.hh"
|
|---|
| 43 | #include "RadmonApplicationGeneratorSetup.hh"
|
|---|
| 44 | #include "RadmonApplicationPhysicsSetup.hh"
|
|---|
| 45 | #ifdef G4ANALYSIS_USE
|
|---|
| 46 | #include "RadmonApplicationAnalysisSetup.hh"
|
|---|
| 47 | #endif /* G4ANALYSIS_USE */
|
|---|
| 48 |
|
|---|
| 49 | // Forward declarations
|
|---|
| 50 | class RadmonApplicationOptions;
|
|---|
| 51 | class G4RunManager;
|
|---|
| 52 | class RadmonDetectorLayout;
|
|---|
| 53 | class RadmonGeneratorLayout;
|
|---|
| 54 | class RadmonPhysicsLayout;
|
|---|
| 55 | class RadmonAnalysisLayout;
|
|---|
| 56 | class RadmonDetectorLabelledEntitiesConstructorsFactory;
|
|---|
| 57 | class RadmonGeneratorsWithLabelFactory;
|
|---|
| 58 | class RadmonSubPhysicsListWithLabelFactory;
|
|---|
| 59 | class RadmonDataAnalysisWithLabelFactory;
|
|---|
| 60 | class RadmonAnalysis;
|
|---|
| 61 | class G4VisManager;
|
|---|
| 62 | class G4UImanager;
|
|---|
| 63 | class RadmonDetectorMessenger;
|
|---|
| 64 | class RadmonGeneratorMessenger;
|
|---|
| 65 | class RadmonPhysicsMessenger;
|
|---|
| 66 | class RadmonAnalysisMessenger;
|
|---|
| 67 | class RadmonApplicationMessenger;
|
|---|
| 68 | class G4UIsession;
|
|---|
| 69 | class G4UIdirectory;
|
|---|
| 70 |
|
|---|
| 71 | class RadmonApplication : public RadmonApplicationDetectorSetup, public RadmonApplicationGeneratorSetup, public RadmonApplicationPhysicsSetup
|
|---|
| 72 | #ifdef G4ANALYSIS_USE
|
|---|
| 73 | , public RadmonApplicationAnalysisSetup
|
|---|
| 74 | #endif /* G4ANALYSIS_USE */
|
|---|
| 75 | {
|
|---|
| 76 | public:
|
|---|
| 77 | RadmonApplication(const RadmonApplicationOptions & options);
|
|---|
| 78 | ~RadmonApplication();
|
|---|
| 79 |
|
|---|
| 80 | inline G4bool Valid(void) const;
|
|---|
| 81 |
|
|---|
| 82 | private:
|
|---|
| 83 | G4bool RunMacro(const RadmonApplicationOptions & options, const char * fileName);
|
|---|
| 84 |
|
|---|
| 85 | // Hidden constructors and operators
|
|---|
| 86 | RadmonApplication();
|
|---|
| 87 | RadmonApplication(const RadmonApplication & copy);
|
|---|
| 88 | RadmonApplication & operator=(const RadmonApplication & copy);
|
|---|
| 89 |
|
|---|
| 90 | // Private attributes
|
|---|
| 91 | G4bool valid;
|
|---|
| 92 |
|
|---|
| 93 | G4RunManager * runManager;
|
|---|
| 94 | RadmonDetectorLayout * detectorLayout;
|
|---|
| 95 | RadmonGeneratorLayout * generatorLayout;
|
|---|
| 96 | RadmonPhysicsLayout * physicsLayout;
|
|---|
| 97 | #ifdef G4ANALYSIS_USE
|
|---|
| 98 | RadmonAnalysisLayout * analysisLayout;
|
|---|
| 99 | #endif /* G4ANALYSIS_USE */
|
|---|
| 100 | RadmonDetectorLabelledEntitiesConstructorsFactory * detectorsFactory;
|
|---|
| 101 | RadmonGeneratorsWithLabelFactory * generatorsFactory;
|
|---|
| 102 | RadmonSubPhysicsListWithLabelFactory * physicsFactory;
|
|---|
| 103 | #ifdef G4ANALYSIS_USE
|
|---|
| 104 | RadmonDataAnalysisWithLabelFactory * analysisFactory;
|
|---|
| 105 | RadmonAnalysis * analysis;
|
|---|
| 106 | #endif /* G4ANALYSIS_USE */
|
|---|
| 107 | #ifdef G4VIS_USE
|
|---|
| 108 | G4VisManager * visManager;
|
|---|
| 109 | #endif /* G4VIS_USE */
|
|---|
| 110 | G4UImanager * uiManager;
|
|---|
| 111 | RadmonDetectorMessenger * detectorMessenger;
|
|---|
| 112 | RadmonGeneratorMessenger * generatorMessenger;
|
|---|
| 113 | RadmonPhysicsMessenger * physicsMessenger;
|
|---|
| 114 | #ifdef G4ANALYSIS_USE
|
|---|
| 115 | RadmonAnalysisMessenger * analysisMessenger;
|
|---|
| 116 | #endif /* G4ANALYSIS_USE */
|
|---|
| 117 | RadmonApplicationMessenger * applicationMessenger;
|
|---|
| 118 | G4UIsession * session;
|
|---|
| 119 | G4UIdirectory * directory;
|
|---|
| 120 | };
|
|---|
| 121 |
|
|---|
| 122 | #include "RadmonApplication.icc"
|
|---|
| 123 | #endif /* RADMONAPPLICATION_HH */
|
|---|