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p3 ] [ 10.5 ] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

  1 //
  2 // ********************************************************************
  3 // * License and Disclaimer                                           *
  4 // *                                                                  *
  5 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
  6 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
  7 // * conditions of the Geant4 Software License,  included in the file *
  8 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
  9 // * include a list of copyright holders.                             *
 10 // *                                                                  *
 11 // * Neither the authors of this software system, nor their employing *
 12 // * institutes,nor the agencies providing financial support for this *
 13 // * work  make  any representation or  warranty, express or implied, *
 14 // * regarding  this  software system or assume any liability for its *
 15 // * use.  Please see the license in the file  LICENSE  and URL above *
 16 // * for the full disclaimer and the limitation of liability.         *
 17 // *                                                                  *
 18 // * This  code  implementation is the result of  the  scientific and *
 19 // * technical work of the GEANT4 collaboration.                      *
 20 // * By using,  copying,  modifying or  distributing the software (or *
 21 // * any work based  on the software)  you  agree  to acknowledge its *
 22 // * use  in  resulting  scientific  publications,  and indicate your *
 23 // * acceptance of all terms of the Geant4 Software license.          *
 24 // ********************************************************************
 25 //
 26 //
 27 // Hadronic Process: Nuclear De-excitations
 28 // by V. Lara (Oct 1998)
 29 //
 30 // Modified:
 31 // 03.09.2008 (J.M.Quesada) for external choice of inverse cross section option
 32 // 06.09.2008 (J.M.Quesada) external choices have been added for superimposed 
 33 //                          Coulomb barrier (if useSICB is set true, by default 
 34 //                          is false) 
 35 // 24.04.2010 (V.Ivanchenko) moved constructor and destructor to source; added 
 36 //                          two new virtual methods EmittedFragment(s) to allow
 37 //                          more optimal work with G4Fragment objects
 38 // 12.02.2013 (V.Ivanchenko) added virtual method GetLifeTime,
 39 //                          enumerator G4EvaporationChannelType,
 40 //                          which is defined in constructor of the class
 41 //                          
 42 
 43 #ifndef G4VEvaporationChannel_h
 44 #define G4VEvaporationChannel_h 1
 45 
 46 #include "globals.hh"
 47 #include "G4Fragment.hh"
 48 
 49 class G4VEvaporationChannel
 50 {
 51 public:
 52 
 53   G4VEvaporationChannel(const G4String & aName = "");
 54   virtual ~G4VEvaporationChannel() = default;
 55 
 56   virtual G4double GetEmissionProbability(G4Fragment* theNucleus) = 0;
 57 
 58   // option definition
 59   virtual void Initialise();
 60 
 61   // return level life time, by default zero
 62   virtual G4double GetLifeTime(G4Fragment* theNucleus);
 63 
 64   // return emitted fragment, initial fragment is modified
 65   // and not deleted
 66   virtual G4Fragment* EmittedFragment(G4Fragment* theNucleus);
 67 
 68   // returns "true" if primary fragment is decayed and deleted
 69   // returns "false" if primary fragment is modified but stay alive
 70   // emitted fragments are added to the vector of results
 71   virtual G4bool 
 72   BreakUpChain(G4FragmentVector* theResult, G4Fragment* theNucleus);
 73 
 74   // return vector of emitted fragments, initial fragment is modified
 75   // but not included in this vector
 76   inline G4FragmentVector* BreakUpFragment(G4Fragment* theNucleus);
 77 
 78   // methods for unit tests
 79   virtual G4double ComputeInverseXSection(G4Fragment* theNucleus, 
 80             G4double kinEnergy);
 81   virtual G4double ComputeProbability(G4Fragment* theNucleus, 
 82               G4double kinEnergy);
 83 
 84   virtual void Dump() const;
 85 
 86   // enable internal conversion
 87   virtual void SetICM(G4bool);
 88 
 89   // flag of the radioactive decay module
 90   virtual void RDMForced(G4bool);
 91 
 92   // for cross section selection
 93   inline void SetOPTxs(G4int);
 94   // for superimposed Coulomb Barrier for inverse cross sections  
 95   inline void UseSICB(G4bool);
 96 
 97   G4VEvaporationChannel(const G4VEvaporationChannel & right) = delete;
 98   const G4VEvaporationChannel & operator= 
 99   (const G4VEvaporationChannel & right) = delete;
100   G4bool operator==(const G4VEvaporationChannel & right) const = delete;
101   G4bool operator!=(const G4VEvaporationChannel & right) const = delete;
102 
103 protected:
104 
105   G4int OPTxs{3};
106   G4bool useSICB{true};
107 };
108 
109 inline G4FragmentVector* 
110 G4VEvaporationChannel::BreakUpFragment(G4Fragment* theNucleus)
111 {
112   G4FragmentVector* results = new G4FragmentVector();
113   BreakUpChain(results, theNucleus);
114   return results;
115 }
116 
117 
118 inline void G4VEvaporationChannel::SetOPTxs(G4int val) 
119 {
120   if(val >= 0) { OPTxs = val; } 
121 }
122 
123 inline void G4VEvaporationChannel::UseSICB(G4bool val)
124 {
125   useSICB = val;
126 }
127 
128 #endif
129