Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:58:15

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
0028 // by V. Lara
0029 //
0030 //
0031 // 14/02/2007 Alex Howard - added protection for negative probabilities in the sum 
0032 // 27/07/2009 V.Ivanchenko - added Combined decay channels (default + GEM) 
0033 // 11/05/2010 V.Ivanchenko - rewrited technical part do not "new" and "delete" 
0034 //                           of small objects
0035 // 22/04/2011 V.Ivanchenko - added maxZ and maxA for FermiBreakUp model
0036 // 23/01/2012 V.Ivanchenko added pointer of G4VPhotonEvaporation to the constructor
0037 // 06/05/2013 V.Ivanchenko added pointer to ion table
0038 // 04/10/2014 D. Mancusi Moved theChannels and theChannelFactory to the base
0039 //                       class, since they seem to be common to all classes
0040 //                       derived from G4VEvaporation.
0041 //
0042 
0043 #ifndef G4Evaporation_h
0044 #define G4Evaporation_h 1
0045 
0046 #include "globals.hh"
0047 
0048 #include "G4VEvaporation.hh"
0049 #include "G4VEvaporationChannel.hh"
0050 #include "G4Fragment.hh"
0051 #include "G4DeexPrecoParameters.hh"
0052 #include <vector>
0053 
0054 class G4VEvaporationFactory;
0055 class G4NistManager;
0056 class G4IonTable;
0057 class G4VFermiBreakUp;
0058 class G4UnstableFragmentBreakUp;
0059 class G4NuclearLevelData;
0060 
0061 class G4Evaporation : public G4VEvaporation
0062 {
0063 public:
0064 
0065   explicit G4Evaporation(G4VEvaporationChannel* photoEvaporation = nullptr);
0066      
0067   ~G4Evaporation() override;
0068 
0069   void InitialiseChannels() override;
0070 
0071   // new interface - vector of products is added to the provided vector
0072   // primary fragment is deleted or is modified and added to the list
0073   // of products 
0074   void BreakFragment(G4FragmentVector*, G4Fragment* theNucleus) override;
0075 
0076   void SetDefaultChannel();
0077   void SetGEMChannel();
0078   void SetGEMVIChannel();
0079   void SetCombinedChannel();
0080 
0081   G4Evaporation(const G4Evaporation &right) = delete;
0082   const G4Evaporation & operator=(const G4Evaporation &right) = delete;
0083   G4bool operator==(const G4Evaporation &right) const = delete;
0084   G4bool operator!=(const G4Evaporation &right) const = delete;
0085 
0086 private:
0087 
0088   void InitialiseChannelFactory();
0089 
0090   G4int fVerbose;
0091   std::size_t nChannels{0};
0092   G4double minExcitation;
0093   G4NistManager* nist;
0094   G4IonTable* theTableOfIons;
0095   G4NuclearLevelData* fLevelData;
0096   G4UnstableFragmentBreakUp* unstableBreakUp;
0097   G4bool isInitialised{false};
0098 
0099   G4DeexChannelType channelType{fDummy};
0100 
0101   std::vector<G4double> probabilities;
0102 };
0103 
0104 #endif