00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // $Id$ 00027 // 00028 // J. M. Quesada (May 08). New virtual classes have been added Prob1,2,3 00029 // JMQ (06 September 2008) Also external choices have been added for: 00030 // - "never go back" hipothesis (useNGB=true) 00031 // - CEM transition probabilities (useCEMtr=true) 00032 // 20.08.2010 V.Ivanchenko move constructor and destructor to the source 00033 00034 #ifndef G4VPreCompoundTransitions_hh 00035 #define G4VPreCompoundTransitions_hh 1 00036 00037 #include "G4Fragment.hh" 00038 00039 class G4VPreCompoundTransitions 00040 { 00041 public: 00042 00043 G4VPreCompoundTransitions(); 00044 virtual ~G4VPreCompoundTransitions(); 00045 00046 virtual G4double CalculateProbability(const G4Fragment& aFragment) = 0; 00047 virtual void PerformTransition(G4Fragment& aFragment) = 0; 00048 00049 inline G4double GetTransitionProb1() const; 00050 00051 inline G4double GetTransitionProb2() const; 00052 00053 inline G4double GetTransitionProb3() const; 00054 00055 // for never go back hypothesis (if useNGB=true, default=false) 00056 inline void UseNGB(G4bool use){useNGB=use;} 00057 //for use of CEM transition probabilities (if useCEMtr=true, defaut false) 00058 inline void UseCEMtr(G4bool use){useCEMtr=use;} 00059 00060 private: 00061 00062 G4VPreCompoundTransitions(const G4VPreCompoundTransitions &); 00063 const G4VPreCompoundTransitions& operator=(const G4VPreCompoundTransitions &right); 00064 G4bool operator==(const G4VPreCompoundTransitions &right) const; 00065 G4bool operator!=(const G4VPreCompoundTransitions &right) const; 00066 00067 protected: 00068 00069 G4bool useNGB; 00070 G4bool useCEMtr; 00071 00072 G4double TransitionProb1; 00073 G4double TransitionProb2; 00074 G4double TransitionProb3; 00075 }; 00076 00077 //J. M.Quesada (May. 08) 00078 inline G4double G4VPreCompoundTransitions::GetTransitionProb1() const 00079 { 00080 return TransitionProb1; 00081 } 00082 inline G4double G4VPreCompoundTransitions::GetTransitionProb2() const 00083 { 00084 return TransitionProb2; 00085 } 00086 inline G4double G4VPreCompoundTransitions::GetTransitionProb3() const 00087 { 00088 return TransitionProb3; 00089 } 00090 00091 00092 #endif