|
||||
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 XrayFluoPlanePrimaryGeneratorAction_h 0038 #define XrayFluoPlanePrimaryGeneratorAction_h 1 0039 0040 #include "G4VUserPrimaryGeneratorAction.hh" 0041 #include "globals.hh" 0042 0043 class G4ParticleGun; 0044 class G4Event; 0045 class XrayFluoPlaneDetectorConstruction; 0046 class XrayFluoPlanePrimaryGeneratorMessenger; 0047 class XrayFluoRunAction; 0048 0049 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 0050 0051 class XrayFluoPlanePrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction 0052 { 0053 public: 0054 0055 XrayFluoPlanePrimaryGeneratorAction(const XrayFluoPlaneDetectorConstruction*); 0056 0057 ~XrayFluoPlanePrimaryGeneratorAction(); 0058 0059 public: 0060 void GeneratePrimaries(G4Event*); 0061 0062 //method to set a random impact point on the sample 0063 void SetRndmFlag(G4String val) { rndmFlag = val;} 0064 0065 //method to choose a circular non-point source 0066 void SetRndmVert (G4String val) { beam = val;} 0067 0068 //set the flag for shooting particles according to certain spectra 0069 void SetSpectrum (G4String val) { spectrum= val ;} 0070 0071 //set the flag for shooting particles from an isotropic source 0072 void SetIsoVert (G4String val) { isoVert = val ;} 0073 0074 private: 0075 //pointer a to G4 service class 0076 G4ParticleGun* particleGun; 0077 0078 //pointer to the geometry 0079 const XrayFluoPlaneDetectorConstruction* XrayFluoDetector; 0080 0081 //messenger of this class 0082 XrayFluoPlanePrimaryGeneratorMessenger* gunMessenger; 0083 XrayFluoRunAction* runManager; 0084 0085 //flag for a random impact point 0086 G4String rndmFlag; 0087 0088 //flag for a circular non-point source 0089 G4String beam; 0090 0091 //flag for shooting particles according to certain spectra 0092 G4String spectrum; 0093 0094 //flag for shooting particles from an isotropic source 0095 G4String isoVert; 0096 }; 0097 0098 #endif 0099 0100
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |