- Timestamp:
- Jun 18, 2010, 11:42:07 AM (14 years ago)
- Location:
- trunk/source/processes/hadronic/models/de_excitation/management
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/de_excitation/management/include/G4VEvaporationChannel.hh
r1228 r1315 24 24 // ******************************************************************** 25 25 // 26 // 27 // $Id: G4VEvaporationChannel.hh,v 1.4 2008/09/19 13:32:54 ahoward Exp $ 28 // GEANT4 tag $Name: geant4-09-03 $ 26 // $Id: G4VEvaporationChannel.hh,v 1.6 2010/05/11 11:16:04 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 29 28 // 30 29 // Hadronic Process: Nuclear De-excitations 31 30 // by V. Lara (Oct 1998) 32 31 // 33 // Modif (03 September 2008) by J. M. Quesada for external choice of inverse 34 // cross section option 35 // JMQ (06 September 2008) Also external choices have been added for 36 // superimposed Coulomb barrier (if useSICB is set true, by default is false) 37 38 32 // Modified: 33 // 03.09.2008 (J.M.Quesada) for external choice of inverse cross section option 34 // 06.09.2008 (J.M.Quesada) external choices have been added for superimposed 35 // Coulomb barrier (if useSICB is set true, by default is false) 36 // 24.04.2010 (V.Ivanchenko) moved constructor and destructor to source; added two 37 // new virtual methods EmittedFragment(s) to allow more optimal 38 // work with G4Fragment objects 39 // 39 40 40 41 #ifndef G4VEvaporationChannel_h … … 47 48 { 48 49 public: 49 G4VEvaporationChannel() : Name("Anonymous") {}; 50 G4VEvaporationChannel(const G4String & aName) : Name(aName) {}; 51 G4VEvaporationChannel(const G4String * aName) : Name(*aName) {}; 52 virtual ~G4VEvaporationChannel() {}; 50 51 G4VEvaporationChannel(const G4String & aName = "Anonymous"); 52 virtual ~G4VEvaporationChannel(); 53 53 54 54 private: 55 55 56 G4VEvaporationChannel(const G4VEvaporationChannel & right); 57 const G4VEvaporationChannel & operator=(const G4VEvaporationChannel & right); 56 58 57 const G4VEvaporationChannel & operator=(const G4VEvaporationChannel & right);58 59 public: 60 59 61 G4bool operator==(const G4VEvaporationChannel & right) const; 60 62 G4bool operator!=(const G4VEvaporationChannel & right) const; 61 63 62 public:63 64 virtual void Initialize(const G4Fragment & fragment) = 0; 64 65 66 // return emitted fragment, initial fragment is modified 67 // and not deleted 68 virtual G4Fragment* EmittedFragment(G4Fragment* theNucleus); 69 70 // return vector of emitted fragments, initial fragment is modified 71 // but not included in this vector 72 virtual G4FragmentVector* BreakUpFragment(G4Fragment* theNucleus); 73 74 // old method initial fragment is not modified, its copy included 75 // in the list of emitted fragments 65 76 virtual G4FragmentVector * BreakUp(const G4Fragment & theNucleus) = 0; 66 77 67 78 virtual G4double GetEmissionProbability(void) const = 0; 68 69 79 70 80 G4String GetName() const {return Name;} … … 75 85 // for superimposed Coulomb Barrier for inverse cross sections 76 86 inline void UseSICB(G4bool use) { useSICB = use; } 87 77 88 protected: 89 78 90 G4int OPTxs; 79 91 G4bool useSICB; 80 81 92 82 93 private: -
trunk/source/processes/hadronic/models/de_excitation/management/include/G4VEvaporationFactory.hh
r1228 r1315 25 25 // 26 26 // 27 // $Id: G4VEvaporationFactory.hh,v 1. 4 2008/09/19 13:32:54 ahowardExp $28 // GEANT4 tag $Name: geant4-09-0 3$27 // $Id: G4VEvaporationFactory.hh,v 1.5 2010/04/27 11:43:16 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 29 29 // 30 30 // Hadronic Process: Nuclear De-excitations … … 42 42 { 43 43 public: 44 G4VEvaporationFactory() : _channel(0) {};44 G4VEvaporationFactory(); 45 45 virtual ~G4VEvaporationFactory(); 46 46 -
trunk/source/processes/hadronic/models/de_excitation/management/src/G4VEvaporationChannel.cc
r1228 r1315 24 24 // ******************************************************************** 25 25 // 26 // 27 // $Id: G4VEvaporationChannel.cc,v 1.5 2006/06/29 20:23:55 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-03 $ 26 // $Id: G4VEvaporationChannel.cc,v 1.6 2010/04/25 18:43:08 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 29 28 // 30 29 // Hadronic Process: Nuclear De-excitations 31 30 // by V. Lara (Oct 1998) 32 31 // 32 // Modified: 33 // 24.04.2010 (V.Ivanchenko) moved constructor and destructor to source; added two 34 // new virtual methods EmittedFragment(s) to allow more optimal 35 // work with G4Fragment objects; removed unnecesary exceptions 33 36 34 37 #include "G4VEvaporationChannel.hh" 35 38 #include "G4HadronicException.hh" 36 39 37 G4VEvaporationChannel::G4VEvaporationChannel(const G4VEvaporationChannel &) 38 { 39 throw G4HadronicException(__FILE__, __LINE__, "G4VEvaporationChannel::copy_constructor meant to not be accessable"); 40 } 40 G4VEvaporationChannel::G4VEvaporationChannel(const G4String & aName) 41 : Name(aName) 42 {} 41 43 44 G4VEvaporationChannel::~G4VEvaporationChannel() 45 {} 42 46 43 44 45 const G4VEvaporationChannel & G4VEvaporationChannel::operator=(const G4VEvaporationChannel &) 46 { 47 throw G4HadronicException(__FILE__, __LINE__, "G4VEvaporationChannel::operator= meant to not be accessable"); 48 return *this; 49 } 50 47 //G4VEvaporationChannel::G4VEvaporationChannel(const G4VEvaporationChannel &) 48 //{ 49 // throw G4HadronicException(__FILE__, __LINE__, "G4VEvaporationChannel::copy_constructor meant to not be accessable"); 50 //} 51 //const G4VEvaporationChannel & G4VEvaporationChannel::operator=(const G4VEvaporationChannel &) 52 //{ 53 // throw G4HadronicException(__FILE__, __LINE__, "G4VEvaporationChannel::operator= meant to not be accessable"); 54 // return *this; 55 //} 51 56 52 57 G4bool G4VEvaporationChannel::operator==(const G4VEvaporationChannel &right) const 53 58 { 54 return (this == (G4VEvaporationChannel *) &right); 55 // return false; 59 return (this == (G4VEvaporationChannel *) &right); 56 60 } 57 61 58 62 G4bool G4VEvaporationChannel::operator!=(const G4VEvaporationChannel &right) const 59 63 { 60 return (this != (G4VEvaporationChannel *) &right); 61 // return true; 64 return (this != (G4VEvaporationChannel *) &right); 62 65 } 63 66 67 G4Fragment* G4VEvaporationChannel::EmittedFragment(G4Fragment*) 68 { 69 return 0; 70 } 64 71 72 G4FragmentVector* G4VEvaporationChannel::BreakUpFragment(G4Fragment*) 73 { 74 return 0; 75 } -
trunk/source/processes/hadronic/models/de_excitation/management/src/G4VEvaporationFactory.cc
r1228 r1315 25 25 // 26 26 // 27 // $Id: G4VEvaporationFactory.cc,v 1. 6 2008/09/19 13:32:54 ahowardExp $28 // GEANT4 tag $Name: geant4-09-0 3$27 // $Id: G4VEvaporationFactory.cc,v 1.7 2010/04/27 11:43:16 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 29 29 // 30 30 // Hadronic Process: Nuclear De-excitations … … 32 32 33 33 #include "G4VEvaporationFactory.hh" 34 #include "G4HadronicException.hh"35 34 36 const G4VEvaporationFactory & 37 G4VEvaporationFactory::operator=(const G4VEvaporationFactory & ) 38 { 39 throw G4HadronicException(__FILE__, __LINE__, "G4VEvaporationFactory::operator= meant to not be accessable."); 40 return *this; 41 } 42 43 G4bool 44 G4VEvaporationFactory::operator==(const G4VEvaporationFactory & ) const 45 { 46 throw G4HadronicException(__FILE__, __LINE__, "G4VEvaporationFactory::operator== meant to not be accessable."); 47 return false; 48 } 49 50 G4bool 51 G4VEvaporationFactory::operator!=(const G4VEvaporationFactory & ) const 52 { 53 throw G4HadronicException(__FILE__, __LINE__, "G4VEvaporationFactory::operator!= meant to not be accessable."); 54 return true; 55 } 56 57 58 35 G4VEvaporationFactory::G4VEvaporationFactory() : _channel(0) 36 {} 59 37 60 38 G4VEvaporationFactory::~G4VEvaporationFactory()
Note: See TracChangeset
for help on using the changeset viewer.