//////////////////////////////////////////////////////////////////// /// \class RAT::VertexGen_PhotonBomb /// /// \brief Generate an event consisting of a bunch of photons /// \author Phil Jones /// \author Jeanne Wilson -- contact person /// /// REVISION HISTORY:\n /// Code inherited from generic rat at start of SNO+ //////////////////////////////////////////////////////////////////// #ifndef __RAT_VertexGen_PhotonBomb__ #define __RAT_VertexGen_PhotonBomb__ #include namespace RAT { class VertexGen_PhotonBomb : public GLG4VertexGen { public: VertexGen_PhotonBomb(const char *arg_dbname="pbomb"); virtual ~VertexGen_PhotonBomb(); virtual void GeneratePrimaryVertex( G4Event *argEvent, G4ThreeVector &dx, G4double dt); /** State format "num_photons wavelength_nm" */ virtual void SetState( G4String newValues ); virtual G4String GetState(); private: G4ParticleDefinition *fOpticalPhoton; int fNumPhotons; double fEnergy; }; } // namespace RAT #endif