Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:21

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 //
0027 // Hadronic Process: Nuclear De-excitations interface
0028 //
0029 // by V. Lara (Oct 1998) written from G4Evaporation.hh (May 1998)
0030 //
0031 // Modifications:
0032 // 03 September 2008 by J. M. Quesada for external choice of inverse 
0033 //    cross section option
0034 // 06 September 2008 (JMQ) Also external choices have been added for 
0035 //    superimposed Coulomb barrier (if useSICBis set true, by default is false) 
0036 // 23 January 2012 by V.Ivanchenko added pointer of G4VPhotonEvaporation to 
0037 //    the constructor
0038 // 
0039 
0040 #ifndef G4VEvaporation_h
0041 #define G4VEvaporation_h 1
0042 
0043 #include "globals.hh"
0044 #include "G4Fragment.hh"
0045 #include "G4VEvaporationFactory.hh"
0046 #include "G4VEvaporationChannel.hh"
0047 #include <vector>
0048 
0049 class G4VEvaporationChannel;
0050 class G4VFermiBreakUp;
0051 
0052 class G4VEvaporation 
0053 {
0054 public:
0055 
0056   G4VEvaporation();
0057   virtual ~G4VEvaporation(); 
0058 
0059   // vector of products is added to the provided vector
0060   // primary fragment is deleted or is modified and added to the list
0061   // of products 
0062   virtual void BreakFragment(G4FragmentVector*, G4Fragment* theNucleus);
0063 
0064   // definition of options
0065   virtual void InitialiseChannels();
0066 
0067   virtual void SetPhotonEvaporation(G4VEvaporationChannel* ptr);
0068 
0069   inline void SetFermiBreakUp(G4VFermiBreakUp* ptr);
0070 
0071   inline G4VFermiBreakUp* GetFermiBreakUp() const;
0072   inline G4VEvaporationChannel* GetPhotonEvaporation() const;
0073   inline G4VEvaporationChannel* GetFissionChannel() const;
0074   inline G4VEvaporationChannel* GetChannel(std::size_t idx) const;
0075 
0076   // for inverse cross section choice
0077   inline void SetOPTxs(G4int opt); 
0078   // for superimposed Coulomb Barrier for inverse cross sections    
0079   inline void UseSICB(G4bool use);
0080 
0081   inline std::size_t GetNumberOfChannels() const;
0082 
0083   G4VEvaporation(const G4VEvaporation &right) = delete;
0084   const G4VEvaporation & operator=(const G4VEvaporation &right) = delete;
0085   G4bool operator==(const G4VEvaporation &right) const = delete;
0086   G4bool operator!=(const G4VEvaporation &right) const = delete;
0087 
0088 protected:
0089 
0090   void CleanChannels();
0091 
0092   G4VEvaporationChannel* thePhotonEvaporation{nullptr};
0093   G4VFermiBreakUp* theFBU{nullptr}; 
0094 
0095   G4int OPTxs{3};
0096   G4bool useSICB{true};
0097 
0098   std::vector<G4VEvaporationChannel*>* theChannels{nullptr};
0099   G4VEvaporationFactory* theChannelFactory{nullptr};
0100 };
0101 
0102 inline void G4VEvaporation::SetFermiBreakUp(G4VFermiBreakUp* ptr)
0103 {
0104   theFBU = ptr;
0105 }
0106 
0107 inline G4VFermiBreakUp* G4VEvaporation::GetFermiBreakUp() const
0108 {
0109   return theFBU;
0110 }
0111 
0112 inline G4VEvaporationChannel* G4VEvaporation::GetPhotonEvaporation() const
0113 {
0114   return thePhotonEvaporation;
0115 }
0116 
0117 inline G4VEvaporationChannel* G4VEvaporation::GetFissionChannel() const
0118 {
0119   return (nullptr != theChannels && theChannels->size() > 1) ? 
0120     (*theChannels)[1] : nullptr;
0121 }
0122 
0123 inline G4VEvaporationChannel* G4VEvaporation::GetChannel(std::size_t idx) const
0124 {
0125   return (nullptr != theChannels && theChannels->size() > idx) ? 
0126     (*theChannels)[idx] : nullptr;
0127 }
0128 
0129 inline void G4VEvaporation::SetOPTxs(G4int opt) 
0130 { 
0131   OPTxs = opt;
0132 } 
0133 
0134 inline void G4VEvaporation::UseSICB(G4bool use) 
0135 { 
0136   useSICB = use; 
0137 }   
0138 
0139 inline std::size_t G4VEvaporation::GetNumberOfChannels() const 
0140 { 
0141   return (nullptr != theChannels) ? theChannels->size() : 0; 
0142 }   
0143 
0144 #endif