|
||||
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 XrayFluoPrimaryGeneratorAction_h 0038 #define XrayFluoPrimaryGeneratorAction_h 1 0039 0040 #include "G4VUserPrimaryGeneratorAction.hh" 0041 #include "globals.hh" 0042 #include "G4DataVector.hh" 0043 #include "G4ThreeVector.hh" 0044 #include <vector> 0045 0046 class G4ParticleGun; 0047 class G4Event; 0048 class XrayFluoDetectorConstruction; 0049 class XrayFluoPrimaryGeneratorMessenger; 0050 class XrayFluoRunAction; 0051 0052 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 0053 0054 class XrayFluoPrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction 0055 { 0056 public: 0057 0058 XrayFluoPrimaryGeneratorAction(const XrayFluoDetectorConstruction*); 0059 0060 ~XrayFluoPrimaryGeneratorAction(); 0061 0062 public: 0063 void GeneratePrimaries(G4Event*); 0064 0065 //method to set a random impact point on the sample 0066 void SetRndmFlag(G4String val) { rndmFlag = val;} 0067 0068 //method to choose a circular non-point source 0069 void SetRndmVert (G4String val) { beam = val;} 0070 0071 //set the flag for shooting particles according to certain spectra 0072 void SetSpectrum (G4String val) { spectrum= val ;} 0073 0074 //set the flag for shooting particles from an isotropic source 0075 void SetIsoVert (G4String val) { isoVert = val ;} 0076 0077 //load data created in previous runs 0078 void ActivatePhaseSpace(G4String); 0079 0080 //load Raileigh scattered photon from previously loaded data 0081 void SetRayleighFlag (G4bool); 0082 0083 0084 private: 0085 //pointer a to G4 service class 0086 G4ParticleGun* particleGun; 0087 0088 //pointer to the geometry 0089 const XrayFluoDetectorConstruction* XrayFluoDetector; 0090 0091 //pointer to the run manager (master) 0092 const XrayFluoRunAction* runAction; 0093 0094 //messenger of this class 0095 XrayFluoPrimaryGeneratorMessenger* gunMessenger; 0096 0097 //flag for a random impact point 0098 G4String rndmFlag; 0099 0100 //flag for a circular non-point source 0101 G4String beam; 0102 0103 //flag for shooting particles according to certain spectra 0104 G4String spectrum; 0105 0106 //flag for shooting particles from an isotropic source 0107 G4String isoVert; 0108 0109 //flag for the use of phase-space created with a previous run 0110 G4bool phaseSpaceGunFlag; 0111 0112 // the flag to load particle coming from Rayleigh scattering 0113 G4bool rayleighFlag; 0114 0115 G4ThreeVector detectorPosition; 0116 0117 0118 0119 }; 0120 0121 #endif 0122 0123
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |