![]() |
![]() |
00001 #ifndef IG_G4_DEMO_IG_G4DEMO_GENERATOR_H 00002 # define IG_G4_DEMO_IG_G4DEMO_GENERATOR_H 00003 00004 //<<<<<< INCLUDES >>>>>> 00005 00006 # include "VisExamples/VisG4ExN02/interface/config.h" 00007 # include <G4VUserPrimaryGeneratorAction.hh> 00008 00009 //<<<<<< PUBLIC DEFINES >>>>>> 00010 //<<<<<< PUBLIC CONSTANTS >>>>>> 00011 //<<<<<< PUBLIC TYPES >>>>>> 00012 00013 class VisG4ExampleDetector; 00014 class G4ParticleGun; 00015 00016 //<<<<<< PUBLIC VARIABLES >>>>>> 00017 //<<<<<< PUBLIC FUNCTIONS >>>>>> 00018 //<<<<<< CLASS DECLARATIONS >>>>>> 00019 00020 class IG_G4_DEMO_API VisG4ExampleGenerator : public G4VUserPrimaryGeneratorAction 00021 { 00022 public: 00023 VisG4ExampleGenerator (VisG4ExampleDetector *detector); 00024 ~VisG4ExampleGenerator (void); 00025 // implicit copy constructor 00026 // implicit assignment operator 00027 // implicit destructor 00028 00029 virtual void GeneratePrimaries (G4Event *event); 00030 00031 private: 00032 VisG4ExampleDetector *m_detector; 00033 G4ParticleGun *m_gun; 00034 }; 00035 00036 //<<<<<< INLINE PUBLIC FUNCTIONS >>>>>> 00037 //<<<<<< INLINE MEMBER FUNCTIONS >>>>>> 00038 00039 #endif // IG_G4_DEMO_IG_G4DEMO_GENERATOR_H