Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer 3 // * License and Disclaimer * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th 5 // * The Geant4 software is copyright of the Copyright Holders of * 6 // * the Geant4 Collaboration. It is provided 6 // * the Geant4 Collaboration. It is provided under the terms and * 7 // * conditions of the Geant4 Software License 7 // * conditions of the Geant4 Software License, included in the file * 8 // * LICENSE and available at http://cern.ch/ 8 // * LICENSE and available at http://cern.ch/geant4/license . These * 9 // * include a list of copyright holders. 9 // * include a list of copyright holders. * 10 // * 10 // * * 11 // * Neither the authors of this software syst 11 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 12 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 13 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 14 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file 15 // * use. Please see the license in the file LICENSE and URL above * 16 // * for the full disclaimer and the limitatio 16 // * for the full disclaimer and the limitation of liability. * 17 // * 17 // * * 18 // * This code implementation is the result 18 // * This code implementation is the result of the scientific and * 19 // * technical work of the GEANT4 collaboratio 19 // * technical work of the GEANT4 collaboration. * 20 // * By using, copying, modifying or distri 20 // * By using, copying, modifying or distributing the software (or * 21 // * any work based on the software) you ag 21 // * any work based on the software) you agree to acknowledge its * 22 // * use in resulting scientific publicati 22 // * use in resulting scientific publications, and indicate your * 23 // * acceptance of all terms of the Geant4 Sof 23 // * acceptance of all terms of the Geant4 Software license. * 24 // ******************************************* 24 // ******************************************************************** 25 // 25 // 26 // 26 // >> 27 // $Id: XrayFluoPlanePrimaryGeneratorAction.hh >> 28 // GEANT4 tag $Name: 27 // 29 // 28 // Author: Elena Guardincerri (Elena.Guardince 30 // Author: Elena Guardincerri (Elena.Guardincerri@ge.infn.it) 29 // 31 // 30 // History: 32 // History: 31 // ----------- 33 // ----------- 32 // 28 Nov 2001 Elena Guardincerri Created 34 // 28 Nov 2001 Elena Guardincerri Created 33 // 35 // 34 // ------------------------------------------- 36 // ------------------------------------------------------------------- 35 37 36 38 37 #ifndef XrayFluoMercuryPrimaryGeneratorAction_ 39 #ifndef XrayFluoMercuryPrimaryGeneratorAction_h 38 #define XrayFluoMercuryPrimaryGeneratorAction_ 40 #define XrayFluoMercuryPrimaryGeneratorAction_h 1 39 41 40 #include "G4VUserPrimaryGeneratorAction.hh" 42 #include "G4VUserPrimaryGeneratorAction.hh" 41 #include "globals.hh" 43 #include "globals.hh" 42 44 43 class G4ParticleGun; 45 class G4ParticleGun; 44 class G4Event; 46 class G4Event; 45 class XrayFluoMercuryDetectorConstruction; 47 class XrayFluoMercuryDetectorConstruction; 46 class XrayFluoMercuryPrimaryGeneratorMessenger 48 class XrayFluoMercuryPrimaryGeneratorMessenger; 47 class XrayFluoRunAction; 49 class XrayFluoRunAction; 48 50 49 //....oooOO0OOooo........oooOO0OOooo........oo 51 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 50 52 51 class XrayFluoMercuryPrimaryGeneratorAction : 53 class XrayFluoMercuryPrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction 52 { 54 { 53 public: 55 public: 54 56 55 XrayFluoMercuryPrimaryGeneratorAction(cons 57 XrayFluoMercuryPrimaryGeneratorAction(const XrayFluoMercuryDetectorConstruction*); 56 58 57 ~XrayFluoMercuryPrimaryGeneratorAction(); 59 ~XrayFluoMercuryPrimaryGeneratorAction(); 58 60 59 public: 61 public: 60 void GeneratePrimaries(G4Event*); 62 void GeneratePrimaries(G4Event*); 61 63 62 // method to set the global illumination of 64 // method to set the global illumination of Mercury surface 63 void SetGlobalFlag (G4bool val) {globalFlag 65 void SetGlobalFlag (G4bool val) {globalFlag = val;}; 64 66 65 67 66 //method to set a random impact point on the 68 //method to set a random impact point on the sample 67 //void SetRndmFlag(G4String val) { rndmFlag 69 //void SetRndmFlag(G4String val) { rndmFlag = val;} 68 70 69 //method to choose a circular non-point-like 71 //method to choose a circular non-point-like source 70 //void SetRndmVert (G4String val) { beam = v 72 //void SetRndmVert (G4String val) { beam = val;}; 71 73 72 //set the flag for shooting particles accord 74 //set the flag for shooting particles according to certain spectra 73 void SetSpectrum (G4String val) { spectrum = 75 void SetSpectrum (G4String val) { spectrum = val;}; 74 76 75 //set the flag for shooting particles from a 77 //set the flag for shooting particles from an isotropic source 76 //void SetIsoVert (G4String val) { isoVert 78 //void SetIsoVert (G4String val) { isoVert = val ;}; 77 79 78 private: 80 private: 79 //pointer a to G4 service class 81 //pointer a to G4 service class 80 G4ParticleGun* particleGun; 82 G4ParticleGun* particleGun; 81 83 82 //pointer to the geometry 84 //pointer to the geometry 83 const XrayFluoMercuryDetectorConstruction* 85 const XrayFluoMercuryDetectorConstruction* XrayFluoDetector; 84 86 85 //messenger of this class 87 //messenger of this class 86 XrayFluoMercuryPrimaryGeneratorMessenger* gu 88 XrayFluoMercuryPrimaryGeneratorMessenger* gunMessenger; 87 XrayFluoRunAction* runManager; 89 XrayFluoRunAction* runManager; 88 90 89 //flag for setting the global illumination o 91 //flag for setting the global illumination of Mercury surface 90 92 91 G4bool globalFlag; 93 G4bool globalFlag; 92 94 93 //flag for considering the Sun as a Point-li 95 //flag for considering the Sun as a Point-like source 94 //not to be used if spacecraft latitude is n 96 //not to be used if spacecraft latitude is near zero 95 //because the spacecraft itself shadowes the 97 //because the spacecraft itself shadowes the planet surface. 96 98 97 //G4bool pointLikeFla 99 //G4bool pointLikeFlag; 98 100 99 //flag for a random impact point 101 //flag for a random impact point 100 // G4String rndmFlag; 102 // G4String rndmFlag; 101 103 102 //flag for a circular non-point source 104 //flag for a circular non-point source 103 // G4String beam; 105 // G4String beam; 104 106 105 //flag for shooting particles according to c 107 //flag for shooting particles according to certain spectra 106 G4String spectrum; 108 G4String spectrum; 107 109 108 //flag for shooting particles from an isotro 110 //flag for shooting particles from an isotropic source 109 // G4String isoVert; 111 // G4String isoVert; 110 }; 112 }; 111 113 112 #endif 114 #endif 113 115