Back to home page

EIC code displayed by LXR

 
 

    


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

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 // FermiBreakUp de-excitation model
0028 // by V. Ivanchenko (July 2016)
0029 //
0030 
0031 #ifndef G4FermiBreakUpVI_h
0032 #define G4FermiBreakUpVI_h 1
0033 
0034 #include "G4VFermiBreakUp.hh"
0035 #include "globals.hh"
0036 #include "G4FermiFragment.hh"
0037 #include "G4ThreeVector.hh"
0038 #include "G4LorentzVector.hh"
0039 #include <vector>
0040 
0041 class G4FermiFragmentsPoolVI;
0042 
0043 class G4FermiBreakUpVI final: public G4VFermiBreakUp 
0044 {
0045 public:
0046 
0047   G4FermiBreakUpVI();
0048   ~G4FermiBreakUpVI() override;
0049 
0050   void Initialise() override;
0051 
0052   // check if the Fermi Break Up model can be used 
0053   // mass is an effective mass of a fragment
0054   G4bool IsApplicable(G4int ZZ, G4int AA, G4double eexc) const override;
0055 
0056   // new interface - vector of products is added to the provided vector
0057   // primary fragment is deleted or is modified and added to the list
0058   // of products 
0059   void BreakFragment(G4FragmentVector*, G4Fragment* theNucleus) override;
0060 
0061   G4FermiBreakUpVI(const G4FermiBreakUpVI &right) = delete;  
0062   const G4FermiBreakUpVI & operator=(const G4FermiBreakUpVI &right) = delete;
0063   G4bool operator==(const G4FermiBreakUpVI &right) const = delete;
0064   G4bool operator!=(const G4FermiBreakUpVI &right) const = delete;
0065   
0066 private:
0067 
0068   G4bool SampleDecay(const G4int z, const G4int a, const G4double mass,
0069                      const G4double ext, G4LorentzVector&);
0070 
0071   static G4FermiFragmentsPoolVI* fPool;
0072 
0073   const G4int maxZ{9};
0074   const G4int maxA{17};
0075   G4int secID;  // Creator model ID for the secondaries created by this model
0076   
0077   G4double fTolerance{0.0};
0078   G4double fElim{0.0};
0079   G4double fTimeLim{1.0}; // in ns
0080 
0081   G4bool isFirst{false};
0082 
0083   std::vector<G4double> prob;
0084   std::vector<const G4FermiFragment*> frag;
0085   std::vector<G4LorentzVector> lvect;
0086 
0087 };
0088 
0089 #endif