|
||||
File indexing completed on 2025-01-18 09:17:08
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 // 0026 // 0027 // 0028 // Author: Elena Guardincerri (Elena.Guardincerri@ge.infn.it) 0029 // 0030 // History: 0031 // ----------- 0032 // 28 Nov 2001 Elena Guardincerri Created 0033 // 0034 // ------------------------------------------------------------------- 0035 0036 0037 #ifndef XrayFluoMercuryPrimaryGeneratorAction_h 0038 #define XrayFluoMercuryPrimaryGeneratorAction_h 1 0039 0040 #include "G4VUserPrimaryGeneratorAction.hh" 0041 #include "globals.hh" 0042 0043 class G4ParticleGun; 0044 class G4Event; 0045 class XrayFluoMercuryDetectorConstruction; 0046 class XrayFluoMercuryPrimaryGeneratorMessenger; 0047 class XrayFluoRunAction; 0048 0049 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 0050 0051 class XrayFluoMercuryPrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction 0052 { 0053 public: 0054 0055 XrayFluoMercuryPrimaryGeneratorAction(const XrayFluoMercuryDetectorConstruction*); 0056 0057 ~XrayFluoMercuryPrimaryGeneratorAction(); 0058 0059 public: 0060 void GeneratePrimaries(G4Event*); 0061 0062 // method to set the global illumination of Mercury surface 0063 void SetGlobalFlag (G4bool val) {globalFlag = val;}; 0064 0065 0066 //method to set a random impact point on the sample 0067 //void SetRndmFlag(G4String val) { rndmFlag = val;} 0068 0069 //method to choose a circular non-point-like source 0070 //void SetRndmVert (G4String val) { beam = val;}; 0071 0072 //set the flag for shooting particles according to certain spectra 0073 void SetSpectrum (G4String val) { spectrum = val;}; 0074 0075 //set the flag for shooting particles from an isotropic source 0076 //void SetIsoVert (G4String val) { isoVert = val ;}; 0077 0078 private: 0079 //pointer a to G4 service class 0080 G4ParticleGun* particleGun; 0081 0082 //pointer to the geometry 0083 const XrayFluoMercuryDetectorConstruction* XrayFluoDetector; 0084 0085 //messenger of this class 0086 XrayFluoMercuryPrimaryGeneratorMessenger* gunMessenger; 0087 XrayFluoRunAction* runManager; 0088 0089 //flag for setting the global illumination of Mercury surface 0090 0091 G4bool globalFlag; 0092 0093 //flag for considering the Sun as a Point-like source 0094 //not to be used if spacecraft latitude is near zero 0095 //because the spacecraft itself shadowes the planet surface. 0096 0097 //G4bool pointLikeFlag; 0098 0099 //flag for a random impact point 0100 // G4String rndmFlag; 0101 0102 //flag for a circular non-point source 0103 // G4String beam; 0104 0105 //flag for shooting particles according to certain spectra 0106 G4String spectrum; 0107 0108 //flag for shooting particles from an isotropic source 0109 // G4String isoVert; 0110 }; 0111 0112 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |