Back to home page

EIC code displayed by LXR

 
 

    


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

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 // J. M. Quesada (May 08). New virtual classes have been added Prob1,2,3 
0028 // JMQ (06 September 2008) Also external choices have been added for:
0029 //                      - "never go back"  hipothesis (useNGB=true) 
0030 //                      - CEM transition probabilities (useCEMtr=true)  
0031 // 20.08.2010 V.Ivanchenko move constructor and destructor to the source
0032 
0033 #ifndef G4VPreCompoundTransitions_hh
0034 #define G4VPreCompoundTransitions_hh 1
0035 
0036 #include "G4Fragment.hh"
0037 
0038 class G4VPreCompoundTransitions
0039 {
0040 public:
0041 
0042   G4VPreCompoundTransitions();
0043   virtual ~G4VPreCompoundTransitions();
0044 
0045   virtual G4double CalculateProbability(const G4Fragment& aFragment) = 0;
0046   virtual void PerformTransition(G4Fragment&  aFragment) = 0;
0047 
0048   inline G4double GetTransitionProb1() const;
0049 
0050   inline G4double GetTransitionProb2() const;
0051 
0052   inline G4double GetTransitionProb3() const;
0053 
0054   // for never go back hypothesis (if useNGB=true, default=false)
0055   inline void UseNGB(G4bool use){useNGB=use;}
0056   //for use of CEM transition probabilities (if useCEMtr=true, defaut false)
0057   inline void UseCEMtr(G4bool use){useCEMtr=use;}
0058 
0059   G4VPreCompoundTransitions(const G4VPreCompoundTransitions &) = delete;
0060   const G4VPreCompoundTransitions& operator=
0061   (const G4VPreCompoundTransitions &right) = delete;
0062   G4bool operator==(const G4VPreCompoundTransitions &right) const = delete;
0063   G4bool operator!=(const G4VPreCompoundTransitions &right) const = delete;
0064 
0065 protected:
0066 
0067   G4bool useNGB;
0068   G4bool useCEMtr;
0069 
0070   G4double TransitionProb1;
0071   G4double TransitionProb2;
0072   G4double TransitionProb3;
0073 };
0074 
0075   //J. M.Quesada (May. 08)
0076   inline G4double G4VPreCompoundTransitions::GetTransitionProb1() const
0077   {
0078     return TransitionProb1;
0079   }
0080   inline G4double G4VPreCompoundTransitions::GetTransitionProb2() const
0081   {
0082     return TransitionProb2;
0083   }
0084   inline G4double G4VPreCompoundTransitions::GetTransitionProb3() const
0085   {
0086     return TransitionProb3;
0087   }
0088 
0089 #endif