Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/Geant4/G4GeneratorPrecompoundInterface.hh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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 //
0028 // -----------------------------------------------------------------------------
0029 //      GEANT 4 class header file
0030 //
0031 //      History: first implementation
0032 //      HPW, 10DEC 98, the decay part originally written by Gunter Folger
0033 //                in his FTF-test-program.
0034 //
0035 //      V. Uzhinsky Nov. 2012 
0036 //      introduced new method PropagateNuclNucl for nucleus-nucleus interactions
0037 //
0038 // -----------------------------------------------------------------------------
0039 //
0040 // Class Description
0041 // Trivial implementation of an intra-nuclear transport. It pworvides coupling
0042 // of high energy generators with pre equilibrium decay models.
0043 // To be used in your physics list in case you need this physics.
0044 // Class Description - End
0045 
0046 #ifndef G4GeneratorPrecompoundInterface_h
0047 #define G4GeneratorPrecompoundInterface_h 1
0048 
0049 #include "G4VIntraNuclearTransportModel.hh"
0050 #include "G4ReactionProductVector.hh"
0051 #include "G4HadProjectile.hh"
0052 #include "G4Nucleus.hh"
0053 #include "globals.hh"
0054 
0055 class G4KineticTrackVector;
0056 class G4V3DNucleus;
0057 class G4ParticleDefinition;
0058 
0059 class G4GeneratorPrecompoundInterface : public G4VIntraNuclearTransportModel
0060 {
0061 public:
0062 
0063   G4GeneratorPrecompoundInterface(G4VPreCompoundModel* p = 0);
0064   virtual ~G4GeneratorPrecompoundInterface();
0065 
0066   virtual G4HadFinalState*
0067   ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus );
0068 
0069   virtual G4ReactionProductVector*
0070   Propagate(G4KineticTrackVector* theSecondaries, G4V3DNucleus* theNucleus);
0071 
0072   virtual G4ReactionProductVector*
0073   PropagateNuclNucl(G4KineticTrackVector* theSecondaries, G4V3DNucleus* theNucleus,
0074                                                   G4V3DNucleus* theProjectileNucleus);
0075 
0076   inline void SetCaptureThreshold(G4double);
0077 
0078   inline void SetDeltaM(G4double);
0079   inline void SetDeltaR(G4double);
0080 
0081   void MakeCoalescence(G4KineticTrackVector* theSecondaries);
0082 
0083   virtual void PropagateModelDescription(std::ostream&) const;
0084 
0085 private:
0086 
0087   G4GeneratorPrecompoundInterface(const G4GeneratorPrecompoundInterface& right);
0088   const G4GeneratorPrecompoundInterface& operator=(const G4GeneratorPrecompoundInterface &right);
0089   G4bool operator==(G4GeneratorPrecompoundInterface& right) {return (this == &right);}
0090   G4bool operator!=(G4GeneratorPrecompoundInterface& right) {return (this != &right);}
0091 
0092   G4double CaptureThreshold;
0093   G4double DeltaM;
0094   G4double DeltaR;
0095 
0096   const G4ParticleDefinition* proton;
0097   const G4ParticleDefinition* neutron;
0098   const G4ParticleDefinition* lambda;
0099 
0100   const G4ParticleDefinition* deuteron;
0101   const G4ParticleDefinition* triton;
0102   const G4ParticleDefinition* He3;
0103   const G4ParticleDefinition* He4;
0104 
0105   const G4ParticleDefinition* ANTIproton;
0106   const G4ParticleDefinition* ANTIneutron;
0107 
0108   const G4ParticleDefinition* ANTIdeuteron;
0109   const G4ParticleDefinition* ANTItriton;
0110   const G4ParticleDefinition* ANTIHe3;
0111   const G4ParticleDefinition* ANTIHe4;
0112 
0113   G4int secID;  // Creator model ID
0114 };
0115 
0116 inline
0117 void G4GeneratorPrecompoundInterface::SetCaptureThreshold(G4double value)
0118 {
0119   CaptureThreshold = value;
0120 }
0121 
0122 inline
0123 void G4GeneratorPrecompoundInterface::SetDeltaM(G4double value)
0124 { 
0125   DeltaM = value;
0126 }
0127 
0128 inline 
0129 void G4GeneratorPrecompoundInterface::SetDeltaR(G4double value)
0130 { 
0131   DeltaR = value;
0132 }
0133 
0134 #endif // G4GeneratorPrecompoundInterface_h
0135