/scratch0/jsnuveri/BDSIM/BDSIMgit/bdsim/include/BDSPrimaryGeneratorAction.hh

00001 /* BDSIM code.    Version 1.0
00002    Author: Grahame A. Blair, Royal Holloway, Univ. of London.
00003    Last modified 24.7.2002
00004    Copyright (c) 2002 by G.A.Blair.  ALL RIGHTS RESERVED. 
00005 
00006    Modified 22.03.05 by J.C.Carter, Royal Holloway, Univ. of London.
00007    Added GABs SynchGen code
00008 */
00009 
00010 
00011 #ifndef BDSPrimaryGeneratorAction_h
00012 #define BDSPrimaryGeneratorAction_h 
00013 
00014 #include "G4VUserPrimaryGeneratorAction.hh"
00015 #include "globals.hh"
00016 
00017 class BDSBunch;
00018 class G4Event;
00019 class G4ParticleGun;
00020 
00021 class BDSPrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
00022 {
00023 public:
00024   BDSPrimaryGeneratorAction(BDSBunch*);    
00025   ~BDSPrimaryGeneratorAction();
00026   
00027 public:
00028   virtual void GeneratePrimaries(G4Event*);
00029   
00030 private:
00032   G4ParticleGun*              particleGun;        
00035   G4double weight;
00037   BDSBunch* bdsBunch;
00038 };
00039 
00040 #endif
00041 
00042 

Generated on 28 Jun 2015 for BDSIM by  doxygen 1.4.7