Back to home page

EIC code displayed by LXR

 
 

    


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

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 #ifndef G4ConcreteNNTwoBodyResonance_HH
0029 #define G4ConcreteNNTwoBodyResonance_HH
0030 
0031 #include "globals.hh"
0032 #include "G4VScatteringCollision.hh"
0033 #include "G4VCrossSectionSource.hh"
0034 #include "G4VAngularDistribution.hh"
0035 #include "G4KineticTrackVector.hh"
0036 #include <vector>
0037 #include "G4XDeltaDeltaTable.hh"
0038 
0039 class G4ConcreteNNTwoBodyResonance : public G4VScatteringCollision
0040 {
0041 
0042 public:
0043 
0044   G4ConcreteNNTwoBodyResonance(const G4ParticleDefinition* aPrimary,
0045                const G4ParticleDefinition* bPriamry,
0046                const G4ParticleDefinition* aSecondary,
0047                const G4ParticleDefinition* bSecondary,
0048                const G4VXResonanceTable& sigmaTable);
0049 void establish_G4MT_TLS_G4ConcreteNNTwoBodyResonance(const G4ParticleDefinition* aPrimary,
0050                const G4ParticleDefinition* bPriamry,
0051                const G4ParticleDefinition* aSecondary,
0052                const G4ParticleDefinition* bSecondary,
0053                const G4VXResonanceTable& sigmaTable);
0054 
0055   G4ConcreteNNTwoBodyResonance(void *s1, void *s2, void *s3, void *s4, void *s5, void *s6, void *s7);
0056 
0057   virtual ~G4ConcreteNNTwoBodyResonance();
0058 
0059   virtual G4bool IsInCharge(const G4KineticTrack& trk1, 
0060                 const G4KineticTrack& trk2) const;
0061 
0062   virtual const std::vector<G4String>& GetListOfColliders(G4int ) const
0063   {
0064     throw G4HadronicException(__FILE__, __LINE__, "Tried to call G4ConcreteNNTwoBodyResonance::GetListOfColliders. Please find out why!");
0065     std::vector<G4String> * aList = new std::vector<G4String>;
0066     return *aList;
0067   } 
0068   
0069   virtual G4String GetName() const
0070   {
0071     return "G4ConcreteNNTwoBodyResonance";
0072   }
0073 
0074   G4bool operator==(const G4ConcreteNNTwoBodyResonance &right) const;
0075   G4bool operator!=(const G4ConcreteNNTwoBodyResonance &right) const;
0076 
0077 
0078 protected:
0079 
0080   virtual const G4VCrossSectionSource* GetCrossSectionSource() const { return crossSectionSource; }
0081 
0082   virtual const std::vector<const G4ParticleDefinition*> & GetOutgoingParticles() const
0083   {
0084     return theOutGoing;
0085   }
0086 
0087 private:
0088   G4ConcreteNNTwoBodyResonance(const G4ConcreteNNTwoBodyResonance &);
0089   G4ConcreteNNTwoBodyResonance & operator= (const G4ConcreteNNTwoBodyResonance &);
0090 
0091 private:  
0092 
0093   G4VCrossSectionSource* crossSectionSource;
0094   const G4ParticleDefinition* thePrimary1;
0095   const G4ParticleDefinition* thePrimary2;
0096   std::vector<const G4ParticleDefinition*> theOutGoing;
0097 
0098 };
0099 
0100 #endif