//////////////////////////////////////////////////////////////////// /// \class RAT::N16SourceGen /// /// \brief Generates events in the N16Source decay chamber. /// /// \author Matt Mottram (m.mottram@qmul.ac.uk) -- contact person /// \author Phil Jones (p.g.jones@qmul.ac.uk) -- contact person /// /// REVISION HISTORY:\n /// 25 September 2012 : D.Resnick - First version. /// /// \details Generates N16 decays in the gas volume of the N16 /// source for any source position. Requires source /// geometry to be loaded. No generator position /// modifications accepted. Requires rate to be set, e.g: /// /generator/add n16source /// /generator/rate/set 1 /// //////////////////////////////////////////////////////////////////// #ifndef __RAT_N16SourceGen__ #define __RAT_N16SourceGen__ #include namespace RAT { class N16SourceGen : public DecayChain_Gen { public: N16SourceGen() : DecayChain_Gen("N16Source"), fActiveVolumeName("N16Source_gas_phys") { }; virtual ~N16SourceGen() { }; virtual void SetState(G4String state); virtual void SetPosState(G4String /*state*/); private: G4String const fActiveVolumeName; // name of the volume with the source activity }; } // namespace RAT #endif