Back to home page

EIC code displayed by LXR

 
 

    


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

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 //  File:   G4LightTargetCollider.hh                                          // 
0029 //  Date:   30 September 2019                                                 //
0030 //  Author: Dennis Wright (SLAC)                                              //
0031 //                                                                            //
0032 //  Description: model for collision of elementary particles with light       //
0033 //               targets (H, D, T, 3He)                                       //
0034 //                                                                            //
0035 ////////////////////////////////////////////////////////////////////////////////
0036 
0037 #ifndef G4LIGHT_TARGET_COLLIDER_HH
0038 #define G4LIGHT_TARGET_COLLIDER_HH
0039 
0040 #include "G4CascadeColliderBase.hh"
0041 #include "G4CascadeFinalStateGenerator.hh"
0042 #include "G4CollisionOutput.hh"
0043 
0044 class G4CascadParticle;
0045 class G4ElementaryParticleCollider;
0046 class G4InuclParticle;
0047 class G4KineticTrackVector;
0048 
0049 typedef std::pair<G4InuclElementaryParticle, G4InuclElementaryParticle> NucleonPair;
0050 typedef std::vector<G4InuclElementaryParticle> ScatteringProducts;
0051 
0052 class G4LightTargetCollider : public G4CascadeColliderBase {
0053 public:
0054   G4LightTargetCollider();
0055   virtual ~G4LightTargetCollider();
0056 
0057   void collide(G4InuclParticle* bullet, G4InuclParticle* target,
0058            G4CollisionOutput& globalOutput);
0059 
0060   void setVerboseLevel(G4int verbose=0);
0061 
0062 private: 
0063   G4ElementaryParticleCollider* theElementaryParticleCollider;
0064 
0065   G4CollisionOutput output;     // Secondaries from main cascade
0066 
0067 private:
0068   // Copying of modules is forbidden
0069   G4LightTargetCollider(const G4LightTargetCollider&);
0070   G4LightTargetCollider& operator=(const G4LightTargetCollider&);
0071 
0072   G4double GammaDCrossSection(G4double /*kineticEnergy*/);
0073 
0074   G4CascadeFinalStateGenerator fsGen;
0075 
0076   NucleonPair AbsorptionOnDeuteron(G4InuclParticle* bullet);
0077 
0078   ScatteringProducts SingleNucleonScattering(const G4InuclElementaryParticle& projectile,
0079                                              const G4InuclElementaryParticle& targetNucleon);
0080 
0081   G4double mP;   // proton mass
0082   G4double mN;   // neutron mass
0083   G4double mD;   // deuteron mass
0084   G4double pFermiD;  // deuteron Fermi momentum (GeV/c)  
0085 };        
0086 
0087 #endif /* G4LIGHT_TARGET_COLLIDER_HH */
0088 
0089