Changeset 962 for trunk/source/processes/hadronic/models/chiral_inv_phase_space/interface/include/G4GammaNuclearReaction.hh
- Timestamp:
- Apr 6, 2009, 12:30:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/chiral_inv_phase_space/interface/include/G4GammaNuclearReaction.hh
r819 r962 25 25 // 26 26 // 27 // $Id: G4GammaNuclearReaction.hh,v 1.1 3 2006/06/29 20:07:48 gunterExp $28 // GEANT4 tag $Name: $27 // $Id: G4GammaNuclearReaction.hh,v 1.14 2008/09/01 17:30:42 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // … … 32 32 // Created: J.P. Wellisch, 2000/08/18 33 33 // The last update: J.P. Wellisch, Thu Jun 6 2002. 34 // 01.09.2008 V.Ivanchenko move inline to source and define interaction name 34 35 // 36 35 37 #ifndef G4GammaNuclearReaction_h 36 #define G4GammaNuclearReaction_h 38 #define G4GammaNuclearReaction_h 1 37 39 38 40 #include "globals.hh" 39 41 #include "G4HadronicInteraction.hh" 40 42 #include "G4ChiralInvariantPhaseSpace.hh" 41 #include "G4Gamma.hh"42 43 43 44 class G4GammaNuclearReaction : public G4HadronicInteraction 44 45 { 45 public: 46 virtual ~G4GammaNuclearReaction() 47 { 48 } 46 public: 47 48 G4GammaNuclearReaction(); 49 50 virtual ~G4GammaNuclearReaction(); 49 51 50 51 52 virtual G4HadFinalState* ApplyYourself(const G4HadProjectile& aTrack, 53 G4Nucleus& aTargetNucleus); 52 54 53 private: 54 G4ChiralInvariantPhaseSpace theModel; 55 private: 56 57 G4ChiralInvariantPhaseSpace theModel; 58 55 59 }; 56 60 57 inline58 G4HadFinalState * G4GammaNuclearReaction::59 ApplyYourself(const G4HadProjectile& aTrack, G4Nucleus& aTargetNucleus)60 {61 if(aTrack.GetDefinition() != G4Gamma::GammaDefinition())62 {63 throw G4HadronicException(__FILE__, __LINE__, "Called G4GammaNuclearReaction for particle other than gamma");64 }65 return theModel.ApplyYourself(aTrack, aTargetNucleus);66 }67 68 61 #endif
Note: See TracChangeset
for help on using the changeset viewer.